summaryrefslogtreecommitdiff
path: root/ldap/mkldapdb
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/mkldapdb')
-rwxr-xr-xldap/mkldapdb7
1 files changed, 4 insertions, 3 deletions
diff --git a/ldap/mkldapdb b/ldap/mkldapdb
index 7469f5d..a1b0742 100755
--- a/ldap/mkldapdb
+++ b/ldap/mkldapdb
@@ -54,8 +54,9 @@ done
for section in base cipux horde; do
ldapadd -x -h localhost -D "cn=admin,$basedn" -f "$tempdir/$section.ldif" -W
done
-for section in cipux horde; do
- ldappasswd -x -h localhost -D "cn=admin,$basedn" -S -W "uid=$section,ou=System,ou=Entities,ou=SAM,$basedn"
+for role in cipux horde; do
+ echo "Securing $role..."
+ 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
@@ -63,5 +64,5 @@ 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: uid=cipux,ou=System,ou=Entities,ou=SAM,$basedn
+uniqueMember: cn=cipux,ou=Entities,ou=Access Control,$basedn
EOF