summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-30 12:30:10 +0200
committerGünther Deschner <gd@samba.org>2009-04-30 14:28:38 +0200
commitaf5a71d5280984a7d707e39fb522ecc7e1b71436 (patch)
treef623c49e7a2c96946b4e151a755ca3099bd50b87
parenteee446a94841a5df97b3a47c7076ef52fb5ccdcf (diff)
downloadsamba-af5a71d5280984a7d707e39fb522ecc7e1b71436.tar.gz
samba-af5a71d5280984a7d707e39fb522ecc7e1b71436.tar.bz2
samba-af5a71d5280984a7d707e39fb522ecc7e1b71436.zip
s3-lsa: use LSA_POLICY_MODE flags in _lsa_GetSystemAccessAccount().
Guenther
-rw-r--r--source3/include/privileges.h6
-rw-r--r--source3/rpc_server/srv_lsa_nt.c3
2 files changed, 2 insertions, 7 deletions
diff --git a/source3/include/privileges.h b/source3/include/privileges.h
index 9a5d928da0..57d3fc0686 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 9481c206f6..d9d74ed725 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;
}