Re: ldap-bind

Bryan Irvine <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
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 = $ldaps->search (  # perform a search
                         base   => "ou=service,ou=users,ou=admin,o=noah",
                         filter => "(&(cn=$check_CN))"
                        );
print $mesg ;

outputs:
Net::LDAP::Search=HASH(0x3e1b04)


-Bryan

On Wed, Jun 10, 2009 at 12:11 PM, Vartak, Yash V<[email protected]> wrote:
> Bryan,  Could you please send in complete code ? below snippet is just
> too little for any programmer to help you troubleshoot.
> Also ..may be you did like double check stuff like (FQDN , port , cert
> location , password you have used ?
>
> Could you try to trap the error code ? something like error 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 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.