1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source4/dsdb
Andrew Kroeger 01b3d89aec Add samdb_result_account_expires() function.
Windows uses 2 different values to indicate an account doesn't expire: 0 and
9223372036854775807 (0x7FFFFFFFFFFFFFFFULL).

This function looks up the value of the accountExpires attribute and if the
value is either value indicating the account doesn't expire,
0x7FFFFFFFFFFFFFFFULL is returned.

This simplifies the tests for account expiration.  There is no need to check
elsewhere in the code for both values, therefore a simple greater-than
expression can be used.
(This used to be commit 7ce5575a3a)
2008-03-07 05:59:55 -06:00
..
common Add samdb_result_account_expires() function. 2008-03-07 05:59:55 -06:00
repl Remove useless layer of indirection, where every service called 2008-02-04 21:58:29 +11:00
samdb Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again). 2008-03-06 21:55:26 +11:00
schema Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again). 2008-03-06 21:55:26 +11:00
config.mk Change remaining prototype headers to be private. 2008-02-29 14:36:51 +01:00