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

Cannot get attributes from java search



Hi all I am not retrieving any attributes from openLDAP. Below is my
debug info. While the entry: 
"cn=ELMARIE GREYLING,ou=Discovery Life,dc=discovery,dc=co,dc=za"

Is being found I cannot get any attribs and values back from my code.
JXplorer is fine, so I must be missing a filter or something?



daemon: activity on 1 descriptors
daemon: new connection on 10
ldap_pvt_gethostbyname_a: host=dltinf01.discovery.co.za, r=0
daemon: added 10r
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: 10r
daemon: read activity on 10
connection_get(10)
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
  0000:  30 0c 02 01 01 60 07 02                            0....`..
ldap_read: want=6, got=6
  0000:  01 03 04 00 80 00                                  ......
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x08214e08 ptr=0x08214e08 end=0x08214e14 len=12
  0000:  02 01 01 60 07 02 01 03  04 00 80 00               ...`........
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: select: listen=7 active_threads=0 tvp=NULL
do_bind
ber_scanf fmt ({imt) ber:
ber_dump: buf=0x08214e08 ptr=0x08214e0b end=0x08214e14 len=9
  0000:  60 07 02 01 03 04 00 80  00                        `........
ber_scanf fmt (m}) ber:
ber_dump: buf=0x08214e08 ptr=0x08214e12 end=0x08214e14 len=2
  0000:  00 00                                              ..
>>> dnPrettyNormal: <>
<<< dnPrettyNormal: <>, <>
do_bind: version=3 dn="" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 10
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00
0....a........
ldap_write: want=14, written=14
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00
0....a........
do_bind: v3 anonymous bind
daemon: activity on 1 descriptors
daemon: activity on: 10r
daemon: read activity on 10
connection_get(10)
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
  0000:  30 81 80 02 01 02 63 5e                            0.....c^
ldap_read: want=123, got=123
  0000:  04 3e 63 6e 3d 45 4c 4d  41 52 49 45 20 47 52 45   .>cn=ELMARIE
GRE
  0010:  59 4c 49 4e 47 2c 6f 75  3d 44 69 73 63 6f 76 65
YLING,ou=Discove
  0020:  72 79 20 4c 69 66 65 2c  64 63 3d 64 69 73 63 6f   ry
Life,dc=disco
  0030:  76 65 72 79 2c 64 63 3d  63 6f 2c 64 63 3d 7a 61
very,dc=co,dc=za
  0040:  0a 01 00 0a 01 03 02 01  00 02 01 00 01 01 00 87
................
  0050:  0b 6f 62 6a 65 63 74 43  6c 61 73 73 30 00 a0 1b
.objectClass0...
  0060:  30 19 04 17 32 2e 31 36  2e 38 34 30 2e 31 2e 31
0...2.16.840.1.1
  0070:  31 33 37 33 30 2e 33 2e  34 2e 32                  13730.3.4.2
ber_get_next: tag 0x30 len 128 contents:
ber_dump: buf=0x08238b08 ptr=0x08238b08 end=0x08238b88 len=128
  0000:  02 01 02 63 5e 04 3e 63  6e 3d 45 4c 4d 41 52 49
...c^.>cn=ELMARI
  0010:  45 20 47 52 45 59 4c 49  4e 47 2c 6f 75 3d 44 69   E
GREYLING,ou=Di
  0020:  73 63 6f 76 65 72 79 20  4c 69 66 65 2c 64 63 3d   scovery
Life,dc=
  0030:  64 69 73 63 6f 76 65 72  79 2c 64 63 3d 63 6f 2c
discovery,dc=co,
  0040:  64 63 3d 7a 61 0a 01 00  0a 01 03 02 01 00 02 01
dc=za...........
  0050:  00 01 01 00 87 0b 6f 62  6a 65 63 74 43 6c 61 73
......objectClas
  0060:  73 30 00 a0 1b 30 19 04  17 32 2e 31 36 2e 38 34
s0...0...2.16.84
  0070:  30 2e 31 2e 31 31 33 37  33 30 2e 33 2e 34 2e 32
0.1.113730.3.4.2
ber_get_next
do_search
ldap_read: want=8 error=Resource temporarily unavailable
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
ber_scanf fmt ({miiiib) ber:
daemon: select: listen=6 active_threads=0 tvp=NULL
ber_dump: buf=0x08238b08 ptr=0x08238b0b end=0x08238b88 len=125
  0000:  63 5e 04 3e 63 6e 3d 45  4c 4d 41 52 49 45 20 47
c^.>cn=ELMARIE G
  0010:  52 45 59 4c 49 4e 47 2c  6f 75 3d 44 69 73 63 6f
REYLING,ou=Disco
  0020:  76 65 72 79 20 4c 69 66  65 2c 64 63 3d 64 69 73   very
Life,dc=dis
  0030:  63 6f 76 65 72 79 2c 64  63 3d 63 6f 2c 64 63 3d
covery,dc=co,dc=
  0040:  7a 61 0a 01 00 0a 01 03  02 01 00 02 01 00 01 01
za..............
  0050:  00 87 0b 6f 62 6a 65 63  74 43 6c 61 73 73 30 00
...objectClass0.
  0060:  a0 1b 30 19 04 17 32 2e  31 36 2e 38 34 30 2e 31
..0...2.16.840.1
  0070:  2e 31 31 33 37 33 30 2e  33 2e 34 2e 32
.113730.3.4.2
daemon: select: listen=7 active_threads=0 tvp=NULL
>>> dnPrettyNormal: <cn=ELMARIE GREYLING,ou=Discovery
Life,dc=discovery,dc=co,dc=za>
=> ldap_bv2dn(cn=ELMARIE GREYLING,ou=Discovery
Life,dc=discovery,dc=co,dc=za,0)
ldap_err2string
<= ldap_bv2dn(cn=ELMARIE GREYLING,ou=Discovery
Life,dc=discovery,dc=co,dc=za)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=ELMARIE GREYLING,ou=Discovery
Life,dc=discovery,dc=co,dc=za)=0 Success
=> ldap_dn2bv(272)
ldap_err2string
<= ldap_dn2bv(cn=elmarie greyling,ou=discovery
life,dc=discovery,dc=co,dc=za)=0 Success
<<< dnPrettyNormal: <cn=ELMARIE GREYLING,ou=Discovery
Life,dc=discovery,dc=co,dc=za>, <cn=elmarie greyling,ou=discovery
life,dc=discovery,dc=co,dc=za>
SRCH "cn=ELMARIE GREYLING,ou=Discovery Life,dc=discovery,dc=co,dc=za" 0
3    0 0 0
begin get_filter
PRESENT
ber_scanf fmt (m) ber:
ber_dump: buf=0x08238b08 ptr=0x08238b5c end=0x08238b88 len=44
  0000:  87 0b 6f 62 6a 65 63 74  43 6c 61 73 73 30 00 a0
..objectClass0..
  0010:  1b 30 19 04 17 32 2e 31  36 2e 38 34 30 2e 31 2e
.0...2.16.840.1.
  0020:  31 31 33 37 33 30 2e 33  2e 34 2e 32               113730.3.4.2
end get_filter 0
    filter: (objectClass=*)
ber_scanf fmt ({M}}) ber:
ber_dump: buf=0x08238b08 ptr=0x08238b69 end=0x08238b88 len=31
  0000:  00 00 a0 1b 30 19 04 17  32 2e 31 36 2e 38 34 30
....0...2.16.840
  0010:  2e 31 2e 31 31 33 37 33  30 2e 33 2e 34 2e 32
.1.113730.3.4.2
=> get_ctrls
ber_scanf fmt ({m) ber:
ber_dump: buf=0x08238b08 ptr=0x08238b6d end=0x08238b88 len=27
  0000:  30 19 04 17 32 2e 31 36  2e 38 34 30 2e 31 2e 31
0...2.16.840.1.1
  0010:  31 33 37 33 30 2e 33 2e  34 2e 32                  13730.3.4.2
=> get_ctrls: oid="2.16.840.1.113730.3.4.2" (noncritical)
<= get_ctrls: n=1 rc=0 err=""
    attrs:
==> limits_get: conn=0 op=1 dn="[anonymous]"
=> bdb_search
bdb_dn2entry("cn=elmarie greyling,ou=discovery
life,dc=discovery,dc=co,dc=za")
=> bdb_dn2id( "dc=discovery,dc=co,dc=za" )
<= bdb_dn2id: got id=0x00000001
=> bdb_dn2id( "ou=discovery life,dc=discovery,dc=co,dc=za" )
<= bdb_dn2id: got id=0x00000004
=> bdb_dn2id( "cn=elmarie greyling,ou=discovery
life,dc=discovery,dc=co,dc=za" )
<= bdb_dn2id: got id=0x00000122
entry_decode: "cn=ELMARIE GREYLING,ou=Discovery
Life,dc=discovery,dc=co,dc=za"
<= entry_decode(cn=ELMARIE GREYLING,ou=Discovery
Life,dc=discovery,dc=co,dc=za)
base_candidates: base: "cn=elmarie greyling,ou=discovery
life,dc=discovery,dc=co,dc=za" (0x00000122)
=> test_filter
    PRESENT
<= test_filter 50
bdb_search: 290 does not match filter
send_ldap_result: conn=0 op=1 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=2 tag=101 err=0
ber_flush: 14 bytes to sd 10
  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........
daemon: activity on 1 descriptors
daemon: activity on: 10r
daemon: read activity on 10
connection_get(10)
connection_get(10): got connid=0
connection_read(10): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
  0000:  30 22 02 01 03 42 00 a0                            0"...B..
ldap_read: want=28, got=28
  0000:  1b 30 19 04 17 32 2e 31  36 2e 38 34 30 2e 31 2e
.0...2.16.840.1.
  0010:  31 31 33 37 33 30 2e 33  2e 34 2e 32               113730.3.4.2
ber_get_next: tag 0x30 len 34 contents:
ber_dump: buf=0x08238b08 ptr=0x08238b08 end=0x08238b2a len=34
  0000:  02 01 03 42 00 a0 1b 30  19 04 17 32 2e 31 36 2e
...B...0...2.16.
  0010:  38 34 30 2e 31 2e 31 31  33 37 33 30 2e 33 2e 34
840.1.113730.3.4
  0020:  2e 32                                              .2
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
do_unbind
ber_get_next on fd 10 failed errno=11 (Resource temporarily unavailable)
connection_closing: readying conn=0 sd=10 for close
connection_resched: attempting closing conn=0 sd=10
connection_close: conn=0 sd=10
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: select: listen=7 active_threads=0 tvp=NULL
daemon: removing 10
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: select: listen=7 active_threads=0 tvp=NULL


Any help would be appreciated

ed