diff options
Diffstat (limited to 'ldap/mkldapdb')
-rwxr-xr-x | ldap/mkldapdb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ldap/mkldapdb b/ldap/mkldapdb index 0e5e6b2..a1b0742 100755 --- a/ldap/mkldapdb +++ b/ldap/mkldapdb @@ -54,9 +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 - echo "Securing $section..." - 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 @@ -64,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 |