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

Re: Issue using ldapadd

Try the command;

ldapadd -W -D cn=Manager,dc=example,dc=com -f example.ldif -x

and type the password

On Dec 21, 2007 12:44 PM, Jonathan Wage < jonwage@gmail.com> 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

Henrique Schneider