#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    2
    Rep 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
  2. #2
  3. Chris Larivee
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Littleton, CO
    Posts
    72
    Rep Power
    11
    Try this ...

    /usr/bin/ldapadd -D "cn=manager, dc=example, dc=com" -w test -f /etc/openldap/directory.ldif
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2005
    Posts
    2
    Rep Power
    0

    Other issues


    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).
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2005
    Posts
    1
    Rep 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.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2006
    Posts
    1
    Rep Power
    0
    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
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    1
    Rep 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
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Location
    Charlotte, NC
    Posts
    111
    Rep Power
    9
    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.

IMN logo majestic logo threadwatch logo seochat tools logo