diff options
author | Volker Lendecke <vl@samba.org> | 2008-06-22 20:27:20 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-06-24 12:55:59 +0200 |
commit | 961565d3a9e0ac22af1497e2210c3f5982911c7c (patch) | |
tree | 1e50cbca7e52461320241a751e135b1a0cf9ad39 /source/rpc_server/srv_dfs_nt.c | |
parent | 6551dd884018d45112ec26a4a5d510ef34682a3c (diff) | |
download | samba-961565d3a9e0ac22af1497e2210c3f5982911c7c.tar.gz samba-961565d3a9e0ac22af1497e2210c3f5982911c7c.tar.xz samba-961565d3a9e0ac22af1497e2210c3f5982911c7c.zip |
Check for sec_initial_uid() instead of uid==0 in dfs management
(cherry picked from commit 12d816dc997b1bfc048c5c042945a5e935abf4b4)
Diffstat (limited to 'source/rpc_server/srv_dfs_nt.c')
-rw-r--r-- | source/rpc_server/srv_dfs_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_server/srv_dfs_nt.c b/source/rpc_server/srv_dfs_nt.c index 29538a304f6..974523dded8 100644 --- a/source/rpc_server/srv_dfs_nt.c +++ b/source/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; } |