From: Christian J. <chr...@kn...> - 2002-07-25 10:14:42
|
Hello! i have some troubles using NET::LDAP with mod_perl: when i use localhost as servername for the LDAP server i always got an "invalid credentials" error with code 49. when i use the dns name of the machine i can connect, bind and whatever i want to do with Net::LDAP. when i use the script without mod_perl i can also connect to localhost... can anybody plz tell me whats going wrong? use strict; use diagnostics; use Net::LDAP; my $ldap =3D Net::LDAP->new("localhost", version =3D> 3) or die "error: $@\= n"; my $rc =3D $ldap->bind("cn=3DManager,dc=3Dknapp,dc=3Dintern", password =3D>= "password", version =3D> 3); thx, Chris Apache/1.3.22 mod_perl/1.26 libnet-ldap-perl 0.25-2 --=20 KNAPP Logistics Automation http://www.knapp.com Ing. Christian J=F6lly Tel/FAX: (++43) 316 / 495 1926 / 495 394 G=FCnter-Knapp-Stra=DFe 5-7 A-8075 Hart bei Graz |