diff options
Diffstat (limited to 'ldap')
-rwxr-xr-x | ldap/mkldapdb | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/ldap/mkldapdb b/ldap/mkldapdb index a1b0742..623a706 100755 --- a/ldap/mkldapdb +++ b/ldap/mkldapdb @@ -59,10 +59,17 @@ for role in cipux horde; do ldappasswd -x -h localhost -D "cn=admin,$basedn" -S -W "cn=$role,ou=Entities,ou=Access Control,$basedn" done -# TODO: Write as function, and create group if not existing -ldapmodify -x -h localhost -D "cn=admin,$basedn" -W <<EOF +# FIXME: Write addmember(), that create group as needed +#ldapmodify -x -h localhost -D "cn=admin,$basedn" -W <<EOF +#dn: cn=DSA,ou=Administrators,ou=Groups,ou=Access Control,$basedn +#changetype: modify +#add: uniqueMember +#uniqueMember: cn=cipux,ou=Entities,ou=Access Control,$basedn +#EOF +ldapadd -x -h localhost -D "cn=admin,$basedn" -W <<EOF dn: cn=DSA,ou=Administrators,ou=Groups,ou=Access Control,$basedn -changetype: modify -add: uniqueMember +objectClass: groupOfUniqueNames +cn: DSA +description: Directory System Agent administrators uniqueMember: cn=cipux,ou=Entities,ou=Access Control,$basedn EOF |