1
0
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:
Andrew Tridgell
2004-05-07 11:56:13 +00:00
committed by Gerald (Jerry) Carter
parent b1cd98188d
commit 10fdfb5239
3 changed files with 25 additions and 2 deletions

View File

@@ -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)) {