summaryrefslogtreecommitdiff
path: root/source3/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
commit54932934421e8a34d190604122bc22d676e4c7ea (patch)
tree473193b8a88cc0e36611d283249fe5d5c9d5a8b5 /source3/pipenetlog.c
parent027630f9ff79ae97d62012e6ca1c703425046778 (diff)
downloadsamba-54932934421e8a34d190604122bc22d676e4c7ea.tar.gz
samba-54932934421e8a34d190604122bc22d676e4c7ea.tar.bz2
samba-54932934421e8a34d190604122bc22d676e4c7ea.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. (This used to be commit 349677de3f06bb0892862de0e11172adeffda18a)
Diffstat (limited to 'source3/pipenetlog.c')
-rw-r--r--source3/pipenetlog.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/pipenetlog.c b/source3/pipenetlog.c
index 30300dec3e..ea2d326c45 100644
--- a/source3/pipenetlog.c
+++ b/source3/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;