OpenLDAP memberof Overlay not showing

971 views Asked by At

The memberOf attribute is not showing in ldap simple search if I do the following then memberOf attribute is hidden.

ldapsearch -Y external -H ldapi:/// -b dc=example,dc=com

# udraz, Users, example.com
dn: uid=udraz,ou=Users,dc=example,dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: udraz
sn: Draz
givenName: Umar
mail: [email protected]
cn: Umar Draz
displayName: Umar Draz
uidNumber: 5000
gidNumber: 5000
gecos: Umar Draz
loginShell: /bin/bash
homeDirectory: /home/udraz

But if I do the following then memberOf attribute appear

ldapsearch -Y external -H ldapi:/// -b dc=example,dc=com memberOf

# udraz, Users, example.com
dn: uid=udraz,ou=Users,dc=example,dc=com
memberOf: cn=developers,ou=Users,dc=example,dc=com

Would you please help me how to solve this

0

There are 0 answers