diff options
-rw-r--r-- | ldap/db/base.ldif.in | 5 | ||||
-rw-r--r-- | ldap/db/horde.ldif.in | 6 | ||||
-rwxr-xr-x | ldap/mkldapdb | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/ldap/db/base.ldif.in b/ldap/db/base.ldif.in index 8b9d263..2d1a0d6 100644 --- a/ldap/db/base.ldif.in +++ b/ldap/db/base.ldif.in @@ -5,6 +5,11 @@ objectClass: organization o: @DOMAIN@ dc: @ORG@ +dn: ou=DSA, @SUFFIX@ +objectclass: organizationalUnit +ou: DSA +description: Directory System Agent + dn: ou=people, @SUFFIX@ objectClass: organizationalUnit ou: people diff --git a/ldap/db/horde.ldif.in b/ldap/db/horde.ldif.in new file mode 100644 index 0000000..0e1bab0 --- /dev/null +++ b/ldap/db/horde.ldif.in @@ -0,0 +1,6 @@ +dn: cn=horde, ou=DSA, @SUFFIX@ +objectclass: organizationalRole +objectClass: top +objectClass: simpleSecurityObject +userPassword: superSecretPassword +cn: horde diff --git a/ldap/mkldapdb b/ldap/mkldapdb index 443ac44..ce9a8c6 100755 --- a/ldap/mkldapdb +++ b/ldap/mkldapdb @@ -29,7 +29,7 @@ tempdir=`mktemp -dt slapd.XXXXXX` cfgdir=/etc/ldap dbdir=/var/lib/ldap -for section in base; do +for section in base horde; do sed <"$masterdir/$section.ldif.in" >"$tempdir/$section.ldif" \ -e "s/@SUFFIX@/$basedn/g" \ -e "s/@DOMAIN@/$dnsdomain/g" \ |