Usefull defaults for LDAP provided by ldifs.
Find a file
Denis Knauf 3cafd73a54 init
2018-03-29 21:44:11 +02:00
.gitignore init 2018-03-29 21:44:11 +02:00
00.root.ldif.sh init 2018-03-29 21:44:11 +02:00
10.acls.ldif init 2018-03-29 21:44:11 +02:00
20.passwordhash.ldif init 2018-03-29 21:44:11 +02:00
90.user.ldif.sh init 2018-03-29 21:44:11 +02:00
README.md init 2018-03-29 21:44:11 +02:00

Add your basedn to basedn (eg: echo o=denkn,c=at > basedn). For initialization, first shutdown slapd and delete /var/lib/ldap/ (you will lost all your data!), then use ./90.root.ldif | slapadd -b cat basedn -v. Now you can start slapd again. Via ldapadd -Y external you can add any other ldif. For adding user run ./90.user.ldif.sh | ldapadd -Y external.