diff options
author | Volker Lendecke <vl@samba.org> | 2008-06-22 20:27:20 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-06-22 20:45:53 +0200 |
commit | 19654e232cc3b761931259aa587af24d7313781b (patch) | |
tree | c15a51f99e85959e3608aee4a7635add883c7499 | |
parent | a7e284c62d4b961780130a3ae8594094f1fb841d (diff) | |
download | samba-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.c | 4 |
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; } |