]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
openldap: Add configuration file.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Aug 2009 08:53:58 +0000 (10:53 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Aug 2009 19:39:19 +0000 (21:39 +0200)
lfs/openldap
src/openldap/slapd.conf [new file with mode: 0644]

index 3c7c09dd8db42a62e45dff83df689c53c538a1f8..76c8c2cccae2db1731f3ce23022b8f3586433575 100644 (file)
@@ -115,7 +115,11 @@ $(OBJECT): $(objects)
                chmod -v 0755 /usr/lib/$$(readlink /usr/lib/lib$${LINK}.so); \
                rm -vf /usr/lib/lib$${LINK}.la; \
        done
+
+       # Install configuration
        $(INSTALL_INITSCRIPT)
+       $(INSTALL_CONFIG) $(DIR_SOURCE)/$(PKG_NAME)/slapd.conf \
+               > /etc/$(PKG_NAME)/slapd.conf
 
        -mkdir -pv /var/lib/ldap
        chmod 700 -Rv /var/lib/ldap
diff --git a/src/openldap/slapd.conf b/src/openldap/slapd.conf
new file mode 100644 (file)
index 0000000..4bb0880
--- /dev/null
@@ -0,0 +1,53 @@
+#  _        ___ _
+# (_)      / __|_)
+#  _ ____ | |__ _  ____ ____
+# | |  _ \|  __) |/ ___) _  )
+# | | | | | |  | | |  ( (/ /
+# |_| ||_/|_|  |_|_|   \____)
+#   |_|
+#
+# OpenLDAP configuration
+#
+# www.ipfire.org - Licensed under the GPLv3
+#
+
+include                /etc/openldap/schema/core.schema
+include                /etc/openldap/schema/cosine.schema
+include                /etc/openldap/schema/inetorgperson.schema
+include                /etc/openldap/schema/nis.schema
+
+pidfile                /var/run/slapd.pid
+argsfile       /var/run/slapd.args
+
+loglevel       2048
+
+#######################################################################
+# ACL
+#######################################################################
+
+access to attrs=userPassword,userPKCS12
+        by self write
+        by * auth
+access to attrs=shadowLastChange
+        by self write
+        by * read
+access to *
+        by * read
+
+#######################################################################
+# BDB database definitions
+#######################################################################
+
+database       hdb
+suffix         "dc=my-domain,dc=com"
+rootdn         "cn=Manager,dc=my-domain,dc=com"
+rootpw         secret
+
+directory      /var/lib/ldap
+
+# Indices to maintain for this database
+index objectClass                       eq,pres
+index ou,cn,mail,surname,givenname      eq,pres,sub
+index uidNumber,gidNumber,loginShell    eq,pres
+index uid,memberUid                     eq,pres,sub
+index nisMapName,nisMapEntry            eq,pres,sub