Ldap – Active Directory memberOf LDAP syntax

active-directoryidentity-managementldapsun

I want to add a user (from Sun IDM to Active Directory) to more than one group.
The command memberOf: CN=AAA,OU=AAA,DC=AAA,DC=AAA is for only one and I want to add a second one immediatly after the first; e.g.:
memberOf: CN=AAA,OU=AAA,DC=AAA,DC=AAA and CN=BBB,OU=BBB,DC=BBB,DC=BBB

Best Answer

Depending on how you're doing the adding, there are a couple of ways of doing this. MemberOf is a multi-valued attribute. If you're using an LDIF file, or direct LDAP syntax, you just add multiple MemberOf statements:

Department: Human Resources
MemberOf: CN=AAA,OU=BBB,DC=CCC,DC=DDD
MemberOf: CN=AAB,OU=BBB,DC=CCC,DC=DDD
MemberOf: CN=ABC,OU=CDE,DC=CCC,DC,DDD
Full Name: Milton Ives
Related Topic