Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Authenticate Active Directory

by g0n (Priest)
on Jul 19, 2006 at 16:17 UTC ( #562343=note: print w/replies, xml ) Need Help??

in reply to Authenticate Active Directory

The simplest way is to gather the username and password, connect to your AD with Net::LDAP, and bind using the username and password. Check the result of the bind, if it was successful (!$result->code) the username and password are correct. Identifying whether that user is someone who should have permission to unlock someones account is another matter - you may want to create a group, and do a search for membership.

For encrypted authentication, you need to connect to the AD with Net::LDAPS.

The perl-ldap mailing list would be a good place to get help if you get stuck - in fact reading back through the list archives will get you a long way towards your objective.


"If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
John Brunner, "The Shockwave Rider".

Can you spare 2 minutes to help with my research? If so, please click here

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://562343]
[marto]: that is to say, to the best of my knowledge, they never did.
[marto]: they have a commercial product called perlapp
[mark4]: Do you h=know how I can get pp.exe? Is there a module I can install that includes this?
[marto]: I always found Strawberry Perl on windows to be a much better environment, made life much easier
[marto]: pp. install it like you would any other module
[marto]: it probably exists in one of the PPM repositories
[marto]: failing that see the README
[mark4]: I installed "PAR" from the ppm install window. pp.exe. did not show up.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2018-01-19 14:15 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (218 votes). Check out past polls.