summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-10-02 06:57:18 +0000
committerJeremy Allison <jra@samba.org>2001-10-02 06:57:18 +0000
commitcb4b13a82ba26c70674fe903d89db1d38103dff7 (patch)
tree7b2588835f38e224c1cd14114cd63c3e3432f9d2 /source3/rpc_parse
parent58bc10518bad61e6c8dee38fda82eb8fb1de4bf6 (diff)
downloadsamba-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/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_misc.c1
-rw-r--r--source3/rpc_parse/parse_net.c13
2 files changed, 8 insertions, 6 deletions
diff --git a/source3/rpc_parse/parse_misc.c b/source3/rpc_parse/parse_misc.c
index 6353c9a8cd..5160a2778f 100644
--- a/source3/rpc_parse/parse_misc.c
+++ b/source3/rpc_parse/parse_misc.c
@@ -1240,6 +1240,7 @@ BOOL smb_io_cred(char *desc, DOM_CRED *cred, prs_struct *ps, int depth)
if(!smb_io_chal ("", &cred->challenge, ps, depth))
return False;
+
if(!smb_io_utime("", &cred->timestamp, ps, depth))
return False;
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c
index cfd90241d0..a3ff179605 100644
--- a/source3/rpc_parse/parse_net.c
+++ b/source3/rpc_parse/parse_net.c
@@ -1260,6 +1260,7 @@ void init_net_user_info3(TALLOC_CTX *ctx, NET_USER_INFO_3 *usr, SAM_ACCOUNT *sam
usr->user_rid = pdb_get_user_rid(sampw);
usr->group_rid = pdb_get_group_rid(sampw);
usr->num_groups = num_groups+1;
+
usr->buffer_groups = 1; /* indicates fill in groups, below, even if there are none */
usr->user_flgs = user_flgs;
@@ -1339,17 +1340,17 @@ static BOOL net_io_user_info3(char *desc, NET_USER_INFO_3 *usr, prs_struct *ps,
if (usr->ptr_user_info == 0)
return True;
- if(!smb_io_time("time", &usr->logon_time, ps, depth)) /* logon time */
+ if(!smb_io_time("logon time", &usr->logon_time, ps, depth)) /* logon time */
return False;
- if(!smb_io_time("time", &usr->logoff_time, ps, depth)) /* logoff time */
+ if(!smb_io_time("logoff time", &usr->logoff_time, ps, depth)) /* logoff time */
return False;
- if(!smb_io_time("time", &usr->kickoff_time, ps, depth)) /* kickoff time */
+ if(!smb_io_time("kickoff time", &usr->kickoff_time, ps, depth)) /* kickoff time */
return False;
- if(!smb_io_time("time", &usr->pass_last_set_time, ps, depth)) /* password last set time */
+ if(!smb_io_time("last set time", &usr->pass_last_set_time, ps, depth)) /* password last set time */
return False;
- if(!smb_io_time("time", &usr->pass_can_change_time , ps, depth)) /* password can change time */
+ if(!smb_io_time("can change time", &usr->pass_can_change_time , ps, depth)) /* password can change time */
return False;
- if(!smb_io_time("time", &usr->pass_must_change_time, ps, depth)) /* password must change time */
+ if(!smb_io_time("must change time", &usr->pass_must_change_time, ps, depth)) /* password must change time */
return False;
if(!smb_io_unihdr("unihdr", &usr->hdr_user_name, ps, depth)) /* username unicode string header */