summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-22 20:27:20 +0200
committerVolker Lendecke <vl@samba.org>2008-06-22 20:45:53 +0200
commit19654e232cc3b761931259aa587af24d7313781b (patch)
treec15a51f99e85959e3608aee4a7635add883c7499
parenta7e284c62d4b961780130a3ae8594094f1fb841d (diff)
downloadsamba-19654e232cc3b761931259aa587af24d7313781b.tar.gz
samba-19654e232cc3b761931259aa587af24d7313781b.tar.bz2
samba-19654e232cc3b761931259aa587af24d7313781b.zip
Check for sec_initial_uid() instead of uid==0 in dfs management
(This used to be commit 948607f16112f6529f3a54cd6bbe978e8a600bc8)
-rw-r--r--source3/rpc_server/srv_dfs_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_dfs_nt.c b/source3/rpc_server/srv_dfs_nt.c
index 29538a304f..974523dded 100644
--- a/source3/rpc_server/srv_dfs_nt.c
+++ b/source3/rpc_server/srv_dfs_nt.c
@@ -49,7 +49,7 @@ WERROR _dfs_Add(pipes_struct *p, struct dfs_Add *r)
NTSTATUS status;
TALLOC_CTX *ctx = talloc_tos();
- if (p->pipe_user.ut.uid != 0) {
+ if (p->pipe_user.ut.uid != sec_initial_uid()) {
DEBUG(10,("_dfs_add: uid != 0. Access denied.\n"));
return WERR_ACCESS_DENIED;
}
@@ -119,7 +119,7 @@ WERROR _dfs_Remove(pipes_struct *p, struct dfs_Remove *r)
TALLOC_CTX *ctx = talloc_tos();
char *altpath = NULL;
- if (p->pipe_user.ut.uid != 0) {
+ if (p->pipe_user.ut.uid != sec_initial_uid()) {
DEBUG(10,("_dfs_remove: uid != 0. Access denied.\n"));
return WERR_ACCESS_DENIED;
}