include         /etc/openldap/schema/corba.schema
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/duaconf.schema
include         /etc/openldap/schema/dyngroup.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/java.schema
include         /etc/openldap/schema/misc.schema
include         /etc/openldap/schema/nis.schema
include         /etc/openldap/schema/openldap.schema
include         /etc/openldap/schema/ppolicy.schema
include         /etc/openldap/schema/collective.schema


# Allow LDAPv2 client connections.  This is NOT the default.
allow bind_v2

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

pidfile         ./slapd.pid
argsfile        ./slapd.args


database        bdb
suffix          "dc=ccc,dc=cdc,dc=fr"

directory       ./db

# Compte d'admin
rootdn "cn=admin,dc=ccc,dc=cdc,dc=fr"
rootpw "admin"


# Indices to maintain for this database
index objectClass                       eq,pres
#index ou,cn,mail,surname,givenname      eq,pres,sub
index ou,cn                             eq,pres,sub
index uidNumber,gidNumber,loginShell    eq,pres
index uid,memberUid                     eq,pres,sub
#index nisMapName,nisMapEntry            eq,pres,sub
index entryCSN,entryUUID                eq

# enable monitoring
database monitor

access to *
        by * read

