Browse Source

update openldap, fine tune config

Waldemar Brodkorb 13 years ago
parent
commit
9fa9bf80a2
3 changed files with 9 additions and 9 deletions
  1. 0 1
      mk/build.mk
  2. 5 4
      package/openldap/Makefile
  3. 4 4
      package/openldap/files/slapd.conf

+ 0 - 1
mk/build.mk

@@ -20,7 +20,6 @@ DEFCONFIG=		ADK_DEBUG=n \
 			ADK_PACKAGE_LM_SENSORS_DETECT=n \
 			ADK_PACKAGE_PACEMAKER_MGMTD=n \
 			ADK_PACKAGE_OPENJDK=n \
-			ADK_PACKAGE_RUBY=n \
 			ADK_PACKAGE_CLASSPATH=n \
 			ADK_PACKAGE_PCMANFM=n \
 			ADK_PACKAGE_GPSD=n \

+ 5 - 4
package/openldap/Makefile

@@ -4,12 +4,12 @@
 include ${TOPDIR}/rules.mk
 
 PKG_NAME:=		openldap
-PKG_VERSION:=		2.4.25
+PKG_VERSION:=		2.4.26
 PKG_RELEASE:=		1
-PKG_MD5SUM:=		ec63f9c2add59f323a0459128846905b
+PKG_MD5SUM:=		f36f3086031dd56ae94f722ffae8df5e
 PKG_DESCR:=		OpenLDAP client libraries
 PKG_SECTION:=		libs
-PKG_DEPENDS:=		libopenssl libsasl2
+PKG_DEPENDS:=		libopenssl libsasl2 libdb libpthread
 PKG_BUILDDEP:=		cyrus-sasl openssl db
 PKG_URL:=		http://www.openldap.org/
 PKG_SITES:=		ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
@@ -93,6 +93,7 @@ libopenldap-dev-install:
 		${IDIR_LIBOPENLDAP_DEV}/usr/include
 
 openldap-utils-install:
+	${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/etc/openldap-data
 	${INSTALL_DIR} ${IDIR_OPENLDAP_UTILS}/usr/bin
 	${CP} ${WRKINST}/usr/bin/ldap* ${IDIR_OPENLDAP_UTILS}/usr/bin/
 
@@ -100,7 +101,7 @@ openldap-slapd-install:
 	${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
 	${INSTALL_DIR} ${IDIR_OPENLDAP_SLAPD}/usr/sbin
 	${CP} ${WRKINST}/usr/sbin/slap* ${IDIR_OPENLDAP_SLAPD}/usr/sbin
-	${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/core.schema \
+	${INSTALL_DATA} ${WRKINST}/etc/openldap/schema/*.schema \
 		${IDIR_OPENLDAP_SLAPD}/etc/openldap/schema
 	${INSTALL_DATA} ./files/slapd.conf ${IDIR_OPENLDAP_SLAPD}/etc/openldap
 

+ 4 - 4
package/openldap/files/slapd.conf

@@ -16,15 +16,15 @@ argsfile	/var/run/slapd.args
 # BDB database definitions
 #######################################################################
 database	bdb
-suffix		"dc=my-domain,dc=com"
-rootdn		"cn=Manager,dc=my-domain,dc=com"
+suffix		"o=openadk"
+rootdn		"cn=admin,o=openadk"
 # Cleartext passwords, especially for the rootdn, should
 # be avoid.  See slappasswd(8) and slapd.conf(5) for details.
 # Use of strong authentication encouraged.
-rootpw		secret
+rootpw		linux123
 # The database directory MUST exist prior to running slapd AND 
 # should only be accessible by the slapd and slap tools.
 # Mode 700 recommended.
-directory	/var/openldap-data
+directory	/etc/openldap-data
 # Indices to maintain
 index	objectClass	eq