diff options
author | Jeremy Allison <jra@samba.org> | 2001-10-02 06:57:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-10-02 06:57:18 +0000 |
commit | cb4b13a82ba26c70674fe903d89db1d38103dff7 (patch) | |
tree | 7b2588835f38e224c1cd14114cd63c3e3432f9d2 /source3/passdb/pdb_smbpasswd.c | |
parent | 58bc10518bad61e6c8dee38fda82eb8fb1de4bf6 (diff) | |
download | samba-cb4b13a82ba26c70674fe903d89db1d38103dff7.tar.gz samba-cb4b13a82ba26c70674fe903d89db1d38103dff7.tar.bz2 samba-cb4b13a82ba26c70674fe903d89db1d38103dff7.zip |
Fixed the bug with member servers in a Samba PDC hosted domain not allowing
other access. Problem was max time was being set to 0xffffffff, instead of
0x7fffffff.
Jeremy.
(This used to be commit 94403d841710391ec26539e4b4157439d5778ff7)
Diffstat (limited to 'source3/passdb/pdb_smbpasswd.c')
-rw-r--r-- | source3/passdb/pdb_smbpasswd.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c index b01f03e124..7d14d3e0e0 100644 --- a/source3/passdb/pdb_smbpasswd.c +++ b/source3/passdb/pdb_smbpasswd.c @@ -101,17 +101,16 @@ static BOOL pw_file_unlock(int fd, int *plock_depth) /************************************************************** Intialize a smb_passwd struct *************************************************************/ + static void pdb_init_smb(struct smb_passwd *user) { - if (user == NULL) + if (user == NULL) return; - ZERO_STRUCTP (user); + ZERO_STRUCTP (user); - user->pass_last_set_time = (time_t)-1; + user->pass_last_set_time = get_time_t_max(); } - - /*************************************************************** Internal fn to enumerate the smbpasswd list. Returns a void pointer to ensure no modification outside this module. Checks for atomic @@ -1154,22 +1153,21 @@ Error was %s\n", pwd->smb_name, pfile2, strerror(errno))); ********************************************************************/ static BOOL build_smb_pass (struct smb_passwd *smb_pw, SAM_ACCOUNT *sampass) { - if (sampass == NULL) + if (sampass == NULL) return False; - ZERO_STRUCTP(smb_pw); + ZERO_STRUCTP(smb_pw); - smb_pw->smb_userid=pdb_get_uid(sampass); - smb_pw->smb_name=pdb_get_username(sampass); + smb_pw->smb_userid=pdb_get_uid(sampass); + smb_pw->smb_name=pdb_get_username(sampass); smb_pw->smb_passwd=pdb_get_lanman_passwd(sampass); smb_pw->smb_nt_passwd=pdb_get_nt_passwd(sampass); - smb_pw->acct_ctrl=pdb_get_acct_ctrl(sampass); - smb_pw->pass_last_set_time=pdb_get_pass_last_set_time(sampass); - - return True; + smb_pw->acct_ctrl=pdb_get_acct_ctrl(sampass); + smb_pw->pass_last_set_time=pdb_get_pass_last_set_time(sampass); + return True; } /********************************************************************* |