slapadd for 10,20

This commit is contained in:
Denis Knauf 2018-03-29 22:41:19 +02:00
parent 9f9c5a0cea
commit 43587fecce

View file

@ -1,10 +1,15 @@
Add your basedn to basedn (eg: `echo o=denkn,c=at > basedn`). Add your basedn to basedn (eg: `echo o=denkn,c=at > basedn`).
For initialization, first shutdown slapd and delete `/var/lib/ldap/` (you will loose all of your data!), For initialization, first shutdown slapd and delete `/var/lib/ldap/` (you will loose all of your data!),
then use `./90.root.ldif | slapadd -b \`cat basedn\` -v`. then use `./90.root.ldif.sh | slapadd -b \`cat basedn\` -v`.
Now you can start slapd again. For adding 10 and 20 use:
Via `ldapadd -Y external` you can add any other ldif. slapadd -b `cat basedn` -v -l 10.acls.ldif
slapadd -b `cat basedn` -v -l 20.passwordhash.ldif
Now you can start slapd with your fresh config.
Via `ldapadd -Y EXTERNAL` you can add any other ldif.
For adding an user run `./90.user.ldif.sh username givenname surname emailaddr | ldapadd -Y external`. For adding an user run `./90.user.ldif.sh username givenname surname emailaddr | ldapadd -Y external`.