[Samba] How to get password expiration?

Rowland Penny rpenny at samba.org
Wed Feb 1 20:11:29 UTC 2017

On Wed, 1 Feb 2017 12:20:49 -0700
Jeff Sadowski via samba <samba at lists.samba.org> wrote:

> I was thinking of maybe putting a request update password expire time
> on login and have a system user go find the expire times.
> with ldap or something?
> It could put a file in the users home directory with a timestamp of
> when the user's password expires.
> Ex:
> In the bashrc or tcshrc (the global ones) add a line like so
> touch /tmp/requestpwexpupdate/${USER}
> and have a cronjob the searches for password expire times in ldap and
> removes the request file
> placing a timestamped file with the users expiration in
> ~${USER}/.passwdexp
> but I don't know how to write the ldapsearch to do this.

I don't know if it will help, but I found this, maybe it will point
you in the right direction ;-)



More information about the samba mailing list