From adfc160082e5d1f20085e68eaacffea3fd277f1d Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 12 Feb 2004 15:21:28 +0000 Subject: [PATCH] Start of merging changes with SAMBA_3_0. Fix up some comments so that they line up. Also change lockout_time to bad_password_time, since this is actually what is replicated. --- source/passdb/passdb.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c index d0a1711f0fc..603b4d71d2d 100644 --- a/source/passdb/passdb.c +++ b/source/passdb/passdb.c @@ -79,7 +79,7 @@ void pdb_fill_default_sam(SAM_ACCOUNT *user) user->private.logoff_time = user->private.kickoff_time = user->private.pass_must_change_time = get_time_t_max(); - user->private.fields_present = 0x00ffffff; /* don't know */ + user->private.fields_present = 0x00ffffff; user->private.logon_divs = 168; /* hours per week */ user->private.hours_len = 21; /* 21 times 8 bits = 168 */ memset(user->private.hours, 0xff, user->private.hours_len); /* available at all hours */ @@ -128,7 +128,7 @@ static void destroy_pdb_talloc(SAM_ACCOUNT **user) /********************************************************************** - Alloc memory and initialises a struct sam_passwd on supplied mem_ctx. + Allocates memory and initialises a struct sam_passwd on supplied mem_ctx. ***********************************************************************/ NTSTATUS pdb_init_sam_talloc(TALLOC_CTX *mem_ctx, SAM_ACCOUNT **user) @@ -475,10 +475,10 @@ char *pdb_encode_acct_ctrl(uint16 acct_ctrl, size_t length) { static fstring acct_str; - SMB_ASSERT(length <= sizeof(acct_str)); - size_t i = 0; + SMB_ASSERT(length <= sizeof(acct_str)); + acct_str[i++] = '['; if (acct_ctrl & ACB_PWNOTREQ ) acct_str[i++] = 'N'; @@ -1742,7 +1742,7 @@ BOOL init_sam_from_buffer_v1(SAM_ACCOUNT *sampass, uint8 *buf, uint32 buflen) uint32 logon_time, logoff_time, kickoff_time, - lockout_time, + bad_password_time, pass_last_set_time, pass_can_change_time, pass_must_change_time; @@ -1782,7 +1782,7 @@ BOOL init_sam_from_buffer_v1(SAM_ACCOUNT *sampass, uint8 *buf, uint32 buflen) &logon_time, &logoff_time, &kickoff_time, - &lockout_time, + &bad_password_time, &pass_last_set_time, &pass_can_change_time, &pass_must_change_time, @@ -1919,7 +1919,7 @@ uint32 init_buffer_from_sam_v1 (uint8 **buf, const SAM_ACCOUNT *sampass, BOOL si uint32 logon_time, logoff_time, kickoff_time, - lockout_time, + bad_password_time, pass_last_set_time, pass_can_change_time, pass_must_change_time; @@ -1960,7 +1960,7 @@ uint32 init_buffer_from_sam_v1 (uint8 **buf, const SAM_ACCOUNT *sampass, BOOL si logon_time = (uint32)pdb_get_logon_time(sampass); logoff_time = (uint32)pdb_get_logoff_time(sampass); kickoff_time = (uint32)pdb_get_kickoff_time(sampass); - lockout_time = (uint32)0; + bad_password_time = (uint32)0; pass_can_change_time = (uint32)pdb_get_pass_can_change_time(sampass); pass_must_change_time = (uint32)pdb_get_pass_must_change_time(sampass); pass_last_set_time = (uint32)pdb_get_pass_last_set_time(sampass); @@ -2066,7 +2066,7 @@ uint32 init_buffer_from_sam_v1 (uint8 **buf, const SAM_ACCOUNT *sampass, BOOL si logon_time, logoff_time, kickoff_time, - lockout_time, + bad_password_time, pass_last_set_time, pass_can_change_time, pass_must_change_time, @@ -2110,7 +2110,7 @@ uint32 init_buffer_from_sam_v1 (uint8 **buf, const SAM_ACCOUNT *sampass, BOOL si logon_time, logoff_time, kickoff_time, - lockout_time, + bad_password_time, pass_last_set_time, pass_can_change_time, pass_must_change_time, -- 2.11.4.GIT