mirror of
https://github.com/samba-team/samba.git
synced 2025-12-05 12:23:50 +03:00
Added 3 params to manipulate shares. "add share command/change share command/
delete share command". Implemented "delete" - more work to come on add and change. Jeremy.
This commit is contained in:
@@ -1103,6 +1103,22 @@ BOOL api_pipe_auth_process(pipes_struct *p, prs_struct *rpc_in)
|
||||
return True;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Return a user struct for a pipe user.
|
||||
****************************************************************************/
|
||||
|
||||
struct current_user *get_current_user(struct current_user *user, pipes_struct *p)
|
||||
{
|
||||
if (p->ntlmssp_auth_validated) {
|
||||
memcpy(user, &p->pipe_user, sizeof(struct current_user));
|
||||
} else {
|
||||
extern struct current_user current_user;
|
||||
memcpy(user, ¤t_user, sizeof(struct current_user));
|
||||
}
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
Find the correct RPC function to call for this request.
|
||||
If the pipe is authenticated then become the correct UNIX user
|
||||
|
||||
Reference in New Issue
Block a user