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

Re: problem with slapadd in migrating LDAP servers



Thanks for such a quick response on my last post. The mydomain vs my-domain is just that I am not using the actual domain for security purposes. I left out the - when typing over the real name. Just as "SekRit" seen above is not the real password to be appearing on the internet.


So I could use some guidance an clearing out the DB or setting it up. 
I have reviewed 10. Database Creation and Maintenance Tools in the admin24 guide but still seem to be having trouble.

slapd runnning:
# ldapadd -f /root/initializeDB.ldif -x -D "cn=administrator,dc=my-domain,dc=com" -w SekRit
ldap_bind: Invalid credentials (49)

slapd off:
# slapadd -l /root/initializeDB.ldif -F /etc/openldap/slapd.d/cn=config
Available database(s) do not allow slapadd

Maybe there is a way to just wipe out any contents and password in the database for a fresh start?


Thanks again,
Ken



From: Quanah Gibson-Mount <quanah@zimbra.com>
To: k j <kj37075@yahoo.com>; openldap-technical@openldap.org
Sent: Monday, February 1, 2016 3:20 PM
Subject: Re: problem with slapadd in migrating LDAP servers

--On Monday, February 01, 2016 9:13 PM +0000 k j <kj37075@yahoo.com> wrote:

># slapadd -l /tmp/nis.ldif.ldapDump
> 56afc9ed The first database does not allow slapadd; using the first
> available one (2)
> 56afc9ed bdb_db_open: warning - no DB_CONFIG file found in directory
> /var/lib/ldap: (2).
> Expect poor performance for suffix "dc=my-domain,dc=com".
> slapadd: line 1: database #2 (dc=my-domain,dc=com) not configured to hold
> "ou=Hosts,dc=company,dc=com"; no database configured for that naming
> context

That seems pretty clear.  You're trying to import
"ou=hosts,dc=company,dc=com" into a database that's configured to hold data
for "dc=my-domain,dc=com".  Clearly those are not even remotely the same.
It also seems like you're purely importing host data, which may be
problematic if this is an empty database.

Your ldapadd is also clearly invalid, because you're trying to do it as
"dc=mydomain,dc=com" where the DB is clearly configured as
"dc=my-domain,dc=com".  Again, clearly not the same thing at all.


--Quanah


--

Quanah Gibson-Mount
Platform Architect
Zimbra, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration

A division of Synacor, Inc