I have configured ldap as per documentation (4.6.2). Updated my sso/ldap.cf and tested with ldapfilter, ldaptest filter, ldaptest users etc.. everything seems to be working and giving me the right output as per my filter. But when i do a ldap import, i get below error.
net.datenwerke.gxtdto.client.servercommunication.exceptions.ServerCallFailedException: IllegalStateException: Missing parent for uid=akumar,cn=users,cn=accounts,dc=ipa,dc=unified,dc=com
Below is my ldap.cf
<?xml version="1.0" encoding="UTF-8"?>
false
idm.unified.com
636
ssl
uid=binder,cn=users,cn=accounts,dc=ipa,dc=unified,dc=com
password
cn=accounts,dc=ipa,dc=unified,dc=com
/usermanager/external
true
true
false
objectClass
nsUniqueId
organizationalUnit
profile
posixgroup
cn
member
person
givenName
sn
uid
mail
Can someone suggest what is going wrong here please?
what does “ldaptest orphans” return ? an empty list? we may extend the command to return these nodes as well, but pls confirm what you get in “ldaptest orphans”.
I think you can also see the problem when you execute “ldaptest users” and look for the parent column. For “uid=akumar,cn=users,cn=accounts,dc=ipa,dc=unified,dc=com” it is probably empty. If not empty, the parent listed in this column for this user is probably not listed in “ldaptest organisationalUnits”. Can you pls confirm?
you are right. The parent is listed when tried with ‘ldaptest users’ but the parent is not listed in ‘ldaptest organizationalUnits’ because we dont have any OU in our schema. see DN for eg. “uid=akumar,cn=users,cn=accounts,dc=ipa,dc=unified,dc=com”
First name (givenName) Last name (sn) Username (uid) Email (mail) Parent
Ajay Kumar akumar ajay.kumar@unified.com cn=users,cn=accounts,dc=ipa,dc=unified,dc=com
reportserver$ ldaptest organizationalUnits
Results for organizational unit properties with object class: ‘organizationalUnit’
Organizational unit count: 0
No organizational units found
reportserver$
what should be defined in below, when we dont have any OU? just remove this from config?
thank you for providing the information. Could you also please share the results of the “ldaptest orphans” command? This will help us gain a deeper understanding of the situation.
reportserver$ ldaptest orphans
LDAP orphans (nodes that are not users or groups or organizational units)
No orphans found
reportserver$ ldapfilter
(|
| (memberOf=cn=unix,cn=groups,cn=accounts,dc=ipa,dc=unified,dc=com)
|)
thanks for the information.
As malte_if wrote above, you should adapt your filter to include the missing parent OU.
The same for all other missing parent OUs.
Now I’m able to get the necessary users and groups alone and empty orphans with help of certain filters.
But now the problem is with guid. we have guid for users and groups but not for cn=groups and cn=users.
dn: cn=groups,cn=accounts,dc=ipa,dc=unified,dc=com
cn: groups
objectClass: top
objectClass: nsContainer
ldapimport is not complaining that guid not found.
IllegalStateException: GUID ‘ipaUniqueID’ not found in node ‘cn=groups,cn=accounts,dc=ipa,dc=unified,dc=com’
Could you please suggest what can be done in this case.