diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-09-16 22:09:07 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-09-16 22:09:07 +0200 |
commit | f3b3bc90da066b7a359f7962f9c6a0fd99c3180c (patch) | |
tree | 99453f847121e3eec1d91dfc0ae9edd07c09f55d /ldap/mkldapdb | |
parent | a3a82a7f91fee07e89db8d28a888fe1d396b0d38 (diff) |
Fix create (not update) DSA group.
Diffstat (limited to 'ldap/mkldapdb')
-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 |