[mplspm]: WinNT - testing to see if a users ID and password are correct
Thomas Eibner
thomas at stderr.net
Fri Dec 21 15:24:54 CST 2001
On Fri, Dec 21, 2001 at 03:26:21PM -0600, John Sundberg wrote:
> I am working on a pet project. I would like to write some perl code to
> validate a persons userid/password. I would like to validate the
> userid/password against Windows NT.
>
> So if they log into windows like:
> Domain: MYDOMAIN
> UserId: myname
> Password: mypassword
>
> I would like to end up with something like:
>
> $result = isValidNTUser("MYDOMAIN","myname","mypassword");
>
> Any ideas - even if it isnt in perl that would be fine.
Authen::Smb might be what you're looking for.
http://search.cpan.org/doc/PMKANE/Authen-Smb-0.91/Smb.pm
--
Thomas Eibner <http://thomas.eibner.dk/> DnsZone <http://dnszone.org/>
mod_pointer <http://stderr.net/mod_pointer>
--------------------------------------------------
Minneapolis Perl Mongers mailing list
To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.
More information about the Mpls-pm
mailing list