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<yash_var...@apl.com> 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:sparcta...@gmail.com]
> Sent: Wednesday, June 10, 2009 11:51 AM
> To: perl-ldap@perl.org
> 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
>

Reply via email to