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

ldap_simple_bind_s: Invalid credentials



I am getting "ldap_simple_bind_s: Invalid credentials" when I attempt to run an ldapadd to test the connection.
I have succesfully installed and tested (with make test) openldap. I have run slappasswd for a text password and copied the output into slapd.conf. The slapd.conf, command and output are below. Any help please.
 
 
root -> ldapadd -f /tmp/newentry -D "cn=admin, o=buildonline, c=com"
Bind Password:
ldap_simple_bind_s: Invalid credentials
 
 
*****************slapd.conf********************
database        ldbm
#suffix         "dc=buildonline,dc=com"
rootdn          "cn=admin, o=buildonline, c=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          {SSHA}CTE1+SC+5QGMIUnCm7OYomrm6ixyf+2T
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       /usr/local/var/openldap-ldbm
# Indices to maintain
****************************************************
 
****************debug output produced for above command*******************
daemon: added 6r
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: new connection on 7
daemon: conn=0 fd=7 connection from IP=127.0.0.1:35464 (IP=0.0.0.0:0) accepted.
daemon: added 7r
daemon: activity on:
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 7r
daemon: read activity on 7
connection_get(7)
connection_get(7): got connid=0
connection_read(7): checking for input on id=0
ber_get_next
ldap_read: want=1, got=1
  0000:  30                                                 0                
ldap_read: want=1, got=1
  0000:  2f                                                 /                
ldap_read: want=47, got=47
  0000:  02 01 01 60 2a 02 01 03  04 1e 63 6e 3d 61 64 6d   ...`*.....cn=adm 
  0010:  69 6e 2c 20 6f 3d 62 75  69 6c 64 6f 6e 6c 69 6e   in, o=buildonlin 
  0020:  65 2c 20 63 3d 63 6f 6d  80 05 61 64 6d 69 6e      e, c=com..admin  
ber_get_next: tag 0x30 len 47 contents:
ber_dump: buf=0x00093590 ptr=0x00093590 end=0x000935bf len=47
  0000:  02 01 01 60 2a 02 01 03  04 1e 63 6e 3d 61 64 6d   ...`*.....cn=adm 
  0010:  69 6e 2c 20 6f 3d 62 75  69 6c 64 6f 6e 6c 69 6e   in, o=buildonlin 
  0020:  65 2c 20 63 3d 63 6f 6d  80 05 61 64 6d 69 6e      e, c=com..admin  
ber_get_next
ldap_read: want=1 error=Resource temporarily unavailable
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({iat) ber:
ber_dump: buf=0x00093590 ptr=0x00093593 end=0x000935bf len=44
  0000:  60 2a 02 01 03 04 1e 63  6e 3d 61 64 6d 69 6e 2c   `*.....cn=admin, 
  0010:  20 6f 3d 62 75 69 6c 64  6f 6e 6c 69 6e 65 2c 20    o=buildonline,  
  0020:  63 3d 63 6f 6d 80 05 61  64 6d 69 6e               c=com..admin     
ber_scanf fmt (o}) ber:
ber_dump: buf=0x00093590 ptr=0x000935b8 end=0x000935bf len=7
  0000:  80 05 61 64 6d 69 6e                               ..admin          
do_bind: version=3 dn="cn=admin, o=buildonline, c=com" method=128
conn=0 op=0 BIND dn="CN=ADMIN,O=BUILDONLINE,C=COM" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: 49::
send_ldap_response: msgid=1 tag=97 err=49
ber_flush: 14 bytes to sd 7
  0000:  30 0c 02 01 01 61 07 0a  01 31 04 00 04 00         0....a...1....   
ldap_write: want=14, written=14
  0000:  30 0c 02 01 01 61 07 0a  01 31 04 00 04 00         0....a...1....   
conn=0 op=0 RESULT tag=97 err=49 text=
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 7r
daemon: read activity on 7
connection_get(7)
connection_get(7): got connid=0
connection_read(7): checking for input on id=0
ber_get_next
ldap_read: want=1, got=0
 
ber_get_next on fd 7 failed errno=0 (Error 0)
connection_read(7): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=7 for close
connection_close: conn=0 sd=7
daemon: removing 7
conn=-1 fd=7 closed
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=0 tvp=NULL
*******************************************************************