commit d4e55d2b1febdcdc361b88d423b3a2d0403db2bf Author: Matthias Dieter Wallnöfer Date: Sat Aug 8 20:54:48 2015 +0200 s4:operational LDB module - "maxPwdAge" constant -864000000000 is bigger than 32 bit int, hence needs to be declared as LL. Signed-off-by: Matthias Dieter Wallnöfer diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c index c5fd8e2..ac64a7e 100644 --- a/source4/dsdb/samdb/ldb_modules/operational.c +++ b/source4/dsdb/samdb/ldb_modules/operational.c @@ -715,7 +715,7 @@ static NTTIME get_msds_user_password_expiry_time_computed(struct ldb_module *mod */ maxPwdAge = samdb_search_int64(ldb_module_get_ctx(module), msg, 0, domain_dn, "maxPwdAge", NULL); - if (maxPwdAge >= -864000000000) { + if (maxPwdAge >= -864000000000LL) { /* * This is not really possible... */ commit 4a4bf39ee508231364cf1ae299d39855caecdf28 Author: Matthias Dieter Wallnöfer Date: Sat Aug 1 23:18:28 2015 +0200 s4:torture/ndr/samr.c - 64 bit unsigned long long constants Signed-off-by: Matthias Dieter Wallnöfer diff --git a/source4/torture/ndr/samr.c b/source4/torture/ndr/samr.c index 91bb4d7..589ce72 100644 --- a/source4/torture/ndr/samr.c +++ b/source4/torture/ndr/samr.c @@ -294,8 +294,8 @@ static bool samr_changepassworduser3_w2k8r2_out_check(struct torture_context *tc torture_assert_int_equal(tctx, dominfo->min_password_length, 7, "min_password_length"); torture_assert_int_equal(tctx, dominfo->password_history_length, 0, "password_history_length"); torture_assert_int_equal(tctx, dominfo->password_properties, DOMAIN_PASSWORD_COMPLEX, "password_properties"); - torture_assert_u64_equal(tctx, dominfo->max_password_age, 0xffffdeff0aa68000, "max_password_age"); - torture_assert_u64_equal(tctx, dominfo->min_password_age, 0x0000000000000000, "min_password_age"); + torture_assert_u64_equal(tctx, dominfo->max_password_age, 0xffffdeff0aa68000ULL, "max_password_age"); + torture_assert_u64_equal(tctx, dominfo->min_password_age, 0x0000000000000000ULL, "min_password_age"); torture_assert_int_equal(tctx, reject->extendedFailureReason, SAM_PWD_CHANGE_NOT_COMPLEX, "extendedFailureReason"); torture_assert_int_equal(tctx, reject->filterModuleName.length, 0, "filterModuleName.length");