updating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.h
authorLuke Leighton <lkcl@samba.org>
Wed, 8 Oct 1997 11:47:46 +0000 (11:47 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 8 Oct 1997 11:47:46 +0000 (11:47 +0000)
from yesterday.

source/lsaparse.c
source/smbd/pipes.c
source/smbparse.c

index b1d9d73924062e1cbe49353e360ab944e0718a30..4b5c4f586a268f8a4bb0c57485df6427be39640a 100644 (file)
@@ -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
-
-
index ffa64a4e8088bfffec75bafc7f5b7238d8e98cb1..95b69ef4d97ab65b9c0c539f57ba3767ddec5db0 100644 (file)
@@ -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 !! */
index ae1f4f4b253959edcbf15e46c43010446670b231..0d93c2e8ad523591027d8798ab8486bdb86a9de1 100644 (file)
@@ -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)
        {