s3: Add debug level 0 warnings to make_new_server_info_guest
authorVolker Lendecke <vl@samba.org>
Wed, 15 Jun 2011 12:08:23 +0000 (14:08 +0200)
committerVolker Lendecke <vlendec@samba.org>
Wed, 15 Jun 2011 13:20:49 +0000 (15:20 +0200)
I've got a backtrace where this must have failed, but it is not clear why. If
this fails, we should really complain because we can't start up.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jun 15 15:20:49 CEST 2011 on sn-devel-104

source3/auth/auth_util.c

index e2a3dadd4618947ee18cdb5e6fb188fa1d7d040f..64c290eb048fab6a124bf68a9f1dcc5c81e53f2a 100644 (file)
@@ -773,6 +773,8 @@ static NTSTATUS make_new_server_info_guest(struct auth_serversupplied_info **ses
 
        status = get_guest_info3(tmp_ctx, &info3);
        if (!NT_STATUS_IS_OK(status)) {
+               DEBUG(0, ("get_guest_info3 failed with %s\n",
+                         nt_errstr(status)));
                goto done;
        }
 
@@ -782,6 +784,8 @@ static NTSTATUS make_new_server_info_guest(struct auth_serversupplied_info **ses
                                        &server_info,
                                        &info3);
        if (!NT_STATUS_IS_OK(status)) {
+               DEBUG(0, ("make_server_info_info3 failed with %s\n",
+                         nt_errstr(status)));
                goto done;
        }
 
@@ -793,8 +797,8 @@ static NTSTATUS make_new_server_info_guest(struct auth_serversupplied_info **ses
        status = create_local_token(tmp_ctx, server_info, NULL, session_info);
        TALLOC_FREE(server_info);
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(10, ("create_local_token failed: %s\n",
-                          nt_errstr(status)));
+               DEBUG(0, ("create_local_token failed: %s\n",
+                         nt_errstr(status)));
                goto done;
        }
        talloc_steal(NULL, *session_info);