# This is the main ldapd configuration file.

# Schema and objectClass definitions
include		/etc/openldap/slapd.at.conf
include		/etc/openldap/slapd.oc.conf

# Schema for supporting daCode users directory entries
include		/etc/openldap/dacode.at.conf
include		/etc/openldap/dacode.oc.conf

# Schema check allows for forcing entries to
# match schemas for their objectClasses's
schemacheck	off

# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile		/var/run/slapd.pid

# Read slapd.conf(5) for possible values
loglevel	0

#######################################################################
# ldbm database definitions
#######################################################################

# The backend type, ldbm, is the default standard
database	ldbm

# The base of your directory
suffix		"dc=dacode,dc=org"

# Where the database file are physically stored
directory	"/var/lib/openldap"

# indexes
index login
index default none

# memory used
cachesize   10000
dbcachesize 5000000

# Save the time that the entry gets modified
lastmod off

# By default, only read access is allowed
defaultaccess	read

# The userPassword by default can be changed
# by the entry owning it if they are authenticated.
# Others should not be able to see it, except the
# admin entry below
access to attribute=userPassword
	by dn="login=admin,ou=People,dc=dacode,dc=org" write
	by self write
	by * none

# The admin dn has full write access
access to * by dn="login=admin,ou=People,dc=dacode,dc=org" write

# End of ldapd configuration file

rootdn "login=admin,ou=People,dc=dacode,dc=org"  
rootpw admin
