Open lerignoux opened 8 years ago
(Preface: my LDAP knowledge isn't amazing...)
I tried your example (with a slightly different dc, but otherwise the same) and retrieved the memberOf attribute.
Because the memberOf attribute is an operational attribute it needs to be requested explicitly, hence a search like:
ldapsearch -D 'cn=admin,dc=surycat,dc=com' -b 'dc=surycat,dc=com' 'memberOf=cn=group,ou=groups,dc=surycat,dc=com' -W memberOf
eg:
ldapsearch -x -h "127.0.0.1" -b dc=ldap-domain,dc=com -D "cn=admin,dc=ldap-domain,dc=com" -W '(uid=bidon)' memberOf
returned
# extended LDIF
#
# LDAPv3
# base <dc=ldap-domain,dc=com> with scope subtree
# filter: (uid=bidon)
# requesting: memberOf
#
# bidon, contacts, ldap-domain.com
dn: uid=bidon,ou=contacts,dc=ldap-domain,dc=com
memberOf: cn=group,ou=groups,dc=ldap-domain,dc=com
# search result
search: 2
result: 0 Success
For me.
I tried to use the latest (1.1.2 docker image and add a user and a groupOfUniqueNames) When adding a uniqueMember within the user memberOf attributes does not seem to be created;
Here is the ldiff I added in the bootstrap (as suggested in the documentation) :
After start of the container, a ldapsearch query returns :
I checked in the configuration, the overlay seem rightly configured regards to the 1.1.2 configuration.
following other issues I also tried restarting the container and adding user then group afterwards to no avail.
I don't understand why the user MemberOf attribute is not set. Did I miss anything on the setup ?
after follow up it seem that a query with such a filter does return the users with the right memberOf.
The memberOf attribute is just not displayed !
Why isn't this filed displayed ?