Try to use the AD attribute userprincipalname to bind
([EMAIL PROTECTED]) ...

-----Original Message-----
From: Andreas Elflein [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 3:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Authetication again Active Directory Server


Hi,

I have n early th same problem. Maybe we could help each other. Try:

my $m;#=Net::LDAP::Message->new();      # Answer from LDAP-Server

$ldap = Net::LDAP->new($LDAPhost) or die "Can't find Server";

$m=$ldap->bind(dn=>$userDN,password=>$userPasswd);      # Auth User
if ($m->is_error())             # on Error
{
        print "error: ".$m->error()."\n";       # error from server
        return $m->error();
}

I hope this will help you. My problem is, that my LDAP-Server wonl't
accept my userDN and userPasswd... I think it is a thing like:

$userDN="cn=Elflein,ou=root";
userPasswd="PwdInPlain"; # Password as I would type it into a
Passwordfield

Any sugestions?

Andreas Elfein

Choudary Asad Mumtaz wrote:
> Hi All,
>           I need to authenticate users accessing my CGI page against
an
> Active Directory Server. I have gone through the NET::LDAP, but I
> haven't been able to figure out the right method to do so.  I just
need
> to authenticate the users and carry on with CGI page. If anyone has
been
> able to accomplish this, please provide me an example.
>           Thank you.
>
>
>




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.

Reply via email to