The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> LDAP Programming
|
ldap_bind: Invalid credentials (49)
Discuss ldap_bind: Invalid credentials (49) in the LDAP Programming forum on Dev Shed. ldap_bind: Invalid credentials (49) LDAP Programming forum discussing Lightweight Directory Access Protocol information and techniques. LDAP is used to allow applications to access directory information from a server.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

March 8th, 2005, 10:51 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 2
Time spent in forums: 23 m 23 sec
Reputation Power: 0
|
|
|
ldap_bind: Invalid credentials (49)
Hey, I am new to LDAP and I think I am missing something obvious. Yet I have combed my files and found no errors that I can see. If anybody has a minute, could you look at my files to see why I am getting an invalid credentials error.
## slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
allow bind_v2
database ldbm
suffix "dc=example, dc=com"
rootdn "cn=manager, dc=example, dc=com"
rootpw test
directory /var/db/openldap-data
index objectClass eq
# directory.ldif
dn: dc=example, dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
dc: example
o: Example Inc.
dn: cn=mangager,dc=example,dc=com
objectclass: organizationalRole
cn: manager
description: Directory Manger
( I am trying to use a clear text password with simple binding.)
#ldappadd
/usr/bin/ldapadd -f /etc/openldap/directory.ldif -x -D "cn=manager, dc=example, dc=com" -w test
#returns following message
ldap_bind: Invalid credentials (49)
#ldapadd
ldapadd -D 'cn=Manager,dc=example,dc=com' -W -f directory.ldif
#returns following message
SASL/CRAM-MD5 authentication started
ldap_sasl_interactive_bind_s: Internal (implementation specific) error (80)
additional info: SASL(-13): user not found: no user in database
|

March 10th, 2005, 10:08 PM
|
 |
Chris Larivee
|
|
Join Date: Sep 2003
Location: Littleton, CO
Posts: 72

Time spent in forums: 1 h 49 m 14 sec
Reputation Power: 10
|
|
|
Try this ...
/usr/bin/ldapadd -D "cn=manager, dc=example, dc=com" -w test -f /etc/openldap/directory.ldif
|

March 10th, 2005, 10:54 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 2
Time spent in forums: 23 m 23 sec
Reputation Power: 0
|
|
|
Other issues
Quote: | Originally Posted by ldap4u Try this ...
/usr/bin/ldapadd -D "cn=manager, dc=example, dc=com" -w test -f /etc/openldap/directory.ldif |
Chris, many thanks for the reply. I recieved the following response to the sasl bind.
ldap_sasl_interactive_bind_s: Internal (implementation specific) error (80)
additional info: SASL(-13): user not found: no user in database
I am now convinced that the issue is related to the native installation of LDAP on OS X 10.3. I am going to wade through a compile from source. (As soon as I put on my helmut).
|

April 7th, 2005, 03:40 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 1
Time spent in forums: 15 m 39 sec
Reputation Power: 0
|
|
|
urgent kindly help
Hey, I am new to LDAP and I think I am missing something obvious. Yet I have combed my files and found no errors that I can see. If anybody has a minute, could you look at my files to see why I am getting an invalid credentials error.
## slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
allow bind_v2
database ldbm
suffix "dc=example, dc=com"
rootdn "cn=manager, dc=example, dc=com"
rootpw test
directory /var/db/openldap-data
index objectClass eq
# directory.ldif
dn: dc=example, dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
dc: example
o: Example Inc.
dn: cn=mangager,dc=example,dc=com
objectclass: organizationalRole
cn: manager
description: Directory Manger
( I am trying to use a clear text password with simple binding.)
#ldappadd
/usr/bin/ldapadd -f /etc/openldap/directory.ldif -x -D "cn=manager, dc=example, dc=com" -w test
I have also tried this ...
/usr/bin/ldapadd -D "cn=manager, dc=example, dc=com" -w test -f /etc/openldap/directory.ldif
its giving error
ldap_sasl_interective_bind_s : No such attributes
What should i do.
|

July 13th, 2006, 03:49 AM
|
|
Registered User
|
|
Join Date: Jul 2006
Posts: 1
Time spent in forums: 4 m 55 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by americaster Hey, I am new to LDAP and I think I am missing something obvious. Yet I have combed my files and found no errors that I can see. If anybody has a minute, could you look at my files to see why I am getting an invalid credentials error.
## slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
allow bind_v2
database ldbm
suffix "dc=example, dc=com"
rootdn "cn=manager, dc=example, dc=com"
rootpw test
directory /var/db/openldap-data
index objectClass eq
# directory.ldif
dn: dc=example, dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
dc: example
o: Example Inc.
dn: cn=mangager,dc=example,dc=com
objectclass: organizationalRole
cn: manager
description: Directory Manger
( I am trying to use a clear text password with simple binding.)
#ldappadd
/usr/bin/ldapadd -f /etc/openldap/directory.ldif -x -D "cn=manager, dc=example, dc=com" -w test
#returns following message
ldap_bind: Invalid credentials (49)
#ldapadd
ldapadd -D 'cn=Manager,dc=example,dc=com' -W -f directory.ldif
#returns following message
SASL/CRAM-MD5 authentication started
ldap_sasl_interactive_bind_s: Internal (implementation specific) error (80)
additional info: SASL(-13): user not found: no user in database | show me the solution of ldap_bind Invalid credential
|

January 10th, 2010, 11:32 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 1
Time spent in forums: 4 m 49 sec
Reputation Power: 0
|
|
|
change the usage of slappasswd
Hi,
cleared this issue after using the passwd method as follows
#slappasswd -s secret
copy the output in slapd.conf and recycle the ldap. then try to add again
#ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f build.ldif
|

January 19th, 2010, 05:46 PM
|
|
Contributing User
|
|
Join Date: Jan 2009
Location: Charlotte, NC
Posts: 111
  
Time spent in forums: 22 h 18 m
Reputation Power: 8
|
|
|
I'm not sure if you have found a solution and I did not see where anyone pointed out the typo in your configuration file "dn: cn=mangager,dc=example,dc=com" should be "dn: cn=manager,dc=example,dc=com". It seems that is why your getting the user not found error, because your trying to bind with cn=manager,dc=example,dc=com.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|