[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_bind: Invalid credentials (49) after Upgrade
In the past 2 days I have not been able to update my directory or login using simple authentication. Previously it worked fine and I did not make any changes.
My config file is :
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/misc.schema
include /etc/openldap/schema/samba.schema
include /etc/openldap/schema/apple.schema
include /etc/openldap/schema/netinfo.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
database bdb
suffix "o=j2anywhere,c=com"
rootdn "cn=ldapadmin,o=j2anywhere,c=com"
rootpw secret
directory /var/db/openldap/addressbook-data
index objectClass eq
and when I connect from the same workstation as follows i get a 49 error
wolf:~ alex$ ldapsearch -D "cn=ldapadmin,o=j2anywhere,c=com" -w password -x -b "o=j2anywhere,c=com" sn=*
ldap_bind: Invalid credentials (49)
The server does not report much that makes sense to me (see below)
any assistance would be great.
Alex
daemon: activity on 1 descriptors
daemon: new connection on 12
str2filter "(objectclass=*)"
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
begin get_filter
PRESENT
ber_scanf fmt (m) ber:
ber_dump: buf=0x01805a00 ptr=0x01805a00 end=0x01805a0d len=13
0000: 87 0b 6f 62 6a 65 63 74 63 6c 61 73 73 ..objectclass
end get_filter 0
daemon: added 12r
daemon: activity on:
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: select: listen=7 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 12r
daemon: read activity on 12
connection_get(12)
connection_get(12): got connid=0
connection_read(12): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
0000: 30 33 02 01 01 60 2e 02 03...`..
ldap_read: want=45, got=45
0000: 01 03 04 1f 63 6e 3d 6c 64 61 70 61 64 6d 69 6e ....cn=ldapadmin
0010: 2c 6f 3d 6a 32 61 6e 79 77 68 65 72 65 2c 63 3d ,o=j2anywhere,c=
0020: 63 6f 6d 80 08 70 61 73 73 77 6f 72 64 com..password
ber_get_next: tag 0x30 len 51 contents:
ber_dump: buf=0x00433ae0 ptr=0x00433ae0 end=0x00433b13 len=51
0000: 02 01 01 60 2e 02 01 03 04 1f 63 6e 3d 6c 64 61 ...`......cn=lda
0010: 70 61 64 6d 69 6e 2c 6f 3d 6a 32 61 6e 79 77 68 padmin,o=j2anywh
0020: 65 72 65 2c 63 3d 63 6f 6d 80 08 70 61 73 73 77 ere,c=com..passw
0030: 6f 72 64 ord
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
ber_get_next on fd 12 failed errno=35 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_dump: buf=0x00433ae0 ptr=0x00433ae3 end=0x00433b13 len=48
0000: 60 2e 02 01 03 04 1f 63 6e 3d 6c 64 61 70 61 64 `......cn=ldapad
0010: 6d 69 6e 2c 6f 3d 6a 32 61 6e 79 77 68 65 72 65 min,o=j2anywhere
0020: 2c 63 3d 63 6f 6d 80 08 70 61 73 73 77 6f 72 64 ,c=com..password
ber_scanf fmt (m}) ber:
ber_dump: buf=0x00433ae0 ptr=0x00433b09 end=0x00433b13 len=10
0000: 00 08 70 61 73 73 77 6f 72 64 ..password
>>> dnPrettyNormal: <cn=ldapadmin,o=j2anywhere,c=com>
=> ldap_bv2dn(cn=ldapadmin,o=j2anywhere,c=com,0)
<= ldap_bv2dn(cn=ldapadmin,o=j2anywhere,c=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=ldapadmin,o=j2anywhere,c=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=ldapadmin,o=j2anywhere,c=com,272)=0
<<< dnPrettyNormal: <cn=ldapadmin,o=j2anywhere,c=com>, <cn=ldapadmin,o=j2anywhere,c=com>
do_bind: version=3 dn="cn=ldapadmin,o=j2anywhere,c=com" method=128
==> bdb_bind: dn: cn=ldapadmin,o=j2anywhere,c=com
bdb_dn2entry_rw("cn=ldapadmin,o=j2anywhere,c=com")
=> bdb_dn2id_matched( "cn=ldapadmin,o=j2anywhere,c=com" )
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: select: listen=7 active_threads=1 tvp=NULL
<= bdb_dn2id_matched: id=0x00000001: matched o=j2anywhere,c=com
entry_decode: "o=j2anywhere,c=com"
<= entry_decode(o=j2anywhere,c=com)
====> bdb_cache_return_entry_r( 1 ): created (0)
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: err=49 matched="" text=""
send_ldap_response: msgid=1 tag=97 err=49
ber_flush: 14 bytes to sd 12
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....
daemon: activity on 1 descriptors
daemon: activity on: 12r
daemon: read activity on 12
connection_get(12)
connection_get(12): got connid=0
connection_read(12): checking for input on id=0
ber_get_next
ldap_read: want=8, got=0
ber_get_next on fd 12 failed errno=0 (Undefined error: 0)
connection_read(12): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=12 for close
connection_close: conn=0 sd=12
daemon: removing 12
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: select: listen=7 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: select: listen=7 active_threads=0 tvp=NULL