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

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



> --On Friday, August 30, 2013 6:54 PM +0000 Clint Petty 
> <cpetty@luthresearch.com> wrote:
>
> > My LDIF file looks like this:
>
> This is a slapd.conf file, not an LDIF file generated by slapcat.  Please 
> go examine the contents of the LDIF file generated by slapcat.
>
> --Quanah

When I run slapcat I get the following message because I renamed /usr/local/openldap/etc/openldap/slapd.conf to /usr/local/openldap/etc/openldap/slapd.conf.example, like you suggested, because I am using cn=config:

# slapcat
5220ed3a could not stat config file "/usr/local/openldap/etc/openldap/slapd.conf": No such file or directory (2)
slapcat: bad configuration file!

If I copy slapd.conf.example back to slapd.conf, and run slapcat, I get the following:

# slapcat
5220edaf bdb_db_open: warning - no DB_CONFIG file found in directory /usr/local/openldap/var/openldap-data: (2).
Expect poor performance for suffix "dc=luthresearch,dc=net".
5220edaf bdb_db_open: database "dc=luthresearch,dc=net": db_open(/usr/local/openldap/var/openldap-data/id2entry.bdb) failed: No such file or directory (2).
5220edaf backend_startup_one (type=bdb, suffix="dc=luthresearch,dc=net"): bi_db_open failed! (2)
slap_startup failed
#

Clint