[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_get_values returns NULL.
Hi ,
I have a client set up to talk to the LDAP server .Well ,everything goes
fine till the point i call ldap_get_values .The ldap_search_s is a
SUCCESS.Also the parametrs of this call are fine .
I am running slapd in debug mode .Here's the output that i am getting .Seems
to me that the call is successful but i can't really understand why i am
getting NULL out of this call .
Here's the ouput form slapd :
-------------------------------------
ldap_read: want=1, got=1
0000: 30 0
ldap_read: want=1, got=1
0000: 32 2
ldap_read: want=50, got=50
0000: 02 01 02 63 2d 04 00 0a 01 00 0a 01 00 02 01 00 ...c-...........
0010: 02 01 00 01 01 00 a3 0a 04 02 63 6e 04 04 48 65 ..........cn..He
0020: 6d 61 30 0e 04 0c 75 73 65 72 50 61 73 73 77 6f ma0...userPasswo
0030: 72 64 rd
ber_get_next: tag 0x30 len 50 contents:
ber_dump: buf=0x00099d58 ptr=0x00099d58 end=0x00099d8a len=50
0000: 02 01 02 63 2d 04 00 0a 01 00 0a 01 00 02 01 00 ...c-...........
0010: 02 01 00 01 01 00 a3 0a 04 02 63 6e 04 04 48 65 ..........cn..He
0020: 6d 61 30 0e 04 0c 75 73 65 72 50 61 73 73 77 6f ma0...userPasswo
0030: 72 64 rd
ber_get_next
ldap_read: want=1 error=Resource temporarily unavailable
ber_get_next on fd 8 failed errno=11 (Resource temporarily unavailable)
daemon: select: listen=7 active_threads=1 tvp=NULL
do_search
ber_scanf fmt ({aiiiib) ber:
ber_dump: buf=0x00099d58 ptr=0x00099d5b end=0x00099d8a len=47
0000: 63 2d 04 00 0a 01 00 0a 01 00 02 01 00 02 01 00 c-..............
0010: 01 01 00 a3 0a 04 02 63 6e 04 04 48 65 6d 61 30 .......cn..Hema0
0020: 0e 04 0c 75 73 65 72 50 61 73 73 77 6f 72 64 ...userPassword
SRCH "" 0 0 0 0 0
begin get_filter
EQUALITY
ber_scanf fmt ({oo}) ber:
ber_dump: buf=0x00099d58 ptr=0x00099d6e end=0x00099d8a len=28
0000: a3 0a 04 02 63 6e 04 04 48 65 6d 61 30 0e 04 0c ....cn..Hema0...
0010: 75 73 65 72 50 61 73 73 77 6f 72 64 userPassword
end get_filter 0
filter: (cn=Hema)
ber_scanf fmt ({v}}) ber:
ber_dump: buf=0x00099d58 ptr=0x00099d7a end=0x00099d8a len=16
0000: 30 0e 04 0c 75 73 65 72 50 61 73 73 77 6f 72 64 0...userPassword
attrs: userPassword
conn=2 op=2 SRCH base="" scope=0 filter="(cn=Hema)"
=> test_filter
EQUALITY
<= test_filter 5
send_ldap_result: conn=2 op=2 p=2
send_ldap_result: 0::
send_ldap_response: msgid=2 tag=101 err=0
ber_flush: 14 bytes to sd 8
0000: 30 0c 02 01 02 65 07 0a 01 00 04 00 04 00 0....e........
ldap_write: want=14, written=14
0000: 30 0c 02 01 02 65 07 0a 01 00 04 00 04 00 0....e........
conn=2 op=2 RESULT tag=101 err=0 text=
---------------------------------------------------------
Any pointers wud be a great help .
Thanks,
Hemlata.
__________________________________________
NetZero Platinum
Sign Up Today - Only $9.95 per month!
http://www.netzero.net