mirror of
https://github.com/samba-team/samba.git
synced 2025-11-16 20:23:50 +03:00
r549: added support for DOS error codes in NTSTATUS returns. This uses a
range of NTSTATUS codes that are normally invalid to prevent conflicts with real error codes. use the new DOS facility to fix the ERRbaduid return that volker found
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b1cd98188d
commit
10fdfb5239
@@ -480,6 +480,14 @@ static void switch_message(int type, struct request_context *req)
|
||||
return;
|
||||
}
|
||||
|
||||
/* see if the vuid is valid */
|
||||
if ((flags & AS_USER) && !req->user_ctx->vuser) {
|
||||
if (!(flags & AS_GUEST)) {
|
||||
req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* does this protocol need to be run as the connected user? */
|
||||
#if HACK_REWRITE
|
||||
if ((flags & AS_USER) && !change_to_user(req->conn,session_tag)) {
|
||||
|
||||
Reference in New Issue
Block a user