Author: ekohl
Date: Wed Dec 25 11:36:17 2013
New Revision: 61399
URL:
http://svn.reactos.org/svn/reactos?rev=61399&view=rev
Log:
[LSASRV]
Set session data after the logon token has been created. Still WIP.
Modified:
trunk/reactos/dll/win32/lsasrv/authpackage.c
trunk/reactos/dll/win32/lsasrv/lsasrv.h
trunk/reactos/dll/win32/lsasrv/session.c
Modified: trunk/reactos/dll/win32/lsasrv/authpackage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/authpacka…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/authpackage.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/authpackage.c [iso-8859-1] Wed Dec 25 11:36:17 2013
@@ -829,14 +829,12 @@
TokenHandle = NULL;
-#if 0
Status = LsapSetLogonSessionData(&RequestMsg->LogonUser.Reply.LogonId);
if (!NT_SUCCESS(Status))
{
TRACE("LsapSetLogonSessionData failed (Status 0x%08lx)\n", Status);
goto done;
}
-#endif
done:
if (!NT_SUCCESS(Status))
Modified: trunk/reactos/dll/win32/lsasrv/lsasrv.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/lsasrv.h?…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/lsasrv.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/lsasrv.h [iso-8859-1] Wed Dec 25 11:36:17 2013
@@ -396,6 +396,9 @@
NTAPI
LsapDeleteLogonSession(IN PLUID LogonId);
+NTSTATUS
+LsapSetLogonSessionData(IN PLUID LogonId);
+
/* utils.c */
INT
LsapLoadString(HINSTANCE hInstance,
Modified: trunk/reactos/dll/win32/lsasrv/session.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/session.c…
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/session.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/session.c [iso-8859-1] Wed Dec 25 11:36:17 2013
@@ -50,6 +50,22 @@
}
return NULL;
+}
+
+
+NTSTATUS
+LsapSetLogonSessionData(IN PLUID LogonId)
+{
+ PLSAP_LOGON_SESSION Session;
+
+ TRACE("()\n");
+
+ Session = LsapGetLogonSession(LogonId);
+ if (Session == NULL)
+ return STATUS_NO_SUCH_LOGON_SESSION;
+
+
+ return STATUS_SUCCESS;
}