note to self…

to add users to a group in ldap do:


ldapsearch -LLL -b "dc=somdomain,dc=com" -x -w
-D “cn=admin,dc=somdomain,dc=com” cn=dev > ldap_dev.ldif

edit ldap_dev.ldif and add


memberUid: someuser

then:

cat ldap_dev.ldif | ldapmodify -D "cn=admin,dc=somedomain,dc=com" -x -w somepass

Leave a Reply