LDAP
Last updated
#This tells slapd to listen for both regular and SSL connections.
OPTS="-h 'ldap:// ldaps://'"
#This allows slapd to find the keytab that it will use to validate GSSAPI authentication requests
#The keytab should contain the principal ldap/<Server FQDN> and should readable only by the user slapd runs as (by default, ldap)
export KRB5_KTNAME="FILE:/etc/openldap/ldap.keytab"</nowiki>
# increase the maximum number of open file descriptors
rc_ulimit="-n 4096"#These options are used to tune the cache size and connection parameters
set_cachesize 0 2097152 0
set_lk_max_objects 1500
set_lk_max_locks 1500
set_lk_max_lockers 1500
#This flag means that slapd will automatically garbage-collect transaction logs
#Note that if this flag is set, it is critical to have regular backups or recovery of a corrupted database
#will be difficult or impossible
set_flags DB_LOG_AUTOREMOVE#This maps principals of the form ldap/<FQDN>@CSL.TJHSST.EDU to
#cn=<FQDN>,ou=consumers,dc=csl,dc=tjhsst,dc=edu
sasl-regexp uid=ldap/([^,]+),cn=CSL.TJHSST.EDU,cn=gssapi,cn=auth
cn=$1,ou=consumers,dc=csl,dc=tjhsst,dc=edu
#Replication options
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100dn: cn=openldap2,ou=consumers,dc=csl,dc=tjhsst,dc=edu
cn: openldap2
objectClass: top
objectClass: devicesyncrepl rid=123
provider=ldap://openldap1.tjhsst.edu:389
type=refreshOnly
interval=00:00:05:00
searchbase="dc=csl,dc=tjhsst,dc=edu"
schemachecking=off
bindmethod=sasl
saslmech=gssapi
realm=csl.tjhsst.edu
authcid="ldap/openldap2.tjhsst.edu@CSL.TJHSST.EDU"
#This line redirects any ldapadd/ldapmodify commands made against openldap2 to openldap1
updateref ldap://openldap1.tjhsst.edu