You might consider using OLE to do this.. Win32::OLE->LastError() is a veritable fountain of information when something errors out (providing you have your secret decoder ring to map out the error codes... :) which can be found on MS' site).
I don't have the password change code handy, but I'm sure it can be found somewhere relatively quick (maybe even activestate's archives?).. Hey, look.. A link.. http://aspn.activestate.com/ASPN/Mail/Message/290679 (Look at the SetPassword function) (This function might be "administratively" setting the password, and the code to change the password in a user's context might be different.. I haven't looked yet.) I would suggest NTLM authentication on your IIS server and at least IIS 5 (providing you are looking to do this in a web-related script) and all the other security concerns, like only allowing it to your internal website and so on. :) Steven -----Original Message----- From: Peter A. Peterson II [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 1:39 PM To: [EMAIL PROTECTED] Subject: Error codes in AdminMisc? We want to implement some complexity requirements on passwords at my workplace, and would like to be able to tell our students why their password changes are failing. It's my understanding that by default, AdminMisc doesn't provide error numbers, etc, for looking up later. Or does it? Has anyone done anything like this before? Basically we want to change AD user passwords and get the actual return value back from AD. Sometimes password changes will be done by the user by providing the old password, and other times the password change will be done by a user with privilege. Any ideas? Peter _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
