![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Using Win32::NetAdmin to change passwords (boo)by boo_radley (Parson) |
on Aug 15, 2001 at 06:46 UTC ( #104936=note: print w/replies, xml ) | Need Help?? |
May I suggest using Win32::AdminMisc? It should be installed if you've got the activeperl distribution, and contains the popular and delightful
UserChangePassword( $Domain , $User, $OldPassword, $NewPassword ). Note that this function returns errors through $^E, not $!. At least $! was consistently undef'd when UserChangePassword failed. Also note that your passwords are still restricted to the domain's policies; it's quite feasable that you lock an account out after x tries!
In Section
Seekers of Perl Wisdom
|
|