Re: ldap-bind

2009-06-22 Thread Buchan Milne
On Thursday 11 June 2009 20:10:17 Bryan Irvine wrote: > I got around those problems but I'm still having problems binding to the > DB. Have you tested the account via different means? E.g., assuming you have OpenLDAP client binaries available: ldapsearch -x -H ldaps://myldapserver.mydomain.com -

Re: ldap-bind

2009-06-11 Thread Bryan Irvine
On Thu, Jun 11, 2009 at 12:06 PM, Dieter Kluenter wrote: > Bryan Irvine writes: > >> I got around those problems but I'm still having problems binding to the DB. >> >> The script basically logs in and does a search for itself to make sure >> all is well. >> >> I cannot bind with the credentials gi

Re: ldap-bind

2009-06-11 Thread Dieter Kluenter
Bryan Irvine writes: > I got around those problems but I'm still having problems binding to the DB. > > The script basically logs in and does a search for itself to make sure > all is well. > > I cannot bind with the credentials given me by the LDAP server admin, > but the search shows that the u

Re: ldap-bind

2009-06-11 Thread Bryan Irvine
I got around those problems but I'm still having problems binding to the DB. The script basically logs in and does a search for itself to make sure all is well. I cannot bind with the credentials given me by the LDAP server admin, but the search shows that the user is there. However if I add mor

Re: ldap-bind

2009-06-10 Thread Bryan Irvine
On Wed, Jun 10, 2009 at 1:53 PM, Graham Barr wrote: > > On Jun 10, 2009, at 3:34 PM, Bryan Irvine wrote: > >> On Wed, Jun 10, 2009 at 1:15 PM, Graham Barr wrote: >>> >>> On Jun 10, 2009, at 3:07 PM, Bryan Irvine wrote: >>> That's my problem then. Is there a way to check for bind fail

Re: ldap-bind

2009-06-10 Thread Graham Barr
On Jun 10, 2009, at 3:34 PM, Bryan Irvine wrote: On Wed, Jun 10, 2009 at 1:15 PM, Graham Barr wrote: On Jun 10, 2009, at 3:07 PM, Bryan Irvine wrote: That's my problem then. Is there a way to check for bind failure? Yes, see Net::LDAP::Message and Net::LDAP::Constant docs the bind will

Re: ldap-bind

2009-06-10 Thread Bryan Irvine
On Wed, Jun 10, 2009 at 1:15 PM, Graham Barr wrote: > > On Jun 10, 2009, at 3:07 PM, Bryan Irvine wrote: > >> That's my problem then. >> >> Is there a way to check for bind failure? > > Yes, see Net::LDAP::Message and Net::LDAP::Constant docs > > the bind will fail, but the server will allow reques

Re: ldap-bind

2009-06-10 Thread Graham Barr
On Jun 10, 2009, at 3:07 PM, Bryan Irvine wrote: That's my problem then. Is there a way to check for bind failure? Yes, see Net::LDAP::Message and Net::LDAP::Constant docs the bind will fail, but the server will allow requests to continue as if the bind had not happened. ie it will treat

Re: ldap-bind

2009-06-10 Thread Bryan Irvine
That's my problem then. Is there a way to check for bind failure? -Bryan On Wed, Jun 10, 2009 at 12:53 PM, Clif Harden wrote: > > The bind failure will fall back to an anonymous bind, which will allow you > to continue to search and return attributes that an anonymous bind can see. > > Clif  H

Re: ldap-bind

2009-06-10 Thread Clif Harden
The bind failure will fall back to an anonymous bind, which will allow you to continue to search and return attributes that an anonymous bind can see. Clif Harden Bryan Irvine wrote: On Wed, Jun 10, 2009 at 12:38 PM, Graham Barr wrote: On Jun 10, 2009, at 1:51 PM, Bryan Irvine wrote

Re: ldap-bind

2009-06-10 Thread Bryan Irvine
On Wed, Jun 10, 2009 at 12:38 PM, Graham Barr wrote: > > On Jun 10, 2009, at 1:51 PM, Bryan Irvine wrote: > >> I'm using ldaps and when I try to bind to a made up FqDN the scripts >> still seems to be able to function. >> >> Presently I'm binding with: >> $ldaps->bind ("totalBSDN=screwDodge") or di

Re: ldap-bind

2009-06-10 Thread Graham Barr
On Jun 10, 2009, at 1:51 PM, Bryan Irvine wrote: I'm using ldaps and when I try to bind to a made up FqDN the scripts still seems to be able to function. Presently I'm binding with: $ldaps->bind ("totalBSDN=screwDodge") or die("could not bind"); Net::LDAP methods return Net::LDAP::Message ob

Re: ldap-bind

2009-06-10 Thread Bryan Irvine
Yash, port and cert location is all correct, though maybe my understanding of ldap->bind is not. I understand it to be an authentication mechanism to gain rights into a DB. I expected to bind with a fake user and have the script not work at all, instead I can search like so: $mesg = $ld

RE: ldap-bind

2009-06-10 Thread Vartak, Yash V
message $errMsg = $ldaps->bind ("totalBSDN=screwDodge") print $errMsg ; Regards, Yash -Original Message- From: Bryan Irvine [mailto:[email protected]] Sent: Wednesday, June 10, 2009 11:51 AM To: [email protected] Subject: ldap-bind I'm using ldaps and when I try to

ldap-bind

2009-06-10 Thread Bryan Irvine
I'm using ldaps and when I try to bind to a made up FqDN the scripts still seems to be able to function. Presently I'm binding with: $ldaps->bind ("totalBSDN=screwDodge") or die("could not bind"); yes somehow the script continues on, is this correct behavior? -Bryan

Net::LDAP bind hangs ignoring timeout parameter

2008-12-31 Thread Clyde
>From Solaris 5.8, running Perl 5.10.0, I make a Net::LDAP (version 0.34) connection to Microsoft Exchange 5.5 on NT4. Unfortunately port 389 on the Exchange/NT server has already been grabbed by the Microsoft LDAP Service (which the NT administrator forgot to disable). So my Net::LDAP b

Re: Ldap Bind

2006-04-28 Thread Jim Summers
ailure? The following only really tests for problems in the bind operation itself and is thus not going to be useful: $ldap->bind( 'cn=foo,o=bar', password => 'secret' ) or die; The following is correct, as it checks what the server returns: $mesg = $ldap

Re: Ldap Bind

2006-04-26 Thread Chris Ridd
The following only really tests for problems in the bind operation itself and is thus not going to be useful: $ldap->bind( 'cn=foo,o=bar', password => 'secret' ) or die; The following is correct, as it checks what the server returns: $mesg = $ldap->bind( 'c

Ldap Bind

2006-04-26 Thread Jim Summers
Hello list, I have stumbled onto a problem with some code I am writing. I was doing a bind to my ldap and using the dn and password option. Which initially I always entered the correct password and thought it was ok. I did one today and put in the wrong password, but the bind went ahead and

Re: ldap bind not coming back

2005-08-18 Thread Graham Barr
port => 636, version => 3, debug=>"Y", timeout=>5 ); if ($ldap) { $mesg = $ldap->bind ( $user, password=>$pwd ); .

Re: ldap bind not coming back

2005-08-18 Thread Gert Buettner
rver.net", port => 636, version => 3, debug=>"Y", timeout=>5 ); if ($ldap) { $mesg = $ldap->bind ( $user, password=>$pwd ); .

ldap bind not coming back

2005-08-17 Thread Bob Earl
rver.net", port => 636, version => 3, debug=>"Y", timeout=>5 ); if ($ldap) { $mesg = $ldap->bind ( $user, password=>$pwd ); . -- No virus found in this outgoing message. Checked by AVG Anti

RE: LDAP bind authentication problem

2003-11-12 Thread Li, Tina
Thanks for the help. It turns out that I only needed to set the version parameter to 2 and everything worked. Tina -Original Message- From: Peter Marschall [mailto:[EMAIL PROTECTED] Sent: Saturday, November 08, 2003 4:06 AM To: Li, Tina; '[EMAIL PROTECTED]' Subject: Re:

Re: LDAP bind authentication problem

2003-11-08 Thread Peter Marschall
Hi, On Saturday 08 November 2003 00:47, Li, Tina wrote: > I created a Perl script using perl-ldap to search for entries in my LDAP > server (version 2). When I bind to the server with the root DN and root > password, it doesn't seem to bind correctly. That is, the bind method > doesn't seem to a

Re: LDAP bind authentication problem

2003-11-08 Thread Chris Ridd
to bind, which means an anonymous connection will be made instead. This works for me: $res = $ldap->bind( dn => "cn=net,cn=ldap", password => "baz" ); die "Bind failed: ", $res->error_name, "\n" if $res->code; Cheers, Chris

LDAP bind authentication problem

2003-11-07 Thread Li, Tina
Hi, I created a Perl script using perl-ldap to search for entries in my LDAP server (version 2). When I bind to the server with the root DN and root password, it doesn't seem to bind correctly. That is, the bind method doesn't seem to authenticate my credentials. It seems as if the bind method

Re: Net::LDAP::bind(): Invalid Credentials (49)

2003-08-25 Thread Ziya Suzen
; print "connecting to LDAP Server on host $ldapserver."; > > eval { > $ldap = Net::LDAP->new($ldapserver); > }; > > die "[FAILED]\n$@" if $@; > > print "[OK]\nusing bindn $binddn to authenticate."; > > my $bind_mesg = $ldap-&g

Net::LDAP::bind(): Invalid Credentials (49)

2003-08-25 Thread Tom Meindl
sedn"; my $ldap; #-- connect and bind with uid and passwd to ldap server --# print "connecting to LDAP Server on host $ldapserver."; eval { $ldap = Net::LDAP->new($ldapserver); }; die "[FAILED]\n$@" if $@; print "[OK]\nusing bindn $binddn to authenticate.&q