I'm sorry, you are right, || is not the issue here. I think you could use "
die "$@"; " instead to see what error it throws out. That might give out
more info on what is going wrong.

On 7/25/07, Emen Zhao <[EMAIL PROTECTED]> wrote:

Modify this line my $ldap = Net::LDAP->new($server)   || die("Could not
connect...\n"); to
my $ldap = Net::LDAP->new($server)  or die("Could not connect...\n");
should solve the problem.

Hope this helps!

--Emen

On 7/25/07, Muhammad Azam Akram <[EMAIL PROTECTED]> wrote:
>
> Hi
>   I am trying to connect with ldap directory I am usig windows.
>   When i write these lines to connect with the server, i got error
> mentioned below the code.
>
>   my $ldap = Net::LDAP->new($server)   || die("Could not connect...\n");
>
>   my $bindmsg = $ldap->bind();
>   if ($bindmsg->code){
> print ("Problem in binding with the server...\n");
> }
>
>   ///////////////////////
>
>   "Counld not connect"
>
>   It fails to connect with server, and go to die ().
>   I will be greatly appriciate if anyone solve my problem.
>   BR
>   /Azam
>
>
> ---------------------------------------
> Muhammad Azam Akram,
> Research Engineer,
> Multimedia Technologies.
> ---------------------------------------
> Ericsson AB,
> Torshamnsgatan 21-23,
> 16483,Stockholm,Sweden.
> Phone: +46 8 404 26 58
> Mobile: +46 76 115 32 78
> Mailto:[EMAIL PROTECTED]
> ---------------------------------------
>
> ---------------------------------
> Choose the right car based on your needs.  Check out Yahoo! Autos new
> Car Finder tool.



Reply via email to