Click here to get back home

checking userid and password against windows domain (Active directory)

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
checking userid and password against windows domain (Active directory) stig 06-09-2005
Posted by stig on June 9, 2005, 10:57 am
Please log in for more thread options


hi.

to prevent separate systems with different accounts, i am looking for a perl
module that will allow me to check the userID (username) and password against a
windows domain (win 2000 active directory).
the perl script is not run on the windows2000 server itself so a network logon
is requiered if possible.

are there any modules that support this?

/stig


Posted by Thomas Kratz on June 9, 2005, 11:27 am
Please log in for more thread options


stig wrote:
> hi.
>
> to prevent separate systems with different accounts, i am looking for a
> perl module that will allow me to check the userID (username) and
> password against a windows domain (win 2000 active directory).
> the perl script is not run on the windows2000 server itself so a network
> logon is requiered if possible.
>
> are there any modules that support this?

Yep! Have a look at Win32::Lanman and the function NetUserCheckPassword

Thomas


--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*3),,mg,@_=mapsplit;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-


Similar ThreadsPosted
question(s) re: win32::ole and active-directory interaction June 19, 2006, 10:26 pm
password in SFTP::Foreign August 23, 2007, 11:48 am
Checking the presence of mutlibyte char in a string January 4, 2006, 9:23 pm
Free Random Password Generator January 26, 2005, 10:09 pm
Passing username and password using LWP::UserAgent December 11, 2006, 4:40 am
[DBI][Oracle] providing login/password, but having ORA-01004 November 15, 2004, 9:44 am
subdomain.domain.tld regexp? March 24, 2005, 6:58 am
Determine NT domain username of web client February 3, 2005, 4:24 pm
Looking for module that will expands domain/username to email address October 23, 2004, 12:56 am
Active state moduals July 8, 2004, 12:53 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap