Thanks for the hints. Here are the results...
1. Added "loglevel 255" to /etc/openldap/slapd.conf, then :
Code: Select all
# /etc/init.d/slapd start
* Starting ldap-server ... [ !! ]
# tail /var/log/messages -n 80
Nov 30 17:37:52 gandalf slapd[9599]: @(#) $OpenLDAP: slapd 2.3.43 (Sep 22 2009 09:36:21) $
Nov 30 17:37:52 gandalf root@gandalf: /var/tmp/portage/net-nds/openldap-2.3.43/work/openldap-2.3.43/servers/slapd
Nov 30 17:37:52 gandalf slapd[9599]: >>> dnNormalize: <cn=Subschema>
Nov 30 17:37:52 gandalf slapd[9599]: <<< dnNormalize: <cn=subschema>
Nov 30 17:37:52 gandalf slapd[9599]: matching_rule_use_init
Nov 30 17:37:52 gandalf slapd[9599]: 1.2.840.113556.1.4.804 (integerBitOrMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 1.2.840.113556.1.4.804 NAME 'integerBitOrMatch' APPLIES ( supportedLDAPVersion $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcDbCacheFree $ olcDbCacheSize $ olcDbIDLcacheSize $ olcDbMode $ olcDbSearchStack $ olcDbShmKey $ olcChainMaxReferralDepth $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcProxyCacheQueries $ olcSpSessionlog ) )
Nov 30 17:37:52 gandalf slapd[9599]: 1.2.840.113556.1.4.803 (integerBitAndMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 1.2.840.113556.1.4.803 NAME 'integerBitAndMatch' APPLIES ( supportedLDAPVersion $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcDbCacheFree $ olcDbCacheSize $ olcDbIDLcacheSize $ olcDbMode $ olcDbSearchStack $ olcDbShmKey $ olcChainMaxReferralDepth $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcProxyCacheQueries $ olcSpSessionlog ) )
Nov 30 17:37:52 gandalf slapd[9599]: 1.3.6.1.4.1.1466.109.114.2 (caseIgnoreIA5Match):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 1.3.6.1.4.1.1466.109.114.2 NAME 'caseIgnoreIA5Match' APPLIES ( altServer $ mail $ dc $ associatedDomain $ email ) )
Nov 30 17:37:52 gandalf slapd[9599]: 1.3.6.1.4.1.1466.109.114.1 (caseExactIA5Match):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 1.3.6.1.4.1.1466.109.114.1 NAME 'caseExactIA5Match' APPLIES ( altServer $ mail $ dc $ associatedDomain $ email ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.35 (certificateMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.35 NAME 'certificateMatch' APPLIES ( userCertificate $ cACertificate ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.34 (certificateExactMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.34 NAME 'certificateExactMatch' APPLIES ( userCertificate $ cACertificate ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.30 (objectIdentifierFirstComponentMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.30 NAME 'objectIdentifierFirstComponentMatch' APPLIES ( supportedControl $ supportedExtension $ supportedFeatures $ ldapSyntaxes $ supportedApplicationContext ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.29 (integerFirstComponentMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.29 NAME 'integerFirstComponentMatch' APPLIES ( supportedLDAPVersion $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcDbCacheFree $ olcDbCacheSize $ olcDbIDLcacheSize $ olcDbMode $ olcDbSearchStack $ olcDbShmKey $ olcChainMaxReferralDepth $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcProxyCacheQueries $ olcSpSessionlog ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.27 (generalizedTimeMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.27 NAME 'generalizedTimeMatch' APPLIES ( createTimestamp $ modifyTimestamp ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.24 (protocolInformationMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.24 NAME 'protocolInformationMatch' APPLIES protocolInformation )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.23 (uniqueMemberMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.23 NAME 'uniqueMemberMatch' APPLIES uniqueMember )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.22 (presentationAddressMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.22 NAME 'presentationAddressMatch' APPLIES presentationAddress )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.20 (telephoneNumberMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.20 NAME 'telephoneNumberMatch' APPLIES telephoneNumber )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.17 (octetStringMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.17 NAME 'octetStringMatch' APPLIES ( userPassword $ queryid ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.16 (bitStringMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.16 NAME 'bitStringMatch' APPLIES x500UniqueIdentifier )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.14 (integerMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.14 NAME 'integerMatch' APPLIES ( supportedLDAPVersion $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcDbCacheFree $ olcDbCacheSize $ olcDbIDLcacheSize $ olcDbMode $ olcDbSearchStack $ olcDbShmKey $ olcChainMaxReferralDepth $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcProxyCacheQueries $ olcSpSessionlog ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.13 (booleanMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.13 NAME 'booleanMatch' APPLIES ( hasSubordinates $ olcGentleHUP $ olcLastMod $ olcReadOnly $ olcReverseLookup $ olcDbNoSync $ olcDbDirtyRead $ olcDbLinearIndex $ olcChainCacheURI $ olcChainReturnError $ olcDbRebindAsUser $ olcDbChaseReferrals $ olcDbProxyWhoAmI $ olcDbSingleConn $ olcDbUseTemporaryConn $ olcSpNoPresent $ olcSpReloadHint ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.11 (caseIgnoreListMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.11 NAME 'caseIgnoreListMatch' APPLIES ( postalAddress $ registeredAddress ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.8 (numericStringMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.8 NAME 'numericStringMatch' APPLIES ( x121Address $ internationaliSDNNumber ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.7 (caseExactSubstringsMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.7 NAME 'caseExactSubstringsMatch' APPLIES ( serialNumber $ destinationIndicator $ dnQualifier ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.6 (caseExactOrderingMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.6 NAME 'caseExactOrderingMatch' APPLIES ( serialNumber $ destinationIndicator $ dnQualifier ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.5 (caseExactMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.5 NAME 'caseExactMatch' APPLIES ( supportedSASLMechanisms $ vendorName $ vendorVersion $ ref $ name $ cn $ uid $ labeledURI $ description $ olcConfigFile $ olcConfigDir $ olcAccess $ olcAllows $ olcArgsFile $ olcAttributeOptions $ olcAttributeTypes $ olcAuthIDRewrite $ olcAuthzPolicy $ olcAuthzRegexp $ olcBackend $ olcDatabase $ olcDisallows $ olcDitContentRules $ olcInclude $ olcLimits $ olcLogFile $ olcLogLevel $ olcModuleLoad $ olcModulePath $ olcObjectClasses $ olcObjectIdentifier $ olcOverlay $ olcPasswordCryptSaltFormat $ olcPasswordHash $ olcPidFile $ olcPlugin $ olcPluginLogFile $ olcReferral $ olcReplica $ olcReplicaArgsFile $ olcReplicaPidFile $ olcReplogFile $ olcRequires $ olcRestrict $ olcRootDSE $ olcRootPW $ olcSaslHost $ olcSaslRealm $ olcSaslSecProps $ olcSecurity $ olcSizeLimit $ olcSrvtab $ olcSubordinate $ olcSyncrepl $ olcTimeLimit $ olcTLSCACertificateFile $ olcTLSCACertificatePath $ olcTLSCertificateFile $ olcTLSCertificateKeyFile $ olcTLSCipherSuite $ olcTLSCRLCheck $ olcTLSRandFile $ olcTLSVerifyClient $ olcTLSDHParamFile $ olcUpdateRef $ olcDbDirectory $ olcDbCheckpoint $ olcDbConfig $ olcDbIndex $ olcDbLockDetect $ olcDbURI $ olcDbStartTLS $ olcDbACLPasswd $ olcDbACLBind $ olcDbIDAssertPasswd $ olcDbIDAssertBind $ olcDbIDAssertMode $ olcDbIDAssertAuthzFrom $ olcDbTFSupport $ olcDbTimeout $ olcDbIdleTimeout $ olcDbConnTtl $ olcDbNetworkTimeout $ olcDbCancel $ olcDbQuarantine $ olcProxyCache $ olcProxyAttrset $ olcProxyTemplate $ olcProxyResponseCB $ olcSpCheckpoint $ knowledgeInformation $ sn $ serialNumber $ c $ l $ st $ street $ o $ ou $ title $ businessCategory $ postalCode $ postOfficeBox $ physicalDeliveryOfficeName $ destinationIndicator $ givenName $ initials $ generationQualifier $ dnQualifier $ houseIdentifier $ dmdName $ pseudonym ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.4 (caseIgnoreSubstringsMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.4 NAME 'caseIgnoreSubstringsMatch' APPLIES ( serialNumber $ destinationIndicator $ dnQualifier ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.3 (caseIgnoreOrderingMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.3 NAME 'caseIgnoreOrderingMatch' APPLIES ( serialNumber $ destinationIndicator $ dnQualifier ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.2 (caseIgnoreMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.2 NAME 'caseIgnoreMatch' APPLIES ( supportedSASLMechanisms $ vendorName $ vendorVersion $ ref $ name $ cn $ uid $ labeledURI $ description $ olcConfigFile $ olcConfigDir $ olcAccess $ olcAllows $ olcArgsFile $ olcAttributeOptions $ olcAttributeTypes $ olcAuthIDRewrite $ olcAuthzPolicy $ olcAuthzRegexp $ olcBackend $ olcDatabase $ olcDisallows $ olcDitContentRules $ olcInclude $ olcLimits $ olcLogFile $ olcLogLevel $ olcModuleLoad $ olcModulePath $ olcObjectClasses $ olcObjectIdentifier $ olcOverlay $ olcPasswordCryptSaltFormat $ olcPasswordHash $ olcPidFile $ olcPlugin $ olcPluginLogFile $ olcReferral $ olcReplica $ olcReplicaArgsFile $ olcReplicaPidFile $ olcReplogFile $ olcRequires $ olcRestrict $ olcRootDSE $ olcRootPW $ olcSaslHost $ olcSaslRealm $ olcSaslSecProps $ olcSecurity $ olcSizeLimit $ olcSrvtab $ olcSubordinate $ olcSyncrepl $ olcTimeLimit $ olcTLSCACertificateFile $ olcTLSCACertificatePath $ olcTLSCertificateFile $ olcTLSCertificateKeyFile $ olcTLSCipherSuite $ olcTLSCRLCheck $ olcTLSRandFile $ olcTLSVerifyClient $ olcTLSDHParamFile $ olcUpdateRef $ olcDbDirectory $ olcDbCheckpoint $ olcDbConfig $ olcDbIndex $ olcDbLockDetect $ olcDbURI $ olcDbStartTLS $ olcDbACLPasswd $ olcDbACLBind $ olcDbIDAssertPasswd $ olcDbIDAssertBind $ olcDbIDAssertMode $ olcDbIDAssertAuthzFrom $ olcDbTFSupport $ olcDbTimeout $ olcDbIdleTimeout $ olcDbConnTtl $ olcDbNetworkTimeout $ olcDbCancel $ olcDbQuarantine $ olcProxyCache $ olcProxyAttrset $ olcProxyTemplate $ olcProxyResponseCB $ olcSpCheckpoint $ knowledgeInformation $ sn $ serialNumber $ c $ l $ st $ street $ o $ ou $ title $ businessCategory $ postalCode $ postOfficeBox $ physicalDeliveryOfficeName $ destinationIndicator $ givenName $ initials $ generationQualifier $ dnQualifier $ houseIdentifier $ dmdName $ pseudonym ) )
Nov 30 17:37:52 gandalf slapd[9599]: 1.2.36.79672281.1.13.3 (rdnMatch):
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.1 (distinguishedNameMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.1 NAME 'distinguishedNameMatch' APPLIES ( creatorsName $ modifiersName $ subschemaSubentry $ namingContexts $ aliasedObjectName $ distinguishedName $ seeAlso $ olcDefaultSearchBase $ olcRootDN $ olcSchemaDN $ olcSuffix $ olcUpdateDN $ olcDbACLAuthcDn $ olcDbIDAssertAuthcDn $ member $ owner $ roleOccupant ) )
Nov 30 17:37:52 gandalf slapd[9599]: 2.5.13.0 (objectIdentifierMatch):
Nov 30 17:37:52 gandalf slapd[9599]: matchingRuleUse: ( 2.5.13.0 NAME 'objectIdentifierMatch' APPLIES ( supportedControl $ supportedExtension $ supportedFeatures $ supportedApplicationContext ) )
Nov 30 17:37:52 gandalf slapd[9600]: slapd startup: initiated.
Nov 30 17:37:52 gandalf slapd[9600]: backend_startup_one: starting "cn=config"
Nov 30 17:37:52 gandalf slapd[9600]: config_back_db_open
Nov 30 17:37:52 gandalf slapd[9600]: config_build_entry: "cn=config"
Nov 30 17:37:52 gandalf slapd[9600]: config_build_entry: "cn=include{0}"
Nov 30 17:37:52 gandalf slapd[9600]: config_build_entry: "cn=module{0}"
Nov 30 17:37:52 gandalf slapd[9600]: config_build_entry: "cn=schema"
Nov 30 17:37:52 gandalf slapd[9600]: config_build_entry: "cn={0}core"
Nov 30 17:37:52 gandalf slapd[9600]: config_build_entry: "olcDatabase={-1}frontend"
Nov 30 17:37:52 gandalf slapd[9600]: config_build_entry: "olcDatabase={0}config"
Nov 30 17:37:52 gandalf slapd[9600]: config_build_entry: "olcDatabase={1}hdb"
Nov 30 17:37:52 gandalf slapd[9600]: backend_startup_one: starting "dc=my-domain,dc=com"
Nov 30 17:37:52 gandalf slapd[9600]: hdb_db_open: dc=my-domain,dc=com
Nov 30 17:37:52 gandalf slapd[9600]: hdb_db_open: alock package is unstable
Nov 30 17:37:52 gandalf slapd[9600]: backend_startup_one: bi_db_open failed! (-1)
Nov 30 17:37:52 gandalf slapd[9600]: slapd shutdown: initiated
Nov 30 17:37:52 gandalf slapd[9600]: ====> bdb_cache_release_all
Nov 30 17:37:52 gandalf slapd[9600]: slapd destroy: freeing system resources.
Nov 30 17:37:52 gandalf slapd[9600]: slapd stopped.
Nov 30 17:37:52 gandalf slapd[9600]: connections_destroy: nothing to destroy.
(sorry, because of loglevel there are many lines!)
There's no specific log configures for openldap, so everything should be here...
I'd say this line indicates the problem : hdb_db_open: alock package is unstable (but I don't know what it is!)
-> slapd and slurpd still stopped.
Loglevel values are here, if you want a reminder :
http://www.zytrax.com/books/ldap/ch6/#loglevel
2. Starting slapd manually gives the same messages (as far as I could check, at least)
3. Having added the lines given by Mike Hunt, slurpd starts allright (but I still can't start slappd).
Does anyone have an idea what's going on? I really don't know what LDAP is used for on my system. I only know that…
Code: Select all
# equery depends openldap
[ Searching for packages depending on openldap... ]
app-admin/sudo-1.7.2_p1 (ldap? >=net-nds/openldap-2.1.30-r1)
dev-lang/php-5.2.11 (ldap & !oci8? >=net-nds/openldap-1.2.11)
(ldap-sasl&!oci8? >=net-nds/openldap-1.2.11)
dev-libs/apr-util-1.3.9 (ldap? =net-nds/openldap-2*)
mail-mta/postfix-2.5.7 (ldap? >=net-nds/openldap-1.2)
net-ftp/proftpd-1.3.2-r2 (ldap? >=net-nds/openldap-1.2.11)
net-misc/curl-7.19.6 (ldap? net-nds/openldap)
net-misc/openssh-5.2_p1-r3 (ldap? net-nds/openldap)
sys-auth/nss_ldap-258 (>=net-nds/openldap-2.1.30-r5)
sys-fs/quota-3.17 (ldap? >=net-nds/openldap-2.3.35)
www-servers/apache-2.2.11-r2 (ldap? =net-nds/openldap-2*)
[edit]
Well, now that I'm looking more toroughly at the logfile...
It says at the beginning : bdb_back_initialize: Berkeley DB 4.5.20: (October 13, 2008)
But my installed version of DB is db-4.7.25_p4 ! How come ?
. . . . . . . .
eXess