summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2004-02-12 15:21:28 +0000
committerJim McDonough <jmcd@samba.org>2004-02-12 15:21:28 +0000
commit8437fd40bee34353ee7fe080b9d94d20eb3d6ee6 (patch)
tree15679d7ee76aa383efd3bdcb301a3b58a5b655dc /source3
parent30d707b8ae4c53140e0215090f7a3c8936ab2b47 (diff)
downloadsamba-8437fd40bee34353ee7fe080b9d94d20eb3d6ee6.tar.gz
samba-8437fd40bee34353ee7fe080b9d94d20eb3d6ee6.tar.bz2
samba-8437fd40bee34353ee7fe080b9d94d20eb3d6ee6.zip
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. (This used to be commit adfc160082e5d1f20085e68eaacffea3fd277f1d)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/passdb.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index d0a1711f0f..603b4d71d2 100644
--- a/source3/passdb/passdb.c
+++ b/source3/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,