« Le système d'exploitation GNU-Linux/Les annuaires LDAP » : différence entre les versions
Contenu supprimé Contenu ajouté
première version du document |
→Mise en pratique : OpenLDAP : : rajout de slapd.conf |
||
Ligne 6 : | Ligne 6 : | ||
== Mise en pratique : OpenLDAP == |
== Mise en pratique : OpenLDAP == |
||
[http://www.openldap.org Le logiciel libre OpenLDAP] |
|||
=== Installation === |
=== Installation === |
||
Ligne 13 : | Ligne 15 : | ||
=== Configuration === |
=== Configuration === |
||
La configuration de OpenLDAP se situe dans le fichier '''/etc/ldap/slapd.conf''' : |
|||
# more /etc/ldap/slapd.conf |
|||
include /etc/ldap/schema/core.schema |
|||
include /etc/ldap/schema/cosine.schema |
|||
include /etc/ldap/schema/nis.schema |
|||
include /etc/ldap/schema/inetorgperson.schema |
|||
pidfile /var/run/slapd/slapd.pid |
|||
argsfile /var/run/slapd/slapd.args |
|||
loglevel none |
|||
modulepath /usr/lib/ldap |
|||
moduleload back_hdb |
|||
sizelimit 500 |
|||
tool-threads 1 |
|||
backend hdb |
|||
database hdb |
|||
suffix "dc=d11,dc=creufop,dc=univ-perp,dc=fr" |
|||
directory "/var/lib/ldap" |
|||
dbconfig set_cachesize 0 2097152 0 |
|||
dbconfig set_lk_max_objects 1500 |
|||
dbconfig set_lk_max_locks 1500 |
|||
dbconfig set_lk_max_lockers 1500 |
|||
index objectClass eq |
|||
lastmod on |
|||
checkpoint 512 30 |
|||
access to attrs=userPassword,shadowLastChange,loginShell |
|||
by dn="cn=admin,dc=d11,dc=creufop,dc=univ-perp,dc=fr" write |
|||
by anonymous auth |
|||
by self write |
|||
by * none |
|||
access to dn.base="" by * read |
|||
access to * |
|||
by dn="cn=admin,dc=d11,dc=creufop,dc=univ-perp,dc=fr" write |
|||
by * read |
|||
== Les programmes complémentaires == |
|||
=== Les outils en ligne de commande === |
|||
=== PhpLdapAdmin === |
Version du 14 février 2011 à 10:40
Les concepts fondamentaux LDAP
En attendant que cette partie soit écrite, nous invitons le lecteur à se référer à ce tutoriel très complet :
Tutoriel LDAP de Laurent Mirtain
Mise en pratique : OpenLDAP
Installation
# apt-get install slapd
Configuration
La configuration de OpenLDAP se situe dans le fichier /etc/ldap/slapd.conf :
# more /etc/ldap/slapd.conf include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd/slapd.args loglevel none modulepath /usr/lib/ldap moduleload back_hdb sizelimit 500 tool-threads 1 backend hdb database hdb suffix "dc=d11,dc=creufop,dc=univ-perp,dc=fr" directory "/var/lib/ldap" dbconfig set_cachesize 0 2097152 0 dbconfig set_lk_max_objects 1500 dbconfig set_lk_max_locks 1500 dbconfig set_lk_max_lockers 1500 index objectClass eq lastmod on checkpoint 512 30 access to attrs=userPassword,shadowLastChange,loginShell by dn="cn=admin,dc=d11,dc=creufop,dc=univ-perp,dc=fr" write by anonymous auth by self write by * none access to dn.base="" by * read access to * by dn="cn=admin,dc=d11,dc=creufop,dc=univ-perp,dc=fr" write by * read