Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Using Win32::NetAdmin to change passwords

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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://104936]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2023-12-05 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (25 votes). Check out past polls.

    Notices?