From: Kieran S. <kie...@wa...> - 2001-12-12 09:10:58
|
Hi, Here is a bit of code: ________________________________ use Net::LDAP; use Net::LDAP qw(:all); $bind = Net::LDAP->new("fear.csv.warwick.ac.uk",debug => 4) or die "$@"; $mesg = $bind->bind( dn => 'cn=ecuwm,ou=Student,ou=ec,o=Warwick' ); print "Code:" . $mesg->code . "\n"; _______________________________ This should print out Code 0, but it gives me Code 82, which is the LDAP_LOCAL_ERROR Also, with the debug turned on, I get the following output on the working machine: 0000 30 47: SEQUENCE { 0002 02 1: INTEGER = 1 0005 60 42: [APPLICATION 0] { 0007 02 1: INTEGER = 2 000A 04 35: STRING = 'cn=ecuwm,ou=Student,ou=ec,o=Warwick' 002F 80 0: [CONTEXT 0] 0031 : } 0031 : } Net::LDAP=HASH(0x1a7f16c) received: But I don't get the last line, the "received" line from the other machine. Just to confirm, they both are using version 0.2401 of Net::LDAP. However, the working machine uses perl 5.6 and the non-working uses 5.005 One issue is that the ldap server is behind a firewall, which they promise me my machine can get through, I know I can see the port. But it looks like it is just not sending the request properly. Many thanks for any help Kieran -----Original Message----- From: Jim Harle [mailto:ha...@us...] Sent: 11 December 2001 19:14 To: Graham Barr Cc: LDAP Mailing List; Kieran Shaw Subject: Re: [Fwd] Net::LDAP Please provide more details. What are yopu doing when you get this result? Provide code snippet(s) (minimal) and possibly version of Net::LDAP and what directory server you are connecting to. --Jim Harle On Tue, 11 Dec 2001, Graham Barr wrote: > ----- Forwarded message from Kieran Shaw <kie...@wa...> ----- > > Date: Tue, 11 Dec 2001 16:24:52 -0000 > To: <gb...@po...> > From: "Kieran Shaw" <kie...@wa...> > Subject: Net::LDAP > X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) > > Hi Graham, > > Could I ask you a quick question about your very handy LDAP module. > I am running some basic code, which runs on a machine with perl 5.6, but on > my machine with perl 5.005, it returns the LDAP_LOCAL_ERROR (82) code. When > I try a bind. Do I simply need to use a more up to date version, or is that > code telling me something specific? > > Many thanks > Kieran Shaw > University of Warwick > England > > > ----- End forwarded message ----- > |