[Samba] About password expiry
Amaury Viera Hernández
avhernandez at uci.cu
Thu Nov 26 05:40:13 UTC 2015
Hi every one:
I'm using samba4 as domain controller and a I want to check every 1 hour in my mail server the password expiration for every user in the domain. I need to kow what is the attribute used in samba4.
Using ldbsearch i see badPasswordTime and accountExpires, but in the microsoft documentation said that accountExpires is used for represent the date when the account expires. Can i use this and send the email to the users telling that they need to change their password?
About badPasswordTime said that represent The last time and date that an attempt to log on to this account was made with a password that is not valid.
I'm confuse. Could you help me to know which of this attributes I need for advise to the users about their password expiration?
Thanks in advance. Amaury.
ldbsearch --url=/var/lib/samba/private/sam.ldb samaccountname=pp
# record 1
userPrincipalName: pp at eomarit.com.cu
More information about the samba