summaryrefslogtreecommitdiffstats
path: root/bin/gen-ldif
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-23 13:05:19 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-03-23 13:05:19 +0000
commit3ce9034d8c795fce7dd3adba79915fc814dfd455 (patch)
tree9d494b0ba40a531d26f820a1401a22fc02c78b71 /bin/gen-ldif
parente06ef982a1207bdd32e3886f02d4abdc86b793f3 (diff)
downloadpykolab-3ce9034d8c795fce7dd3adba79915fc814dfd455.tar.gz
Update bin/gen-ldif with the objectclasses and attributes also in the default configuration
Diffstat (limited to 'bin/gen-ldif')
-rwxr-xr-xbin/gen-ldif10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/gen-ldif b/bin/gen-ldif
index 285b38b..8a088a2 100755
--- a/bin/gen-ldif
+++ b/bin/gen-ldif
@@ -4,6 +4,13 @@
[ ! -z "$3" ] && rootdn=$3 || rootdn="dc=example,dc=org"
[ ! -z "$4" ] && ou=$4 || ou="ou=People"
+#echo "dn: ${ou},${rootdn}"
+#echo "objectClass: top"
+#echo "objectClass: organizationalunit"
+#echo "$(echo ${ou} | cut -d'=' -f 1): $(echo ${ou} | cut -d'=' -f 2)"
+#echo 'aci: (targetattr ="userpassword || telephonenumber || facsimiletelephonenumber")(version 3.0; acl "Allow self entry modification"; allow (write)(userdn = "ldap:///self");)'
+#echo ""
+
i=0
while [ $i -lt 0$1 ]; do
@@ -24,9 +31,10 @@ while [ $i -lt 0$1 ]; do
echo "objectClass: person"
echo "objectClass: inetOrgPerson"
echo "objectClass: organizationalPerson"
+ echo "objectClass: mailrecipient"
echo "sn: $surname"
echo "cn: $givenname $surname"
- echo "mail: $uid@${domain}"
+ echo "mail: ${givenname}.${surname}@${domain}"
echo "userPassword: {SSHA}zJ3oU5kqtS3MxnLWmKpnE7+eGVbmQKmj"
echo ""