From bb3863e6608095c2c513d6510e2bdfb1157b98ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Thu, 30 Apr 2009 12:30:10 +0200 Subject: [PATCH] s3-lsa: use LSA_POLICY_MODE flags in _lsa_GetSystemAccessAccount(). Guenther (cherry picked from commit af5a71d5280984a7d707e39fb522ecc7e1b71436) (cherry picked from commit c89fdbed5286806d9a9b0b4a5d35870f7989baf7) --- source3/include/privileges.h | 6 ------ source3/rpc_server/srv_lsa_nt.c | 3 ++- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/source3/include/privileges.h b/source3/include/privileges.h index 9a5d928da04..57d3fc06862 100644 --- a/source3/include/privileges.h +++ b/source3/include/privileges.h @@ -77,12 +77,6 @@ extern const SE_PRIV se_take_ownership; /* * These are used in Lsa replies (srv_lsa_nt.c) */ -#define PR_NONE 0x0000 -#define PR_LOG_ON_LOCALLY 0x0001 -#define PR_ACCESS_FROM_NETWORK 0x0002 -#define PR_LOG_ON_BATCH_JOB 0x0004 -#define PR_LOG_ON_SERVICE 0x0010 - typedef struct { uint32 high; diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index 9481c206f66..d9d74ed7257 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -1716,7 +1716,8 @@ NTSTATUS _lsa_GetSystemAccessAccount(pipes_struct *p, they can be ORed together */ - *r->out.access_mask = PR_LOG_ON_LOCALLY | PR_ACCESS_FROM_NETWORK; + *r->out.access_mask = LSA_POLICY_MODE_INTERACTIVE | + LSA_POLICY_MODE_NETWORK; return NT_STATUS_OK; } -- 2.11.4.GIT