summaryrefslogtreecommitdiff
path: root/standalone-ldap/05-add-kolab-admin-role.sh
diff options
context:
space:
mode:
Diffstat (limited to 'standalone-ldap/05-add-kolab-admin-role.sh')
-rwxr-xr-xstandalone-ldap/05-add-kolab-admin-role.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/standalone-ldap/05-add-kolab-admin-role.sh b/standalone-ldap/05-add-kolab-admin-role.sh
new file mode 100755
index 0000000..525e231
--- /dev/null
+++ b/standalone-ldap/05-add-kolab-admin-role.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+ . ./settings.sh
+(
+ echo "dn: cn=kolab-admin,${rootdn}"
+ echo "objectclass: top"
+ echo "objectclass: ldapsubentry"
+ echo "objectclass: nsroledefinition"
+ echo "objectclass: nssimpleroledefinition"
+ echo "objectclass: nsmanagedroledefinition"
+ echo "cn: kolab-admin"
+ echo ""
+) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"
+