30,997
edits
| Line 35: | Line 35: | ||
* Base DN (optionnel): keep empty of set dc=yourdomain,dc=com | * Base DN (optionnel): keep empty of set dc=yourdomain,dc=com | ||
= | = Create your LDAP tree = | ||
Next step is to define information to store into your LDAP. | |||
Create a file init.ldif with your organization. For example: | |||
<source lang="ini"> | <source lang="ini"> | ||
# Organization | # Organization | ||
| Line 59: | Line 59: | ||
</source> | </source> | ||
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 init.ldif -D "cn=Manager,dc=mydomain,dc=com" -w secret | ||
or | |||
ldapadd -f init.ldif -D "cn=admin,dc=mydomain,dc=com" -w secret | |||
</source> | </source> | ||