Dear All,
in this moment I am implementing a LDAP proxy server written in Perl. Or
better I have constructed a framework of Perl Objects which are embedded
in the Perl Backend of the OpenLDAP server. Now I am extending this
framework in order to connect to a LDAP server using Net::LDAP.
The first thing I am trying to do is to bind with the LDAP server.
First of all I wrote a simple Perl Script which connects to the LDAP
server with DN and password and quits. This script works fine.
Then I put the code into the Perl Backend. The script reports now error 82
- local error. This error is produced by the Net::LDAP module.
The server I am trying to connect is the SUN ONE LDAP server.
When I contact a OpenLDAP server the same script works also embedded in
the OpenLDAP server.
Attache the dump of the Net::LDAP module.
Any ideas ? How can I see better what happens ?
Thx a lot
reinhard
here the dump:
OUTGOING packages
Connecting with SUN ONE SERVER:
Net::LDAP=HASH(0x4c92d4) sending:
0000 61: SEQUENCE {
0002 1: INTEGER = 1
0005 56: [APPLICATION 0] {
0007 1: INTEGER = 2
000A 40: STRING = 'uid=rv33100,ou=People,c=it,dc=gsk,dc=com'
0034 9: [CONTEXT 0]
0036 : 73 65 63 72 65 74 __ __ __ __ __ __ __ __ __ __ secret
003F : }
003F : }
Connecting with OpenLDAP Server:
Net::LDAP=HASH(0x4c92d4) sending:
0000 38: SEQUENCE {
0002 1: INTEGER = 1
0005 33: [APPLICATION 0] {
0007 1: INTEGER = 2
000A 20: STRING = 'cn=Manager, o=gsk.it'
0020 6: [CONTEXT 0]
0022 : 73 65 63 72 65 74 __ __ __ __ __ __ __ __ __ __ secret
0028 : }
0028 : }
Net::LDAP=HASH(0x4c92d4) received:
INCOMING packages
Connecting with SUN ONE SERVER:
nothing.
Connecting with OpenLDAP Server:
Net::LDAP=HASH(0x4c92d4) sending:
Net::LDAP=HASH(0x4c92d4) received:
0000 12: SEQUENCE {
0002 1: INTEGER = 1
0005 7: [APPLICATION 1] {
0007 1: ENUM = 0
000A 0: STRING = ''
000C 0: STRING = ''
000E : }
000E : }