summaryrefslogtreecommitdiff
path: root/standalone-ldap/05-add-kolab-admin-role.sh
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-15 11:06:39 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-15 11:07:40 (GMT)
commit23de67dfa85f1833b621854c04dd8335dfd3f644 (patch)
treee7d68e887fd11774ec0b72502251a6a7e51cdfd6 /standalone-ldap/05-add-kolab-admin-role.sh
parented30bbeba26b0c39f075a4d10c9d38869cf9b123 (diff)
downloadkolab-scripts-23de67dfa85f1833b621854c04dd8335dfd3f644.tar.gz
Add some standalone ldap initialization scripts
Add a script to add a domain name space with external LDAP
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}"
+