Web lists-archives.com

Re: [Samba] How to get password expiration?

On Wed, 1 Feb 2017 12:20:49 -0700
Jeff Sadowski via samba <samba@xxxxxxxxxxxxxxx> 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 ;-)



To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba