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

ldap_bind: Invalid credentials (49)



Hi, I've been going through the LDAP tutorial, and I'm stuck at the point of
adding new entries. I've tried the config files variety of ways, but I get
an invalid credentials error. I'm using OpenLDAP 2.1.17 BDB 4.1.25, running
on Cygwin. The bottom of my slapd.conf looks like this:

#######################################################################
# ldbm database definitions
#######################################################################

database	bdb
suffix		"dc=melonfire,dc=com"
rootdn		"cn=root,dc=melonfire,dc=com"

# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw		secret

# The database directory MUST exist prior to running slapd AND 
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory	/usr/local/openldap/var/openldap-data

# Indices to maintain
index	objectClass	eq

And I'm trying to add the entries in entries.ldap:

dn: dc=melonfire,dc=com
objectclass: dcObject
objectclass: organization
o: Melonfire
dc: melonfire.com

dn: mail=root@melonfire-mail.com,dc=melonfire,dc=com
objectclass: inetOrgPerson
cn: Keith
sn: Richards
mail: root@melonfire-mail.com

dn: mail=joe@melonfire-mail.com,dc=melonfire,dc=com
objectclass: inetOrgPerson
cn: Joe
sn: Somebody
mail: joe@melonfire-mail.com

dn: mail=sarah@melonfire-mail.com,dc=melonfire,dc=com
objectclass: inetOrgPerson
cn: Sarah
sn: Nobody
mail: sarah@melonfire-mail.com
telephoneNumber: 23 67 128 5639

Any suggestions?

Thanks,
Matt