- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Detecting expired passwords in a C program
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 04:30 AM
02-21-2005 04:30 AM
Detecting expired passwords in a C program
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 04:49 AM
02-21-2005 04:49 AM
Re: Detecting expired passwords in a C program
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 05:26 AM
02-21-2005 05:26 AM
Re: Detecting expired passwords in a C program
pwd_expired is tricky, non-intuitive, as there is the flag bit at play, as well as a date stamp. A simple MODI/FLA=PWDEXPI will mark the date field, NOT the flag bit. Witness:
UAF> SHOW TEST
:
Flags:
:
Pwdchange: 18-FEB-2005 14:59
:
UAF> MODI TEST/FLAG=PWDEXPIRED
Flags:
:
Pwdchange: (pre-expired)
Or with a little tool that I wrote and will attach:
$ MCR AUTHORIZE MODI TEST /NOPWDEXPI
%UAF-I-MDFYMSG, user record(s) updated
$ GETUAI TEST USERNAME FLAGS PWD_DATE
USERNAME,FLAGS,PWD_DATE
TEST,00000000,21-FEB-2005 13:21:18.70
$ MCR AUTHORIZE MODI TEST /PWDEXPI
%UAF-I-MDFYMSG, user record(s) updated
$ GETUAI TEST USERNAME FLAGS PWD_DATE
USERNAME,FLAGS,PWD_DATE
TEST,00000000, 0 00:00:00.00
The PWD_EXPIRED flag will only be set if
1. The user logs in
2. The password has expired (see below)
3. The user is set not to be forced to change an expired password on login i.e. DISFORCE_PWD_CHANGE is set.
hth,
Hein.
HP Internal folks... This is discussed in:
VAXAXP::NOTES$ARCHIVE:VMSNOTES_V12 topic 1783
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 05:46 AM
02-21-2005 05:46 AM
Re: Detecting expired passwords in a C program
The value in uflags (from attachment) is 0 and return_status = 1.
Anyhow...thanks for the help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 06:52 AM
02-21-2005 06:52 AM
Re: Detecting expired passwords in a C program
Let me know if I'm going in the wrong direction.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 07:13 AM
02-21-2005 07:13 AM
Re: Detecting expired passwords in a C program
The UAI$M_PWD_EXPIRED flag is set when the user tryes to login and his password is expired. Please read the Description section of the SYS$QETUAI system service:
http://h71000.www7.hp.com/doc/732FINAL/4527/4527pro_005.html#index_x_630
It gives you an explanation how the flag is set.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 06:23 PM
02-21-2005 06:23 PM
Re: Detecting expired passwords in a C program
Would a better approach be to check the date of pwdchange and add the pwdlifetime. If the result is < current datetime, I force them to reset the password. I was hoping for a simple check.
That's exactly what LOGINOUT does. As per the manual:
"During a normal login when the UAI$V_DISFORCE_PWD_CHANGE bit is not set, the system compares UAI$_PWD_DATE against UAI$_PWD_LIFETIME and, if expired, forces the user to change the password. With this configuration, the UAI$V_PWD_EXPIRED bit is not set."
So, your on the right track.
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2005 10:08 PM
02-21-2005 10:08 PM
Re: Detecting expired passwords in a C program
Purely Personal Opinion