summaryrefslogtreecommitdiff
path: root/source3
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
commit827aa6bc6ad8e73a9100c2ae4cad3f0da8a29a58 (patch)
treed392438501bf53a559d5bbae5024cca3a8f30aa1 /source3
parentb0bdb42bd12905f5a6990b1cdc5d33fc4a3063a5 (diff)
downloadsamba-827aa6bc6ad8e73a9100c2ae4cad3f0da8a29a58.tar.gz
samba-827aa6bc6ad8e73a9100c2ae4cad3f0da8a29a58.tar.bz2
samba-827aa6bc6ad8e73a9100c2ae4cad3f0da8a29a58.zip
updating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.h
from yesterday. (This used to be commit 0b7049fae25957851a7f33d2bd500d8ecefc1ad5)
Diffstat (limited to 'source3')
-rw-r--r--source3/lsaparse.c17
-rw-r--r--source3/smbd/pipes.c4
-rw-r--r--source3/smbparse.c4
3 files changed, 9 insertions, 16 deletions
diff --git a/source3/lsaparse.c b/source3/lsaparse.c
index b1d9d73924..4b5c4f586a 100644
--- a/source3/lsaparse.c
+++ b/source3/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/source3/smbd/pipes.c b/source3/smbd/pipes.c
index ffa64a4e80..95b69ef4d9 100644
--- a/source3/smbd/pipes.c
+++ b/source3/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/source3/smbparse.c b/source3/smbparse.c
index ae1f4f4b25..0d93c2e8ad 100644
--- a/source3/smbparse.c
+++ b/source3/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)
{