s3: NO_SUCH_USER is a lot more likely than NO_MEMORY
authorVolker Lendecke <vl@samba.org>
Sat, 19 Feb 2011 22:20:34 +0000 (23:20 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 20 Feb 2011 09:23:29 +0000 (10:23 +0100)
source3/auth/auth_util.c

index a30a36f9aa7baf0dc19fd3821120ceeb6436e3e4..314371098608823fcc103640345ab109bad3662f 100644 (file)
@@ -757,7 +757,7 @@ static NTSTATUS make_new_server_info_system(TALLOC_CTX *mem_ctx,
 
        pwd = getpwuid_alloc(mem_ctx, sec_initial_uid());
        if (pwd == NULL) {
-               return NT_STATUS_NO_MEMORY;
+               return NT_STATUS_NO_SUCH_USER;
        }
 
        status = make_serverinfo_from_username(mem_ctx,