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

Issues Binding



I am having issues binding to a build off of 2.1.22 base. I am trying to run an LDIF to create the base entries for the DBs I have defined in the conf file.

I have been assuming that it is a typo I am making somewhere, but the debug info makes me think it is something else - there is a "Resource temporarily unavailable" when (it appears) reading from the input stream. Can anyone help with this?

slapd.conf entry:

database        ldbm
suffix          "cn=popo"
rootdn         "cn=popo"
rootpw password
directory       "/var/openldap-data/users/service/db"
index objectClass,uid eq
lastmod on


Client Debug info:

cpu1-dev-ussea-96:~# ldapmodify -v -x -D 'cn=popo' -W -f
/var/openldap-data/users/service/config/masterconfig.ldif -d -1
ldap_initialize( <DEFAULT> )
ldap_create
Enter LDAP Password:
ldap_bind_s
ldap_simple_bind_s
ldap_sasl_bind_s
ldap_sasl_bind
ldap_send_initial_request
ldap_new_connection
ldap_int_open_connection
ldap_connect_to_host: TCP localhost:389
ldap_new_socket: 4
ldap_prepare_socket: 4
ldap_connect_to_host: Trying 127.0.0.1:389
ldap_connect_timeout: fd: 4 tm: -1 async: 0
ldap_ndelay_on: 4
ldap_is_sock_ready: 4
ldap_ndelay_off: 4
ldap_open_defconn: successful
ldap_send_server_request
ber_flush: 29 bytes to sd 4
0000: 30 1b 02 01 01 60 16 02 01 03 04 07 63 6e 3d 70 0....`......cn=p


0010: 6f 70 6f 80 08 70 61 73 73 77 6f 72 64 opo..password

ldap_write: want=29, written=29
0000: 30 1b 02 01 01 60 16 02 01 03 04 07 63 6e 3d 70 0....`......cn=p


0010: 6f 70 6f 80 08 70 61 73 73 77 6f 72 64 opo..password

ldap_result msgid 1
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
wait4msg (infinite timeout), msgid 1
wait4msg continue, msgid 1, all 1
** Connections:
* host: localhost  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Mon Sep 22 22:15:32 2003

** Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
ldap_int_select
read1msg: msgid 1, all 1
ber_get_next
ldap_read: want=8, got=8
  0000:  30 0c 02 01 01 61 07 0a                            0....a..

ldap_read: want=6, got=6
  0000:  01 31 04 00 04 00                                  .1....

ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x08073ad8 ptr=0x08073ad8 end=0x08073ae4 len=12
  0000:  02 01 01 61 07 0a 01 31  04 00 04 00               ...a...1....

ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x08073ad8 ptr=0x08073adb end=0x08073ae4 len=9
  0000:  61 07 0a 01 31 04 00 04  00                        a...1....

read1msg:  0 new referrals
read1msg:  mark request completed, id = 1
request 1 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x08073ad8 ptr=0x08073adb end=0x08073ae4 len=9
  0000:  61 07 0a 01 31 04 00 04  00                        a...1....

ber_scanf fmt (}) ber:
ber_dump: buf=0x08073ad8 ptr=0x08073ae4 end=0x08073ae4 len=0

ldap_msgfree
ldap_perror
ldap_bind: Invalid credentials (49)



Server Debug info:

daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: new connection on 9
conn=0 fd=9 ACCEPT from IP=127.0.0.1:43570 (IP=0.0.0.0:389)
daemon: added 9r
daemon: activity on:
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 9r
daemon: read activity on 9
connection_get(9)
connection_get(9): got connid=0
connection_read(9): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
  0000:  30 1b 02 01 01 60 16 02                            0....`..

ldap_read: want=21, got=21
0000: 01 03 04 07 63 6e 3d 70 6f 70 6f 80 08 70 61 73 ....cn=popo..pas


  0010:  73 77 6f 72 64                                     sword

ber_get_next: tag 0x30 len 27 contents:
ber_dump: buf=0x08135208 ptr=0x08135208 end=0x08135223 len=27
0000: 02 01 01 60 16 02 01 03 04 07 63 6e 3d 70 6f 70 ...`......cn=pop


  0010:  6f 80 08 70 61 73 73 77  6f 72 64                  o..password

do_bind
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
ber_get_next on fd 9 failed errno=11 (Resource temporarily unavailable)
daemon: select: listen=6 active_threads=1 tvp=NULL
ber_scanf fmt ({imt) ber:
ber_dump: buf=0x08135208 ptr=0x0813520b end=0x08135223 len=24
0000: 60 16 02 01 03 04 07 63 6e 3d 70 6f 70 6f 80 08 `......cn=popo..


  0010:  70 61 73 73 77 6f 72 64                            password

ber_scanf fmt (m}) ber:
ber_dump: buf=0x08135208 ptr=0x08135219 end=0x08135223 len=10
  0000:  00 08 70 61 73 73 77 6f  72 64                     ..password

dnPrettyNormal: <cn=popo>
=> ldap_bv2dn(cn=popo,0)
<= ldap_bv2dn(cn=popo,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=popo,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=popo,272)=0
<<< dnPrettyNormal: <cn=popo>, <cn=popo>
do_bind: version=3 dn="cn=popo" method=128
conn=0 op=0 BIND dn="cn=popo" method=128
==> ldbm_back_bind: dn: cn=popo
dn2entry_r: dn: "cn=popo"
=> dn2id( "cn=popo" )
=> ldbm_cache_open( "/var/openldap-data/users/service/db/dn2id.gdbm", 2, 600
)
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 9)
<= ldbm_cache_open (opened 0)
<= dn2id NOID
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 9
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: activity on 1 descriptors
daemon: activity on: 9r
daemon: read activity on 9
connection_get(9)
connection_get(9): got connid=0
connection_read(9): checking for input on id=0
ber_get_next
ldap_read: want=8, got=0

ber_get_next on fd 9 failed errno=0 (Success)
connection_read(9): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=9 for close
connection_close: conn=0 sd=9
daemon: removing 9
conn=0 fd=9 closed
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=0 tvp=NULL