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

RE: Problems with LDAP



Title: RE: Problems with LDAP

I don't believe slapd.conf will take a plain text password.  try using slappasswd to generate an encrypted form of your desired passwd and insert that into the slapd.conf.


Terry Inzauro

-----Original Message-----
From: yossef@yossefk.com [mailto:yossef@yossefk.com]
Sent: Wednesday, June 18, 2003 2: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