From: Chris R. <chr...@ma...> - 2002-11-28 10:41:46
|
On 28/11/02 10:28 am, Christian Klinger <chr...@ec...> wrote: > hello list=20 >=20 > i=B4m a perl newbie and i need help!! >=20 > i would connect to a ldap server check username and password in if ok > redirect to a other side >=20 > i write this script but it don=B4t work What part of it doesn't work? [...] > if ( ($name=3D$query->param('name'))&&($pwd=3D$query->param('passwort'))) { [...] > $mesg =3D $ldap->bind($dn =3D> $name,pwd =3D> $passwd, version =3D> 3) || die "Co= uld > not bind to LDAP server" ; You must make sure that $name is a valid DN, eg something like "cn=3Dcjr,dc=3Disode,dc=3Dcom" otherwise the server will reject the bind. Cheers, Chris |