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

anomaly in BER buffers sent by initial "lookup" operation



I'm hoping that somebody can tell me what effect the following differences
might have:

I'm using the Java JDNI lookup() method to retrieve LDAP entries. I'm not
sure how this method maps to an LDAP operation.
I open a socket connection (in JNDI terms, I create a new Context) and do
several lookups over that connection. The first lookup takes an order of
magnitude longer than all subsequent lookups. Why?

I know it's not a server-side caching issue -- I don't ask for the same
entry again. The only difference seems to be a small one in the BER buffers
sent to the server. Here are relevant buffers:

0000: 30 81 81 02 01 02 63 5F   04 3F 75 69 64 3D 34 34  0.....c_.?uid=44
0010: 37 36 31 35 5F 66 61 6B   65 5F 31 32 2C 6F 75 3D  7615_fake_12,ou=
0020: 50 65 6F 70 6C 65 2C 6F   3D 4E 59 43 42 4F 45 2C  People,o=NYCBOE,
0030: 6F 75 3D 63 6C 69 65 6E   74 73 2C 64 63 3D 67 72  ou=clients,dc=gr
0040: 6F 77 2C 64 63 3D 6E 65   74 0A 01 00 0A 01 03 02  ow,dc=net.......
0050: 01 00 02 01 00 01 01 00   87 0B 6F 62 6A 65 63 74  ..........object
0060: 43 6C 61 73 73 30 00 A0   1B 30 19 04 17 32 2E 31  Class0...0...2.1
0070: 36 2E 38 34 30 2E 31 2E   31 31 33 37 33 30 2E 33  6.840.1.113730.3
0080: 2E 34 2E 32                                        .4.2

0000: 30 81 83 02 01 03 63 61   04 41 75 69 64 3D 32 36  0.....ca.Auid=26
0010: 33 31 34 34 30 36 35 5F   66 61 6B 65 5F 37 2C 6F  3144065_fake_7,o
0020: 75 3D 50 65 6F 70 6C 65   2C 6F 3D 4E 59 43 42 4F  u=People,o=NYCBO
0030: 45 2C 6F 75 3D 63 6C 69   65 6E 74 73 2C 64 63 3D  E,ou=clients,dc=
0040: 67 72 6F 77 2C 64 63 3D   6E 65 74 0A 01 00 0A 01  grow,dc=net.....
0050: 03 02 01 00 02 01 00 01   01 00 87 0B 6F 62 6A 65  ............obje
0060: 63 74 43 6C 61 73 73 30   00 A0 1B 30 19 04 17 32  ctClass0...0...2
0070: 2E 31 36 2E 38 34 30 2E   31 2E 31 31 33 37 33 30  .16.840.1.113730
0080: 2E 33 2E 34 2E 32                                  .3.4.2

The first buffer is the anomalous one. Its first part "0.....c_.?" is
different from all others, which start with "0.....ca.A".

Anybody know what this means?
Thanks,
Josh