bgoncalv / rpms / openldap

Forked from rpms/openldap 6 years ago
Clone
4c8f60b
diff -up openldap-2.4.11/servers/slapd/slapd.conf.config openldap-2.4.11/servers/slapd/slapd.conf
4c8f60b
--- openldap-2.4.11/servers/slapd/slapd.conf.config	2007-02-13 21:22:22.000000000 +0100
4c8f60b
+++ openldap-2.4.11/servers/slapd/slapd.conf	2008-10-09 16:13:52.000000000 +0200
d5ef856
@@ -2,22 +2,57 @@
d5ef856
 # See slapd.conf(5) for details on configuration options.
d5ef856
 # This file should NOT be world readable.
d5ef856
 #
d5ef856
-include		%SYSCONFDIR%/schema/core.schema
d5ef856
 
d5ef856
-# Define global ACLs to disable default read access.
d5ef856
+include		/etc/openldap/schema/corba.schema
d5ef856
+include		/etc/openldap/schema/core.schema
d5ef856
+include		/etc/openldap/schema/cosine.schema
d5ef856
+include		/etc/openldap/schema/duaconf.schema
d5ef856
+include		/etc/openldap/schema/dyngroup.schema
d5ef856
+include		/etc/openldap/schema/inetorgperson.schema
d5ef856
+include		/etc/openldap/schema/java.schema
d5ef856
+include		/etc/openldap/schema/misc.schema
d5ef856
+include		/etc/openldap/schema/nis.schema
d5ef856
+include		/etc/openldap/schema/openldap.schema
d5ef856
+include		/etc/openldap/schema/ppolicy.schema
d5ef856
+include		/etc/openldap/schema/collective.schema
d5ef856
+
d5ef856
+# Allow LDAPv2 client connections.  This is NOT the default.
d5ef856
+allow bind_v2
d5ef856
 
d5ef856
 # Do not enable referrals until AFTER you have a working directory
d5ef856
 # service AND an understanding of referrals.
d5ef856
 #referral	ldap://root.openldap.org
d5ef856
 
d5ef856
-pidfile		%LOCALSTATEDIR%/run/slapd.pid
d5ef856
-argsfile	%LOCALSTATEDIR%/run/slapd.args
d5ef856
+pidfile		/var/run/openldap/slapd.pid
d5ef856
+argsfile	/var/run/openldap/slapd.args
d5ef856
 
d5ef856
 # Load dynamic backend modules:
d5ef856
-# modulepath	%MODULEDIR%
d5ef856
-# moduleload	back_bdb.la
d5ef856
-# moduleload	back_hdb.la
d5ef856
-# moduleload	back_ldap.la
d5ef856
+# modulepath	/usr/lib/openldap # or /usr/lib64/openldap
d5ef856
+# moduleload accesslog.la
d5ef856
+# moduleload auditlog.la
d5ef856
+# moduleload back_sql.la
d5ef856
+# moduleload denyop.la
d5ef856
+# moduleload dyngroup.la
d5ef856
+# moduleload dynlist.la
d5ef856
+# moduleload lastmod.la
d5ef856
+# moduleload pcache.la
d5ef856
+# moduleload ppolicy.la
d5ef856
+# moduleload refint.la
d5ef856
+# moduleload retcode.la
d5ef856
+# moduleload rwm.la
d5ef856
+# moduleload syncprov.la
d5ef856
+# moduleload translucent.la
d5ef856
+# moduleload unique.la
d5ef856
+# moduleload valsort.la
d5ef856
+
d5ef856
+# The next three lines allow use of TLS for encrypting connections using a
d5ef856
+# dummy test certificate which you can generate by changing to
d5ef856
+# /etc/pki/tls/certs, running "make slapd.pem", and fixing permissions on
d5ef856
+# slapd.pem so that the ldap user or group can read it.  Your client software
d5ef856
+# may balk at self-signed certificates, however.
d5ef856
+# TLSCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
d5ef856
+# TLSCertificateFile /etc/pki/tls/certs/slapd.pem
d5ef856
+# TLSCertificateKeyFile /etc/pki/tls/certs/slapd.pem
d5ef856
 
d5ef856
 # Sample security restrictions
d5ef856
 #	Require integrity protection (prevent hijacking)
4c8f60b
@@ -47,19 +82,42 @@ argsfile	%LOCALSTATEDIR%/run/slapd.args
d5ef856
 # rootdn can always read and write EVERYTHING!
d5ef856
 
d5ef856
 #######################################################################
d5ef856
-# BDB database definitions
d5ef856
+# ldbm and/or bdb database definitions
d5ef856
 #######################################################################
d5ef856
 
d5ef856
 database	bdb
d5ef856
 suffix		"dc=my-domain,dc=com"
4c8f60b
+checkpoint	1024 15
d5ef856
 rootdn		"cn=Manager,dc=my-domain,dc=com"
d5ef856
 # Cleartext passwords, especially for the rootdn, should
d5ef856
-# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
d5ef856
+# be avoided.  See slappasswd(8) and slapd.conf(5) for details.
d5ef856
 # Use of strong authentication encouraged.
d5ef856
-rootpw		secret
d5ef856
+# rootpw		secret
d5ef856
+# rootpw		{crypt}ijFYNcSNctBYg
d5ef856
+
d5ef856
 # The database directory MUST exist prior to running slapd AND 
d5ef856
 # should only be accessible by the slapd and slap tools.
d5ef856
 # Mode 700 recommended.
d5ef856
-directory	%LOCALSTATEDIR%/openldap-data
d5ef856
-# Indices to maintain
d5ef856
-index	objectClass	eq
d5ef856
+directory	/var/lib/ldap
d5ef856
+
d5ef856
+# Indices to maintain for this database
d5ef856
+index objectClass                       eq,pres
d5ef856
+index ou,cn,mail,surname,givenname      eq,pres,sub
d5ef856
+index uidNumber,gidNumber,loginShell    eq,pres
d5ef856
+index uid,memberUid                     eq,pres,sub
d5ef856
+index nisMapName,nisMapEntry            eq,pres,sub
d5ef856
+
d5ef856
+# Replicas of this database
d5ef856
+#replogfile /var/lib/ldap/openldap-master-replog
d5ef856
+#replica host=ldap-1.example.com:389 starttls=critical
d5ef856
+#     bindmethod=sasl saslmech=GSSAPI
d5ef856
+#     authcId=host/ldap-master.example.com@EXAMPLE.COM
d5ef856
+
d5ef856
+
d5ef856
+# enable monitoring
d5ef856
+database monitor
d5ef856
+
d5ef856
+# allow onlu rootdn to read the monitor
d5ef856
+access to *
d5ef856
+        by dn.exact="cn=Manager,dc=my-domain,dc=com" read
d5ef856
+        by * none