in reply to LDAP Connection

Why not specify the debug option to the constructor? That should hopefully provide more detail as to why the attempted instantiation fails.

Replies are listed 'Best First'.
Re^2: LDAP Connection
by runningz (Novice) on Jan 23, 2018 at 13:36 UTC
    I added the debug Option like this:
    my $ad = Net::LDAPS->new('ldaps://ww.xx.yy.zz',verify=>'none',debug=>1 +5) or print "<h1>Could not connect!</h1>";

    but this only gives a lot of Information in the command line Version (where it works anyway) but None on my web page using the identical script as cgi.

      I would expect that the output from the debug option would go to STDERR and therefore appear in the web server error log rather than on the page in the browser. Did you look in the web server error log too?