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
−
= Créer votre arbre LDAP =
+
= Create your LDAP tree =
−
L'étape suivante consiste à définir les informations à stocker dans l'annuaire LDAP et leur organisation.
+
Next step is to define information to store into your LDAP.
−
Créer un fichier init.ldif contenant votre organisation. Par exemple:
+
Create a file init.ldif with your organization. For example:
<source lang="ini">
<source lang="ini">
# Organization
# Organization
Line 59:
Line 59:
</source>
</source>
−
Executer le fichier avec le compte administrateur LDAP:
+
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>