1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
allow bind_v2
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/samba.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
loglevel 16384
modulepath /usr/lib/ldap
moduleload back_hdb
backend hdb
database hdb
suffix "dc=test,dc=ch"
directory "/data/ldap/db"
checkpoint 512 30
dbconfig set_cachesize 0 2097152 0
dbconfig set_lk_max_objects 1500
dbconfig set_lk_max_locks 1500
dbconfig set_lk_max_lockers 1500
tool-threads 1
rootdn "cn=admin,dc=test,dc=ch"
rootpw "{SSHA}9KJ1Cyrmlp0oEsj4MyX3QdStkjT6Sl/j"
index objectClass eq
index sambaSID eq,pres
index sambaPrimaryGroupSID eq,pres
index sambaDomainName eq,pres
index default sub
lastmod on
access to attrs=userPassword
by anonymous auth
by self write
by * none
access to dn.base="" by * read
access to dn="dc=test,dc=ch"
by dn="cn=admin,dc=test,dc=ch" write
by self write
access to dn="cn=nobody,dc=test,dc=ch"
by anonymous auth stop
access to dn="cn=manager,cn=internal,dc=test,dc=ch"
by dn="cn=nobody,cn=internal,dc=test,dc=ch" read
by self write
by anonymous auth stop
access to attrs=sambaLMPassword
by dn.regex="cn=manager,cn=internal,dc=test,dc=ch" write
by anonymous auth
by self write
by * none
access to attrs=sambaNTPassword
by dn.regex="cn=manager,cn=internal,dc=test,dc=ch" write
by anonymous auth
by self write
by * none
access to *
by * read
password-hash {SHA} |
Partager