summaryrefslogtreecommitdiffstats
path: root/source/pipenetlog.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-25 15:49:27 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-25 15:49:27 +0000
commit349677de3f06bb0892862de0e11172adeffda18a (patch)
tree52a302bc4d0a68d5cbec44cfdda96a4d3565e7a2 /source/pipenetlog.c
parent9eee8c2007bf4f7756f6d645a61055101d280316 (diff)
downloadsamba-349677de3f06bb0892862de0e11172adeffda18a.tar.gz
samba-349677de3f06bb0892862de0e11172adeffda18a.tar.xz
samba-349677de3f06bb0892862de0e11172adeffda18a.zip
got the SAM logon request generated, and received a SAM logon response back.
YEAH! need to add: - client-side credential calculation - client-side parsing of the SAM logon response.
Diffstat (limited to 'source/pipenetlog.c')
-rw-r--r--source/pipenetlog.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/pipenetlog.c b/source/pipenetlog.c
index 30300dec3eb..ea2d326c45c 100644
--- a/source/pipenetlog.c
+++ b/source/pipenetlog.c
@@ -436,10 +436,16 @@ static void api_lsa_sam_logon( user_struct *vuser,
char **rdata, int *rdata_len )
{
LSA_Q_SAM_LOGON q_l;
+ DOM_ID_INFO_1 id1;
+
LSA_USER_INFO usr_info;
DOM_CRED srv_creds;
+ /* the DOM_ID_INFO_1 structure is a bit big. plus we might want to
+ dynamically allocate it inside lsa_io_q_sam_logon, at some point */
+ q_l.sam_id.auth.id1 = &id1;
+
lsa_io_q_sam_logon(True, &q_l, data + 0x18, data, 4, 0);
/* checks and updates credentials. creates reply credentials */
@@ -465,7 +471,7 @@ static void api_lsa_sam_logon( user_struct *vuser,
extern pstring myname;
uint32 r_uid;
uint32 r_gid;
- UNISTR2 *uni_samlogon_user = &(q_l.sam_id.auth.id1.uni_user_name);
+ UNISTR2 *uni_samlogon_user = &(q_l.sam_id.auth.id1->uni_user_name);
dummy_time.low = 0xffffffff;
dummy_time.high = 0x7fffffff;