From 349677de3f06bb0892862de0e11172adeffda18a Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Sat, 25 Oct 1997 15:49:27 +0000 Subject: 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. --- source/pipenetlog.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source/pipenetlog.c') 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; -- cgit