[Samba] How to get password expiration?
Andrew Bartlett
abartlet at samba.org
Wed Feb 1 20:25:52 UTC 2017
On Tue, 2017-01-31 at 09:00 -0700, Jeff Sadowski via samba wrote:
> my smb.conf looks as follows.
> [global]
> security = ads
> realm = AD.MYDOMAIN.TLD
> workgroup = AD
> idmap config * : backend = tdb
> idmap config * : range = 2000-7999
> idmap config MIND:backend = ad
> idmap config MIND:schema_mode = rfc2307
> idmap config MIND:range = 8000-9999999
> winbind nss info = rfc2307
> winbind use default domain = yes
> winbind enum users = yes
> winbind enum groups = yes
> restrict anonymous = 2
> ldap server require strong auth = no
> client ldap sasl wrapping = plain
>
> I'm connected to an Windows 2008 based Active Directory environment
>
> Is there a linux command users can run to get their password
> expiration
> that they could run from their .bashrc files?
>
> I searched the wiki and the mailing list but couldn't find what I am
> looking for.
When I kinit, I get this info. You might be able to get it from
pam_krb5?
Thanks,
Andrew Bartlett
More information about the samba
mailing list