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/passdb.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/passdb.c')
-rw-r--r-- | source3/passdb/passdb.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index b1e1e2b989..96c11de73a 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -77,11 +77,11 @@ static BOOL pdb_fill_default_sam(SAM_ACCOUNT *user) ZERO_STRUCTP(user); user->logon_time = (time_t)0; - user->logoff_time = (time_t)0; - user->kickoff_time = (time_t)0; - user->pass_last_set_time = (time_t)0; - user->pass_can_change_time = (time_t)0; - user->pass_must_change_time = (time_t)0; + user->logoff_time = + user->kickoff_time = + user->pass_last_set_time = + user->pass_can_change_time = + user->pass_must_change_time = get_time_t_max(); user->unknown_3 = 0x00ffffff; /* don't know */ user->logon_divs = 168; /* hours per week */ @@ -140,7 +140,6 @@ BOOL pdb_init_sam_pw(SAM_ACCOUNT **new_sam_acct, struct passwd *pwd) pdb_set_fullname(*new_sam_acct, pwd->pw_gecos); pdb_set_uid(*new_sam_acct, pwd->pw_uid); pdb_set_gid(*new_sam_acct, pwd->pw_gid); - pdb_set_pass_last_set_time(*new_sam_acct, time(NULL)); pdb_set_profile_path(*new_sam_acct, lp_logon_path()); pdb_set_homedir(*new_sam_acct, lp_logon_home()); pdb_set_dir_drive(*new_sam_acct, lp_logon_drive()); |