git.samba.org
/
jelmer
/
samba4-debian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Treat maxPwdAge == 0 as passwords never expire.
[jelmer/samba4-debian.git]
/
source
/
dsdb
/
common
/
util.c
diff --git
a/source/dsdb/common/util.c
b/source/dsdb/common/util.c
index 07a433780b4a6365479775ed2dcd8c9b821f2a82..88c8afd6ccae50cde955e8a84444019289334dfc 100644
(file)
--- a/
source/dsdb/common/util.c
+++ b/
source/dsdb/common/util.c
@@
-517,7
+517,7
@@
NTTIME samdb_result_force_password_change(struct ldb_context *sam_ldb,
maxPwdAge = samdb_search_int64(sam_ldb, mem_ctx, 0, domain_dn, "maxPwdAge", NULL);
if (maxPwdAge == 0) {
- return 0;
+ return 0
x7FFFFFFFFFFFFFFFULL
;
} else {
attr_time -= maxPwdAge;
}