Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memberOf overlay didn't put memberOf attributes on user records #43

Closed
masch712 opened this issue Sep 8, 2022 · 1 comment
Closed

Comments

@masch712
Copy link

masch712 commented Sep 8, 2022

050-openldap-populate appears to configure the memberOf overlay, then create the users and groups afterwards, but when I query my docker container for all users, I don't see a memberOf attribute on any of them.

Replication steps

  1. Run the docker container:
docker run -d --rm -p 10389:10389 -p 10636:10636 rroemhild/test-openldap
  1. Query for all users:
ldapsearch -H ldap://localhost:10389 -x -b "ou=people,dc=planetexpress,dc=com" -D "cn=admin,dc=planetexpress,dc=com" -w GoodNewsEveryone "(objectClass=inetOrgPerson)"

See that none of the users have a memberOf attribute.

Did I miss something? Sorry I'm a bit of a LDAP novice, I'm using this container to test LDAP integration from my application.

@masch712
Copy link
Author

Ah, it appears that memberOf is an "Operational Attribute", so I need to append the "+" argument to my ldapsearch command.
This command returns the memberOf attribute:

ldapsearch -H ldap://localhost:10389 -x -b "ou=people,dc=planetexpress,dc=com" -D "cn=admin,dc=planetexpress,dc=com" -w GoodNewsEveryone "(objectClass=inetOrgPerson)" "+"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant