|
Written by pnyet
|
|
Reference of slapd.conf
# /etc/openldap/slapd.conf # using slurpd # LDAP Master
include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/samba.schema
pidfile /var/run/openldap/slapd.pid argsfile /var/run/openldap/slapd.args
database bdb suffix "dc=lerindro,dc=net" rootdn "cn=Manager,dc=lerindro,dc=net" # rootpw = not24get rootpw {SSHA}86kTavd9Dw3FAz6qzWTrCOKX/c0Qe+UV
directory /var/lib/ldap
#replica host=server2.lerindro.net:389 # suffix="dc=lerindro,dc=net" # binddn="cn=syncuser,dc=lerindro,dc=net" # bindmethod=simple credentials=SyncUser # #replogfile /var/lib/ldap/replogfile
access to attrs=userPassword by self write by dn="cn=sambaadmin,dc=lerindro,dc=net" write by dn="cn=syncuser,dc=lerindro,dc=net" read by * auth access to attrs=sambaLMPassword,sambaNTPassword by dn="cn=sambaadmin,dc=lerindro,dc=net" write by dn="cn=syncuser,dc=lerindro,dc=net" read
access to * by dn="cn=sambaadmin,dc=lerindro,dc=net" write by dn="cn=syncuser,dc=lerindro,dc=net" read by * read
# Indices to maintain index objectClass eq index cn pres,sub,eq index sn pres,sub,eq index uid pres,sub,eq index displayName pres,sub,eq index uidNumber eq index gidNumber eq index memberUID eq index sambaSID eq index sambaPrimaryGroupSID eq index sambaDomainName eq index default sub
|