[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Problems with LDAP
The binddn needs to match the rootdn, which your config file specifies as
uid=root,dc=solomon,dc=physics,dc=sc,dc=edu
Try:
ldapadd -x -D uid=root,dc=solomon,dc=physics,dc=sc,dc=edu -f josh.ldif -W
Matthew Hardin
Symas Corporation
Packaged, certified, and supported LDAP software:
http://www.symas.net/download
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of
> yossef@yossefk.com
> Sent: Wednesday, June 18, 2003 12:47 PM
> To: openldap-software@OpenLDAP.org
> Subject: Problems with LDAP
>
>
>
> I'm having quite a bit of problems with LDAP. I've done a lot of
> searching
> and reading through the archives, and I haven't found a solution to the
> problem.
>
> This is what I am currently trying:
> ldapadd -x -D "uid=witthuhn,dc=solomon,dc=physics,dc=sc,dc=edu"
> -f josh.ldif
> -W
> Enter LDAP Password:
> ldap_bind: Invalid credentials (49)
>
> for the password, I am putting in secret(because that is what it
> is set to in
> the slapd.conf file)
>
> Here's the slapd.conf file(with all the comments deleted of course):
>
> include /usr/local/etc/openldap/schema/core.schema
> include /usr/local/etc/openldap/schema/cosine.schema
> include /usr/local/etc/openldap/schema/nis.schema
>
> pidfile /usr/local/var/slapd.pid
> argsfile /usr/local/var/slapd.args
>
> database bdb
> suffix "dc=solomon,dc=physics,dc=sc,dc=edu"
> rootdn "uid=root,dc=solomon,dc=physics,dc=sc,dc=edu"
> rootpw secret
> replica host=nuc003.psc.sc.edu:389
> binddn="uid=root,dc=solomon,dc=physics,dc=sc,dc=edu"
> bindmethod=simple
> credentials=secret
> replogfile /usr/local/etc/openldap/slapd.replog
>
> directory /usr/local/var/openldap-data
>
> index objectClass eq
> ------
> Here is josh.ldif:
> dn: uid=witthuhn,dc=solomon,dc=physics,dc=sc,dc=edu
> objectClass: top
> objectClass: account
> objectClass: posixAccount
> uid: witthuhn
> cn: Josh Witthuhn
> uidNumber: 508
> gidNumber: 508
> homeDirectory: /home/witthuhn/
> userPassword: blah
> loginShell: /bin/bash
> ------
>
> Any help would be very appreciated with this.
>
> Thanks,
> Yossef Korang
>