From 4de8e2e114927bcd45ffc8e86e025f1477274f96 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 23 Sep 2017 18:58:39 +0000 Subject: [PATCH] [LSASRV] Add some comments and improve trace messages. svn path=/trunk/; revision=75932 --- reactos/dll/win32/lsasrv/authport.c | 6 +++--- reactos/dll/win32/lsasrv/database.c | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/lsasrv/authport.c b/reactos/dll/win32/lsasrv/authport.c index 05b6c585266..3ce57d519b3 100644 --- a/reactos/dll/win32/lsasrv/authport.c +++ b/reactos/dll/win32/lsasrv/authport.c @@ -22,7 +22,7 @@ static NTSTATUS LsapDeregisterLogonProcess(PLSA_API_MSG RequestMsg, PLSAP_LOGON_CONTEXT LogonContext) { - TRACE("(%p %p)\n", RequestMsg, LogonContext); + TRACE("LsapDeregisterLogonProcess(%p %p)\n", RequestMsg, LogonContext); RemoveHeadList(&LogonContext->Entry); @@ -44,7 +44,7 @@ LsapCheckLogonProcess(PLSA_API_MSG RequestMsg, PLSAP_LOGON_CONTEXT Context = NULL; NTSTATUS Status; - TRACE("(%p)\n", RequestMsg); + TRACE("LsapCheckLogonProcess(%p)\n", RequestMsg); TRACE("Client ID: %p %p\n", RequestMsg->h.ClientId.UniqueProcess, RequestMsg->h.ClientId.UniqueThread); @@ -93,7 +93,7 @@ LsapHandlePortConnection(PLSA_API_MSG RequestMsg) REMOTE_PORT_VIEW RemotePortView; NTSTATUS Status = STATUS_SUCCESS; - TRACE("(%p)\n", RequestMsg); + TRACE("LsapHandlePortConnection(%p)\n", RequestMsg); TRACE("Logon Process Name: %s\n", RequestMsg->ConnectInfo.LogonProcessNameBuffer); diff --git a/reactos/dll/win32/lsasrv/database.c b/reactos/dll/win32/lsasrv/database.c index b516e7d5283..af35f3a9b5f 100644 --- a/reactos/dll/win32/lsasrv/database.c +++ b/reactos/dll/win32/lsasrv/database.c @@ -299,21 +299,25 @@ LsapCreateDatabaseObjects(VOID) if (!NT_SUCCESS(Status)) goto done; + /* Set the Primary Domain Name attribute */ LsapSetObjectAttribute(PolicyObject, L"PolPrDmN", NULL, 0); + /* Set the Primary Domain SID attribute */ LsapSetObjectAttribute(PolicyObject, L"PolPrDmS", NULL, 0); + /* Set the Account Domain Name attribute */ LsapSetObjectAttribute(PolicyObject, L"PolAcDmN", NULL, 0); + /* Set the Account Domain SID attribute */ LsapSetObjectAttribute(PolicyObject, L"PolAcDmS", AccountDomainSid,