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 <vl@samba.org>
Tue, 9 Aug 2011 14:57:51 +0000 (16:57 +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.

source3/auth/auth_util.c

index a904da445d79f9e654a8d23bc39b464b1159d059..72a0744cd40bd637f0b32fd10f51bc60f27c1382 100644 (file)
@@ -727,6 +727,8 @@ static NTSTATUS make_new_server_info_guest(struct auth_serversupplied_info **ser
 
        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;
        }
 
@@ -736,6 +738,8 @@ static NTSTATUS make_new_server_info_guest(struct auth_serversupplied_info **ser
                                        server_info,
                                        &info3);
        if (!NT_STATUS_IS_OK(status)) {
+               DEBUG(0, ("make_server_info_info3 failed with %s\n",
+                         nt_errstr(status)));
                goto done;
        }
 
@@ -743,8 +747,8 @@ static NTSTATUS make_new_server_info_guest(struct auth_serversupplied_info **ser
 
        status = create_local_token(*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;
        }