Hi Marc,

Thanks!  Appreciate the quick response.

The memberOf plugin was enabled since I'm filtering access to CentOS servers via  LDAP groups.

I'm building a script that will add a user to LDAP via the ldapadd command and will add the user into chosen groups.

Cheers,

On 10/25/17 12:48 AM, Marc Muehlfeld wrote:
Hi Janet,

On 24.10.2017 22:45, Janet Houser wrote:
However, I've had no luck add this user to an existing group (e.g. chewy).

Does anyone have an example ldif file the works for adding a new user entry to an existing group?

dn: cn=chewy,ou=Groups,dc=example,dc=com
changetype: modify
add: uniqueMember
uniqueMember: uid=jdoe,ou=People,dc=example,dc=com


To import the LDIF:
# ldapmodify -x -D "cn=Directory Manager" -W -f user-to-group.ldif


Note that this only adds the user to the group. If the server should add the group's DN automatically to the user object as well, enable the memberOf plug-in.


Regards,
Marc