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

Re: Issue using ldapadd



Make sure you host is valid.  Add -H ldap://your.host.here:389

It may be trying localhost and your server may not be listening on 127.0.01:389

Sellers

On Dec 21, 2007, at 9:44 AM, Jonathan Wage wrote:

Using the following command:

ldapadd -x -D "cn=Manager,dc=example,dc=com" -f example.ldif -w secret

No matter what I do, it says: ldap_bind: Invalid credentials (49)

Here is my slapd.conf

database bdb
suffix      "dc=example,dc=com"
rootdn     "cn=Manager,dc=example,dc=com"
rootpw    secret

Here is example.ldif:

dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example

dn: cn=Manager,dc=example,dc=com
objectclass: organizationalRole
cn: Manager

I saw another person with the same issue but it was because the slapd.conf information did not match the information being passed to ldapadd, I already correct that as you can see and it still does not work. What else am I missing?

Thanks, Jon

--
Jonathan Wage
http://www.jwage.com
http://www.centresource.com


|----------------------------------------------------------------------|
Chris G. Sellers, MLS      Lead Internet Engineer
National Institute for Technology & Liberal Education
535 West William Street, Ann Arbor, Michigan  48103
chris.sellers@nitle.org         734.661.2318