checking userid and password against windows domain (Active directory)

checking userid and password against windows domain (Active directory)

am 09.06.2005 09:57:20 von stig

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

Re: checking userid and password against windows domain (Active directory)

am 09.06.2005 10:27:10 von Thomas Kratz

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


--
$/=$,,$_=,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>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 ^.-