Sue D. Nymme has asked for the wisdom of the Perl Monks concerning the following question:
Greetings all,
I'm connecting to a Microsoft SQL Server 2008 database via DBI (and thus DBD::ODBC). Our security requires that users have individual logins to the database, with passwords that must meet (server-enforced) complexity requirements, and which expire periodically.
This is a relatively new system we have put in place. I have modified my programs prompt the user for their password, use it to connect to the database, then discard it. Lately, our users' passwords have started expiring. When I call DBI->connect, the call fails with a "password has expired" message. Sensible.
The question is: How can my programs allow users to change their expired passwords? This is possible, somehow. If one of us runs TOAD and tries to connect with an expired password, TOAD pops up a dialog saying "Your password has expired. Enter [old password] [new password] [new password again to confirm]", and the change goes through just fine.
How can I make my Perl programs do this too?
|
|---|