Mathieu Parent <math.par...@gmail.com> writes:

> On Wed, Sep 8, 2010 at 12:54 PM, Dieter Kluenter <die...@dkluenter.de> wrote:
>> Mathieu Parent <math.par...@gmail.com> writes:
>>
>>> On Mon, Sep 6, 2010 at 10:48 PM, Dieter Kluenter <die...@dkluenter.de> 
>>> wrote:
>>>> Hi,
>>>> after updating Authen::SASL to version 2.15 and Net::LDAP to version
>>>> 0.4001, running http://pastebin.de/9737
>>>>  I get following warnings
>>>>
>>>>   Use of uninitialized value in numeric gt (>) at
>>>>   /usr/lib/perl5/site_perl/5.10.0/Authen/SASL/Perl.pm line 179,
>>>> and
>>>>  Useless use of hash element in void context at
>>>>  /usr/lib/perl5/site_perl/5.10.0/Net/LDAP/Intermediate/SyncInfo.pm
>>>>  line 59,
>>> Hm, this is beyong my perl knowledge.
>>>
>>> Does doing a simple search works (without SyncRequest)?
>>
>> yes, a normal search without SyncRequest but with simple bind and
>> start_tls work without warnings.
>>
>>>
>>> Does removing line 61 of Net/LDAP/Intermediate/SyncInfo.pm
>>> ($self->{asn}{cookie};) suppress the second warning?
>>
>> OK, removing this line supressed the second warming.
>
> And do you still have the second warning without start_tls but with
> syncRequest? (add again line 61). If not, this is really strange...
> and should be investigated further.
>
> Possibly syncrequest corrupts TLS data. Can you set debug to 3 and
> attach the code and log for the following scenarii?
> - simple search without TLS
> - syncRepl search without TLS
> - simple search with TLS
> - syncRepl search with TLS

OK
1. This is the output of syncRequest, with simple bind, start_tls and
   line 61 enabled

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-..-.-.
Net::LDAP=HASH(0x85cbae4) sending:

30 1D 02 01 01 77 18 80 16 31 2E 33 2E 36 2E 31 0....w...1.3.6.1
2E 34 2E 31 2E 31 34 36 36 2E 32 30 30 33 37 __ .4.1.1466.20037

Net::LDAP=HASH(0x82998c4) received:

30 0C 02 01 01 78 07 0A 01 00 04 00 04 00 __ __ 0....x........

Net::LDAP=HASH(0x85cbae4) sending:

30 2B 02 01 02 60 26 02 01 03 04 19 63 6E 3D 72 0+...`&.....cn=r
65 70 6C 69 63 61 74 6F 72 2C 6F 3D 61 76 63 69 eplicator,o=avci
2C 63 3D 64 65 80 06 52 65 70 6C 69 43 __ __ __ ,c=de..XXXX

Net::LDAP=HASH(0x85cbae4) sending:

30 81 96 02 01 03 63 30 04 0B 6F 3D 61 76 63 69 0.....c0..o=avci
2C 63 3D 64 65 0A 01 02 0A 01 02 02 01 00 02 01 ,c=de...........
00 01 01 00 87 0B 6F 62 6A 65 63 74 43 6C 61 73 ......objectClas
73 30 05 04 03 2A 2C 2B A0 5F 30 5D 04 18 31 2E s0...*,+._0]..1.
33 2E 36 2E 31 2E 34 2E 31 2E 34 32 30 33 2E 31 3.6.1.4.1.4203.1
2E 39 2E 31 2E 31 01 01 FF 04 3E 30 3C 0A 01 03 .9.1.1....>0<...
04 34 72 69 64 3D 30 39 39 2C 63 73 6E 3D 32 30 .4rid=099,csn=20
31 30 30 39 30 35 31 30 32 30 32 39 2E 37 35 30 100905102029.750
34 39 35 5A 23 30 30 30 30 30 30 23 30 30 30 23 495Z#000000#000#
30 30 30 30 30 30 01 01 00 __ __ __ __ __ __ __ 000000...

Net::LDAP=HASH(0x85cbae4) received:

30 0C 02 01 02 61 07 0A 01 00 04 00 04 00 __ __ 0....a........

Net::LDAP=HASH(0x85cbae4) received:

30 23 02 01 03 79 1E 80 18 31 2E 33 2E 36 2E 31 0#...y...1.3.6.1
2E 34 2E 31 2E 34 32 30 33 2E 31 2E 39 2E 31 2E .4.1.4203.1.9.1.
34 81 02 A1 00 __ __ __ __ __ __ __ __ __ __ __ 4....

Useless use of hash element in void context at 
/usr/lib/perl5/site_perl/5.10.0/Net/LDAP/Intermediate/SyncInfo.pm line 59, 
<DATA> line 522.
<<Callback start
Received Intermediate SyncInfo Message
Empty cookie from refreshDelete (refreshDone=1): 
rid=099,csn=20100905102029.750495Z#000000#000#000000
Callback end>>
.
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.--.-.---.--.-

2. This is the output of sysncReuquest without start_tls but simple
   bind an line 61 enabled
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.--.-.-.--.

Net::LDAP=HASH(0x85cbae4) sending:

30 2B 02 01 01 60 26 02 01 03 04 19 63 6E 3D 72 0+...`&.....cn=r
65 70 6C 69 63 61 74 6F 72 2C 6F 3D 61 76 63 69 eplicator,o=avci
2C 63 3D 64 65 80 06 52 65 70 6C 69 43 __ __ __ ,c=de..XXXXX

Net::LDAP=HASH(0x85cbae4) sending:

30 81 96 02 01 02 63 30 04 0B 6F 3D 61 76 63 69 0.....c0..o=avci
2C 63 3D 64 65 0A 01 02 0A 01 02 02 01 00 02 01 ,c=de...........
00 01 01 00 87 0B 6F 62 6A 65 63 74 43 6C 61 73 ......objectClas
73 30 05 04 03 2A 2C 2B A0 5F 30 5D 04 18 31 2E s0...*,+._0]..1.
33 2E 36 2E 31 2E 34 2E 31 2E 34 32 30 33 2E 31 3.6.1.4.1.4203.1
2E 39 2E 31 2E 31 01 01 FF 04 3E 30 3C 0A 01 03 .9.1.1....>0<...
04 34 72 69 64 3D 30 39 39 2C 63 73 6E 3D 32 30 .4rid=099,csn=20
31 30 30 39 30 35 31 30 32 30 32 39 2E 37 35 30 100905102029.750
34 39 35 5A 23 30 30 30 30 30 30 23 30 30 30 23 495Z#000000#000#
30 30 30 30 30 30 01 01 00 __ __ __ __ __ __ __ 000000...

Net::LDAP=HASH(0x85cbae4) received:

30 0C 02 01 01 61 07 0A 01 00 04 00 04 00 __ __ 0....a........

Net::LDAP=HASH(0x85cbae4) received:

30 23 02 01 02 79 1E 80 18 31 2E 33 2E 36 2E 31 0#...y...1.3.6.1
2E 34 2E 31 2E 34 32 30 33 2E 31 2E 39 2E 31 2E .4.1.4203.1.9.1.
34 81 02 A1 00 __ __ __ __ __ __ __ __ __ __ __ 4....

Useless use of hash element in void context at 
/usr/lib/perl5/site_perl/5.10.0/Net/LDAP/Intermediate/SyncInfo.pm line 59, 
<DATA> line 522.
<<Callback start
Received Intermediate SyncInfo Message
Empty cookie from refreshDelete (refreshDone=1): 
rid=099,csn=20100905102029.750495Z#000000#000#000000
Callback end>>
.

-.-.-.-.-.-.-.-.---.-.-.-.-.-.-.-.-.-.--.-.-.-.-.-.-.-.-.--

3. This is a search with start_tls and simple bind

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-..-.---.
Net::LDAP=HASH(0x8584134) sending:

30 1D 02 01 01 77 18 80 16 31 2E 33 2E 36 2E 31 0....w...1.3.6.1
2E 34 2E 31 2E 31 34 36 36 2E 32 30 30 33 37 __ .4.1.1466.20037

Net::LDAP=HASH(0x82b5f3c) received:

30 0C 02 01 01 78 07 0A 01 00 04 00 04 00 __ __ 0....x........

Net::LDAP=HASH(0x8584134) sending:

30 2A 02 01 02 60 25 02 01 03 04 18 63 6E 3D 61 0*...`%.....cn=a
64 6D 61 6E 61 67 65 72 2C 6F 3D 61 76 63 69 2C dmanager,o=avci,
63 3D 64 65 80 06 64 72 65 73 73 61 __ __ __ __ c=de..xxxxx

Net::LDAP=HASH(0x82b5f3c) received:

30 0C 02 01 02 61 07 0A 01 00 04 00 04 00 __ __ 0....a........

Net::LDAP=HASH(0x8584134) sending:

30 60 02 01 03 63 5B 04 19 6F 75 3D 61 64 72 65 0`...c[..ou=adre
73 73 62 75 63 68 2C 6F 3D 61 76 63 69 2C 63 3D ssbuch,o=avci,c=
64 65 0A 01 01 0A 01 02 02 01 00 02 01 00 01 01 de..............
00 A3 0A 04 02 73 6E 04 04 68 65 69 6E 30 23 04 .....sn..hein0#.
02 63 6E 04 04 6D 61 69 6C 04 0F 74 65 6C 65 70 .cn..mail..telep
68 6F 6E 65 4E 75 6D 62 65 72 04 06 6D 6F 62 69 honeNumber..mobi
6C 65 __ __ __ __ __ __ __ __ __ __ __ __ __ __ le

Net::LDAP=HASH(0x82b5f3c) received:

30 81 AF 02 01 03 64 81 A9 04 2B 63 6E 3D 52 6F 0.....d...+cn=Ro
73 65 6D 61 72 69 65 20 48 65 69 6E 2C 6F 75 3D semarie Hein,ou=
61 64 72 65 73 73 62 75 63 68 2C 6F 3D 61 76 63 adressbuch,o=avc
69 2C 63 3D 64 65 30 7A 30 16 04 02 63 6E 31 10 i,c=de0z0...cn1.
04 0E 52 6F 73 65 6D 61 72 69 65 20 48 65 69 6E ..Rosemarie Hein
30 20 04 04 6D 61 69 6C 31 18 04 16 72 6F 73 65 0 ..mail1...rose
6D 61 72 69 65 40 64 6B 6C 75 65 6E 74 65 72 2E ma...@dkluenter.
64 65 30 23 04 0F 74 65 6C 65 70 68 6F 6E 65 4E de0#..telephoneN
75 6D 62 65 72 31 10 04 0E 30 33 30 2E 36 30 20 umber1...030.60 
32 35 37 20 33 37 39 30 19 04 06 6D 6F 62 69 6C 257 3790...mobil
65 31 0F 04 0D 30 31 37 36 2E 35 31 32 36 30 34 e1...0176.512604
35 31 __ __ __ __ __ __ __ __ __ __ __ __ __ __ 51

Net::LDAP=HASH(0x82b5f3c) received:

30 0C 02 01 03 65 07 0A 01 00 04 00 04 00 __ __ 0....e........

------------------------------------------------------------------------
dn:cn=xxxxx,ou=adressbuch,o=avci,c=de

             cn: xxxxxx
           mail: xxxxxxxx
telephoneNumber: 234569345
         mobile: 010101010

Net::LDAP=HASH(0x8584134) sending:

30 05 02 01 04 42 00 __ __ __ __ __ __ __ __ __ 0....B.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.---.-.-.

4. This is a search with simple bind without start_tls
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.--.-.-.

Net::LDAP=HASH(0x858411c) sending:

30 2A 02 01 01 60 25 02 01 03 04 18 63 6E 3D 61 0*...`%.....cn=a
64 6D 61 6E 61 67 65 72 2C 6F 3D 61 76 63 69 2C dmanager,o=avci,
63 3D 64 65 80 06 64 72 65 73 73 61 __ __ __ __ c=de..xxxxxx

Net::LDAP=HASH(0x82b5f3c) received:

30 0C 02 01 01 61 07 0A 01 00 04 00 04 00 __ __ 0....a........

Net::LDAP=HASH(0x858411c) sending:

30 60 02 01 02 63 5B 04 19 6F 75 3D 61 64 72 65 0`...c[..ou=adre
73 73 62 75 63 68 2C 6F 3D 61 76 63 69 2C 63 3D ssbuch,o=avci,c=
64 65 0A 01 01 0A 01 02 02 01 00 02 01 00 01 01 de..............
00 A3 0A 04 02 73 6E 04 04 68 65 69 6E 30 23 04 .....sn..hein0#.
02 63 6E 04 04 6D 61 69 6C 04 0F 74 65 6C 65 70 .cn..mail..telep
68 6F 6E 65 4E 75 6D 62 65 72 04 06 6D 6F 62 69 honeNumber..mobi
6C 65 __ __ __ __ __ __ __ __ __ __ __ __ __ __ le

Net::LDAP=HASH(0x82b5f3c) received:

30 81 AF 02 01 02 64 81 A9 04 2B 63 6E 3D 52 6F 0.....d...+cn=Ro
73 65 6D 61 72 69 65 20 48 65 69 6E 2C 6F 75 3D semarie Hein,ou=
61 64 72 65 73 73 62 75 63 68 2C 6F 3D 61 76 63 adressbuch,o=avc
69 2C 63 3D 64 65 30 7A 30 16 04 02 63 6E 31 10 i,c=de0z0...cn1.
04 0E 52 6F 73 65 6D 61 72 69 65 20 48 65 69 6E ..Rosemarie Hein
30 20 04 04 6D 61 69 6C 31 18 04 16 72 6F 73 65 0 ..mail1...rose
6D 61 72 69 65 40 64 6B 6C 75 65 6E 74 65 72 2E ma...@dkluenter.
64 65 30 23 04 0F 74 65 6C 65 70 68 6F 6E 65 4E de0#..telephoneN
75 6D 62 65 72 31 10 04 0E 30 33 30 2E 36 30 20 umber1...030.60 
32 35 37 20 33 37 39 30 19 04 06 6D 6F 62 69 6C 257 3790...mobil
65 31 0F 04 0D 30 31 37 36 2E 35 31 32 36 30 34 e1...0176.512604
35 31 __ __ __ __ __ __ __ __ __ __ __ __ __ __ 51

Net::LDAP=HASH(0x82b5f3c) received:

30 0C 02 01 02 65 07 0A 01 00 04 00 04 00 __ __ 0....e........

------------------------------------------------------------------------
dn:cn=xxxxxxx,ou=adressbuch,o=avci,c=de

             cn: xxxxxxx
           mail: xxxxxxx
telephoneNumber: 1234567
         mobile: 654321
Net::LDAP=HASH(0x858411c) sending:

30 05 02 01 03 42 00 __ __ __ __ __ __ __ __ __ 0....B.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

-Dieter

-- 
Dieter Klünter | Systemberatung
sip: 7770...@sipgate.de 
http://www.dpunkt.de/buecher/2104.html
GPG Key ID:8EF7B6C6

Reply via email to