The best place to ask programming/development questions, imo. UPDATE: stackoverflow is the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but a great reference for finding answers.

My Music (Nickleus)

20120510

openldap ldapadd how to add an organizational unit (ou) or Group item

here's what my LDAP hierarchy looks like:


here's how to add a new organizationalunit (ou=):
ldapadd -xWvD cn=adminUsername,dc=companyName,dc=com -f disabledUsersAsOU.ldif

disabledUsersAsOU.ldif contents:

cn: ou=DisabledUsers,dc=companyName,dc=com
ou: DisabledUsers
objectClass: top
objectclass: organizationalunit



or if you want to add a new group in the organizationalunit Groups (ou=Groups) instead:
ldapadd -xWvD cn=adminUsername,dc=companyName,dc=com -f disabledUsersAsGroup.ldif

disabledUsersAsGroup.ldif contents:

dn: cn=DisabledUsers,ou=Groups,dc=companyName,dc=com
cn: DisabledUsers
objectClass: top
objectClass: groupOfUniqueNames
uniqueMember:

No comments:

Post a Comment