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

Re: Problems with LDAP



On Wed, Jun 18, 2003 at 03:47:24PM -0400, yossef@yossefk.com wrote:
>  
> 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) 

In the slapd.conf file (below), you put "uid=root..." as the root DN,
and 'secret' as its password.  Above, you're trying to bind with
"uid=witthuhn...".

-BK


--
http://oss.netmojo.ca/

>  
> 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