[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: ldapadd "ldap_bind: Invalid credentials (49)"



> -----Original Message-----
> From: Quanah Gibson-Mount [mailto:quanah@zimbra.com] 
> Sent: Thursday, August 29, 2013 3:31 PM
> To: Clint Petty
> Cc: openldap-technical@openldap.org
> Subject: RE: ldapadd "ldap_bind: Invalid credentials (49)"

> --On Thursday, August 29, 2013 10:28 PM +0000 Clint Petty 
> <cpetty@luthresearch.com> wrote:

> SLAPD_CONF="$SLAPD_PATH/etc/openldap/slapd.conf"
> SLAPD_CONF_DIR=""

> So this says to use slapd.conf.  You likely want to set SLAPD_CONF="" and 
> fix SLAPD_CONF_DIR to point to the location of your cn=config DB.

> --Quanah

Ok, I changed permission for ldap, and modified the /etc/default/slapd file with this:

SLAPD_CONF=""
SLAPD_CONF_DIR="/usr/local/etc/openldap/slapd.d/cn=config"

and now get the following error when I run slapd:

# /usr/local/openldap/libexec/slapd -d -1 -u ldap -F /usr/local/etc/openldap/slapd.d -h ldapi:///

521fd341 slapd startup: initiated.
521fd341 backend_startup_one: starting "cn=config"
521fd341 config_back_db_open
Backend ACL: access to *
	by * none
521fd341 config_back_db_open: line 0: warning: cannot assess the validity of the ACL scope wit
hin backend naming context
521fd341 backend_startup_one: starting "dc=luthresearch,dc=net"
521fd341 bdb_db_open: "dc=luthresearch,dc=net"
521fd341 bdb_db_open: database "dc=luthresearch,dc=net": dbenv_open(/var/lib/ldap).
521fd341 bdb(dc=luthresearch,dc=net): Program version 4.6 doesn't match environment version 4.7
521fd341 bdb_db_open: database "dc=luthresearch,dc=net" cannot be opened, err -30972. Restore 
from backup!
521fd341 ====> bdb_cache_release_all
521fd341 bdb(dc=luthresearch,dc=net): txn_checkpoint interface requires an environment configu
red for the transaction subsystem
521fd341 bdb_db_close: database "dc=luthresearch,dc=net": txn_checkpoint failed: Invalid argum
ent (22).
521fd341 backend_startup_one (type=bdb, suffix="dc=luthresearch,dc=net"): bi_db_open failed! (
-30972)
521fd341 slapd shutdown: initiated
521fd341 ====> bdb_cache_release_all
521fd341 bdb_db_close: database "dc=luthresearch,dc=net": alock_close failed
521fd341 slapd destroy: freeing system resources.
521fd341 syncinfo_free: rid=002
521fd341 slapd stopped.

Clint