s4:ntvfs/cifs: return NT_STATUS_INTERNAL_ERROR if no credentials are available
authorStefan Metzmacher <metze@samba.org>
Mon, 2 May 2011 10:51:58 +0000 (12:51 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 18 May 2011 06:49:00 +0000 (08:49 +0200)
This is a configuration problem on the server, no invalid parameter
from the client.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May 18 08:49:00 CEST 2011 on sn-devel-104

source4/ntvfs/cifs/vfs_cifs.c

index 27bf1ead2418cee901f8e11a6800d0049475a1a9..24dee76e46af9b9eb136ef7ca21f22c5c1b59304 100644 (file)
@@ -228,7 +228,7 @@ static NTSTATUS cvfs_connect(struct ntvfs_module_context *ntvfs,
                credentials = req->session_info->credentials;
        } else {
                DEBUG(1,("CIFS backend: NO delegated credentials found: You must supply server, user and password or the client must supply delegated credentials\n"));
-               return NT_STATUS_INVALID_PARAMETER;
+               return NT_STATUS_INTERNAL_ERROR;
        }
 
        /* connect to the server, using the smbd event context */