summaryrefslogtreecommitdiff
path: root/source4/rpc_server/srvsvc
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-09-21 07:14:38 +1000
committerAndrew Tridgell <tridge@samba.org>2010-10-14 02:35:05 +0000
commitf7ffc12e2d43bd2dddb0a29eb778ff69a6b2802d (patch)
tree72651753a8def1de3c6c6ef61ff51cb9751d0ef6 /source4/rpc_server/srvsvc
parenta879a4610dac03b814ad40800f408416d250c6be (diff)
downloadsamba-f7ffc12e2d43bd2dddb0a29eb778ff69a6b2802d.tar.gz
samba-f7ffc12e2d43bd2dddb0a29eb778ff69a6b2802d.tar.bz2
samba-f7ffc12e2d43bd2dddb0a29eb778ff69a6b2802d.zip
libcli/security Use static SIDs rather than parsing from strings
This should make the security_token_is_*() calls a little faster. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/rpc_server/srvsvc')
-rw-r--r--source4/rpc_server/srvsvc/dcesrv_srvsvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/rpc_server/srvsvc/dcesrv_srvsvc.c b/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
index cf3651780d..41d89a9f56 100644
--- a/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
+++ b/source4/rpc_server/srvsvc/dcesrv_srvsvc.c
@@ -33,7 +33,7 @@
#define SRVSVC_CHECK_ADMIN_ACCESS do { \
struct security_token *t = dce_call->conn->auth_state.session_info->security_token; \
if (!security_token_has_builtin_administrators(t) && \
- !security_token_has_sid_string(t, SID_BUILTIN_SERVER_OPERATORS)) { \
+ !security_token_has_sid(t, &global_sid_Builtin_Server_Operators)) { \
return WERR_ACCESS_DENIED; \
} \
} while (0)