For scripts using AdminMisc, I usually check the results of Win32::FormatMessage(Win32::GetLastError()) where I would typically check $! and $^E. As far as specific errors for passwords and such, I haven't looked into that.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Peter A. Peterson II > Sent: Tuesday, September 23, 2003 3: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
