diff options
author | Simo Sorce <idra@samba.org> | 2002-10-06 23:53:34 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-10-06 23:53:34 +0000 |
commit | 650e0274a1ea98a953b2e6f44e7e8e880d418565 (patch) | |
tree | 0609f985d0cf4b44c5f9012ffaedc5977c0c2ce8 /source3/sam/interface.c | |
parent | 76d111aed1dc6457e98ef4193a44360c8ae769bc (diff) | |
download | samba-650e0274a1ea98a953b2e6f44e7e8e880d418565.tar.gz samba-650e0274a1ea98a953b2e6f44e7e8e880d418565.tar.bz2 samba-650e0274a1ea98a953b2e6f44e7e8e880d418565.zip |
try to put every security descriptors related definitions in the same file.
also try to uniform names to a clean scheme.
first part.
(This used to be commit a123e05877caf90c28980be2d84b1d0b46e4fd21)
Diffstat (limited to 'source3/sam/interface.c')
-rw-r--r-- | source3/sam/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/sam/interface.c b/source3/sam/interface.c index 4f5e565d2e..d08df42122 100644 --- a/source3/sam/interface.c +++ b/source3/sam/interface.c @@ -639,7 +639,7 @@ NTSTATUS sam_enum_domains(const SAM_CONTEXT *context, const NT_USER_TOKEN *acces return nt_status; } - if (!se_access_check(sd, access_token, SAMR_ACCESS_ENUM_DOMAINS, &acc_granted, &nt_status)) { + if (!se_access_check(sd, access_token, SA_RIGHT_SAM_ENUM_DOMAINS, &acc_granted, &nt_status)) { DEBUG(3,("sam_enum_domains: ACCESS DENIED\n")); return nt_status; } @@ -699,7 +699,7 @@ NTSTATUS sam_lookup_domain(const SAM_CONTEXT *context, const NT_USER_TOKEN *acce return nt_status; } - if (!se_access_check(sd, access_token, SAMR_ACCESS_OPEN_DOMAIN, &acc_granted, &nt_status)) { + if (!se_access_check(sd, access_token, SA_RIGHT_SAM_OPEN_DOMAIN, &acc_granted, &nt_status)) { DEBUG(3,("sam_lookup_domain: ACCESS DENIED\n")); return nt_status; } |