diff options
author | root <root@borneuni.dk> | 2008-09-16 20:09:27 +0000 |
---|---|---|
committer | root <root@borneuni.dk> | 2008-09-16 20:09:27 +0000 |
commit | 821b42ad73b5efce51276c5a8ccf8bfce59b8d54 (patch) | |
tree | d39e92eeefe2cd500deeeb7c2426925ee2ff9b27 /ldap/mkldapdb | |
parent | ca7d7449d213293e68936fb5d0cd8fec8ab9fbe3 (diff) | |
parent | f3b3bc90da066b7a359f7962f9c6a0fd99c3180c (diff) |
Merge branch 'master' of git://source.jones.dk/local-COMMON
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 |