LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 8th, 2005, 10:51 PM
americaster americaster is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 2 americaster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old March 10th, 2005, 10:08 PM
ldap4u's Avatar
ldap4u ldap4u is offline
Chris Larivee
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Littleton, CO
Posts: 72 ldap4u User rank is Private First Class (20 - 50 Reputation Level)ldap4u User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 h 49 m 14 sec
Reputation Power: 10
Send a message via MSN to ldap4u
Try this ...

/usr/bin/ldapadd -D "cn=manager, dc=example, dc=com" -w test -f /etc/openldap/directory.ldif

Reply With Quote
  #3  
Old March 10th, 2005, 10:54 PM
americaster americaster is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 2 americaster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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).

Reply With Quote
  #4  
Old April 7th, 2005, 03:40 AM
Gaurav Gera Gaurav Gera is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 1 Gaurav Gera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #5  
Old July 13th, 2006, 03:49 AM
sudhar_sn sudhar_sn is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 sudhar_sn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #6  
Old January 10th, 2010, 11:32 AM
unixdecode unixdecode is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2010
Posts: 1 unixdecode User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #7  
Old January 19th, 2010, 05:46 PM
ldapswandog ldapswandog is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2009
Location: Charlotte, NC
Posts: 111 ldapswandog User rank is Corporal (100 - 500 Reputation Level)ldapswandog User rank is Corporal (100 - 500 Reputation Level)ldapswandog User rank is Corporal (100 - 500 Reputation Level)ldapswandog User rank is Corporal (100 - 500 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > ldap_bind: Invalid credentials (49)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap