Install and configure OpenLDAP: Difference between revisions

Jump to navigation Jump to search
m
Line 45: Line 45:
Next step is to define information to store into your LDAP.
Next step is to define information to store into your LDAP.


Create a file inituser.ldif with your organization. For example (take care to keep empty line between each block):
Create a file init.ldif with your organization. For example (take care to keep empty line between each block):
<source lang="ini">
<source lang="ini">
# Organization
# Organization
Line 70: Line 70:
Execute file using the LDAP admin user:
Execute file using the LDAP admin user:
<source lang="bash">
<source lang="bash">
ldapadd -f init.ldif -D "cn=Manager,dc=mydomain,dc=com" -w secret
ldapadd -f inituser.ldif -D "cn=Manager,dc=mydomain,dc=com" -w secret
or
or
ldapadd -f init.ldif -D "cn=admin,dc=mydomain,dc=com" -w secret
ldapadd -f init.ldif -D "cn=admin,dc=mydomain,dc=com" -w secret

Navigation menu