[Samba] unexpected password expiration

Rowland Penny rpenny at samba.org
Fri Sep 17 13:53:01 UTC 2021


On Fri, 2021-09-17 at 14:56 +0200, Marco Gaiarin via samba wrote:
> Mandi! Rowland Penny via samba
>   In chel di` si favelave...
> 
> > There are a few ways of determining if/when a users password
> > expires:
> > There is the ms-DS-User-Password-Expired attribute, but this isn't
> > available to Samba.
> > There is the msDS-UserPasswordExpiryTimeComputed attribute, but
> > again
> > this isn't available.
> 
> AFAIk 'msDS-UserPasswordExpiryTimeComputed' IS avaiable...

It wasn't last time I checked, someone must have fixed it :-)
> 
>  root at vdcsv1:~# /usr/bin/ldbsearch --show-binary -H
> /var/lib/samba/private/sam.ldb -b DC=ad,DC=fvg,DC=lnf,DC=it
> '(&(objectClass=user)(sAMAccountName=gaio))' msDS-
> UserPasswordExpiryTimeComputed
>  # record 1
>  dn: CN=gaio,OU=Users,OU=SanVito,OU=FVG,DC=ad,DC=fvg,DC=lnf,DC=it
>  msDS-UserPasswordExpiryTimeComputed: 132831705240000000

That is Sunday, 5 December 2021 09:35:24

But if maxPwdAge is set to '0', then it should be ignored.

Rowland





More information about the samba mailing list