summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-31 11:05:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:41 -0500
commit8cd973decdc72b852417c55b913faad2a1f52183 (patch)
treeaa220d25b83635a7a9184244b1c2865493ec42d1 /source4/dsdb/samdb
parent05c53f70f0e4b94cf26a433cb61b1706f7715757 (diff)
downloadsamba-8cd973decdc72b852417c55b913faad2a1f52183.tar.gz
samba-8cd973decdc72b852417c55b913faad2a1f52183.tar.bz2
samba-8cd973decdc72b852417c55b913faad2a1f52183.zip
r14840: - rename some functions
- stack specific functions on top of generic ones metze (This used to be commit e391f3c98aae600c5f64d5975dd55567a09c3100)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/kludge_acl.c15
-rw-r--r--source4/dsdb/samdb/samdb_privilege.c4
2 files changed, 11 insertions, 8 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/kludge_acl.c b/source4/dsdb/samdb/ldb_modules/kludge_acl.c
index 53acb77899..f7efdb65e4 100644
--- a/source4/dsdb/samdb/ldb_modules/kludge_acl.c
+++ b/source4/dsdb/samdb/ldb_modules/kludge_acl.c
@@ -65,19 +65,22 @@ static enum user_is what_is_user(struct ldb_module *module)
return ANONYMOUS;
}
- if (is_system_token(session_info->security_token)) {
+ if (security_token_is_system(session_info->security_token)) {
return SYSTEM;
}
- if (is_administrator_token(session_info->security_token)) {
+ if (security_token_is_anonymous(session_info->security_token)) {
+ return ANONYMOUS;
+ }
+
+ if (security_token_has_builtin_administrators(session_info->security_token)) {
return ADMINISTRATOR;
}
- if (is_authenticated_token(session_info->security_token)) {
+
+ if (security_token_has_nt_authenticated_users(session_info->security_token)) {
return USER;
}
- if (is_anonymous_token(session_info->security_token)) {
- return ANONYMOUS;
- }
+
return ANONYMOUS;
}
diff --git a/source4/dsdb/samdb/samdb_privilege.c b/source4/dsdb/samdb/samdb_privilege.c
index c1a6f2005b..d4c1471e1c 100644
--- a/source4/dsdb/samdb/samdb_privilege.c
+++ b/source4/dsdb/samdb/samdb_privilege.c
@@ -83,12 +83,12 @@ _PUBLIC_ NTSTATUS samdb_privilege_setup(struct security_token *token)
NTSTATUS status;
/* Shortcuts to prevent recursion and avoid lookups */
- if (is_system_token(token)) {
+ if (security_token_is_system(token)) {
token->privilege_mask = ~0;
return NT_STATUS_OK;
}
- if (is_anonymous_token(token)) {
+ if (security_token_is_anonymous(token)) {
token->privilege_mask = 0;
return NT_STATUS_OK;
}