Windows Domain - password expire - warning for Linux

Soldato
Joined
4 Mar 2003
Posts
12,522
Location
Chatteris
Title is badly written, but I've only got a small space to write it :)

On a Windows domain.
Once a domain password is about to expire, Windows clients get a warning.
"Your password will expire in x days" etc.
Is there any way of getting a similar warning out to people with Linux clients?

All of our Linux people log in via LDAP - so their AD password controls everything for them too.
However if their password expires (which it does every 60 days) they then get stuck.
Would like them to get a warning before the event too.

Any ideas?
 
Is pwdExpireWarning set in the ldap configuration? Not sure if this warning is visually presented by a desktop manager, but it should warn to stdout for example when SSHing in. Maybe you're already using this though.

Specifies the maximum number of seconds before a password is due to expire that expiration warning messages will be returned to an authenticating user.

This script may also be useful, it scans the ldap directory for soon to expire accounts and mails them a warning, you could adapt it to your needs.


Finally you could make a Linux logon script that parses the output of 'passwd -S' to get the expiry date and warn the user from that.


Perhaps better in the Linux forum.
 
Back
Top Bottom