summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-08 11:47:46 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-08 11:47:46 +0000
commit0b7049fae25957851a7f33d2bd500d8ecefc1ad5 (patch)
treeb9a99eb9d85eb056294cbd031b20d9894de31859
parentcc50955a2760f1de7e80b91408a7c0806f6eb44c (diff)
downloadsamba-0b7049fae25957851a7f33d2bd500d8ecefc1ad5.tar.gz
samba-0b7049fae25957851a7f33d2bd500d8ecefc1ad5.tar.xz
samba-0b7049fae25957851a7f33d2bd500d8ecefc1ad5.zip
updating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.h
from yesterday.
-rw-r--r--source/lsaparse.c17
-rw-r--r--source/smbd/pipes.c4
-rw-r--r--source/smbparse.c4
3 files changed, 9 insertions, 16 deletions
diff --git a/source/lsaparse.c b/source/lsaparse.c
index b1d9d739240..4b5c4f586a2 100644
--- a/source/lsaparse.c
+++ b/source/lsaparse.c
@@ -24,7 +24,6 @@
extern int DEBUGLEVEL;
-#if 0 /* NEED TO DO THIS TO GET A COMPILE - LUKE PLEASE CHECK THIS !!! */
/*******************************************************************
reads or writes an LSA_R_OPEN_POL structure.
********************************************************************/
@@ -298,7 +297,7 @@ char* lsa_io_r_srv_pwset(BOOL io, LSA_R_SRV_PWSET *r_s, char *q, char *base, int
q = align_offset(q, base, align);
- q = smb_io_chal(io, &(r_s->srv_chal), q, base, align); /* server challenge */
+ q = smb_io_cred(io, &(r_s->srv_cred), q, base, align); /* server challenge */
RW_IVAL(io, q, r_s->status, 0); q += 4;
@@ -351,8 +350,8 @@ char* lsa_io_user_info(BOOL io, LSA_USER_INFO *usr, char *q, char *base, int ali
RW_IVAL(io, q, usr->buffer_dom_id, 0); q += 4; /* undocumented logon domain id pointer */
RW_PCVAL(io, q, usr->padding, 40); q += 40; /* unused padding bytes? */
- RW_IVAL(io, q, usr->num_sids, 0); q += 4; /* 0 - num_sids */
- RW_IVAL(io, q, usr->buffer_sids, 0); q += 4; /* NULL - undocumented pointer to SIDs. */
+ RW_IVAL(io, q, usr->num_other_sids, 0); q += 4; /* 0 - num_sids */
+ RW_IVAL(io, q, usr->buffer_other_sids, 0); q += 4; /* NULL - undocumented pointer to SIDs. */
q = smb_io_unistr2(io, &(usr->uni_user_name) , q, base, align); /* username unicode string */
q = smb_io_unistr2(io, &(usr->uni_full_name) , q, base, align); /* user's full name unicode string */
@@ -370,10 +369,13 @@ char* lsa_io_user_info(BOOL io, LSA_USER_INFO *usr, char *q, char *base, int ali
q = smb_io_unistr2(io, &( usr->uni_logon_srv), q, base, align); /* logon server unicode string */
q = smb_io_unistr2(io, &( usr->uni_logon_dom), q, base, align); /* logon domain unicode string */
- q = smb_io_dom_sid(io, &(usr->undoc_dom_sids[0]), q, base, align); /* undocumented - domain SIDs */
- q = smb_io_dom_sid(io, &(usr->undoc_dom_sids[1]), q, base, align); /* undocumented - domain SIDs */
q = smb_io_dom_sid(io, &(usr->dom_sid), q, base, align); /* domain SID */
+ for (i = 0; i < usr->num_other_sids; i++)
+ {
+ q = smb_io_dom_sid(io, &(usr->other_sids[i]), q, base, align); /* other domain SIDs */
+ }
+
return q;
}
@@ -447,7 +449,6 @@ char* lsa_io_r_sam_logoff(BOOL io, LSA_R_SAM_LOGOFF *r_l, char *q, char *base, i
return q;
}
-#endif /* 0 LUKE PLEASE CHECK !! */
#if 0
/*******************************************************************
reads or writes a structure.
@@ -463,5 +464,3 @@ reads or writes a structure.
return q;
}
#endif
-
-
diff --git a/source/smbd/pipes.c b/source/smbd/pipes.c
index ffa64a4e808..95b69ef4d97 100644
--- a/source/smbd/pipes.c
+++ b/source/smbd/pipes.c
@@ -364,8 +364,6 @@ BOOL api_LsarpcTNP(int cnum,int uid, char *param,char *data,
return(True);
}
-#if 0 /* HAVING TO DO THIS TO GET THINGS TO COMPILE - LUKE PLEASE CHECK THIS !!! */
-
/*
PAXX: Someone fix above.
The above API is indexing RPC calls based on RPC flags and
@@ -759,5 +757,3 @@ static int lsa_reply_sam_logoff(LSA_Q_SAM_LOGOFF *q_s, char *q, char *base,
/* return length of SMB data stored */
return q - start;
}
-
-#endif /* LUKE PLEASE CHECK THIS !! */
diff --git a/source/smbparse.c b/source/smbparse.c
index ae1f4f4b253..0d93c2e8ad5 100644
--- a/source/smbparse.c
+++ b/source/smbparse.c
@@ -456,9 +456,7 @@ char* smb_io_dom_query(BOOL io, DOM_QUERY *d_q, char *q, char *base, int align)
if (d_q->buffer_dom_name != 0)
{
-#if 0 /* REMOVED AS WON'T COMPILE AS IS - LUKE PLEASE CHECK !!!!! */
- q = smb_io_unistr(io, &(d_q->uni_domain_name), q, base, align); /* domain name (unicode string) */
-#endif
+ q = smb_io_unistr2(io, &(d_q->uni_domain_name), q, base, align); /* domain name (unicode string) */
}
if (d_q->buffer_dom_sid != 0)
{