[Samba] accountExpires never representation?

Rowland Penny rpenny at samba.org
Wed Feb 28 08:56:12 UTC 2018


On Tue, 27 Feb 2018 21:39:16 -0700
Jeff Sadowski via samba <samba at lists.samba.org> wrote:

> I have been running experiments and I found an interesting multiple
> representations of never expiring accounts.
> I see when I create an account using the ADUC in windows 10 pro on
> samba-dc-4.7.5-2.fc27
> when I use ldapsearch to get accountExpires I get 9223372036854775807
> if I set the account to expire I get the expected value for that date.
> Here is the strange part when I set the account back to never expires
> the value is then 0
> So both 9223372036854775807 and 0 represent an account that never
> expires. If I set the value using ldapmodify it shows the same in
> ADUC under windows 10 pro.
> 

You could have found this out by doing an internet search, where
something like this would turn up:

https://msdn.microsoft.com/en-us/library/ms675098%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

Rowland



More information about the samba mailing list