s3: Quieten a bogus error message
authorVolker Lendecke <vl@samba.org>
Tue, 9 Nov 2010 19:29:17 +0000 (20:29 +0100)
committerVolker Lendecke <vlendec@samba.org>
Tue, 9 Nov 2010 20:15:59 +0000 (20:15 +0000)
This happens if you set "auth methods = winbind" without a fallback method.

The return NT_STATUS_LOGON_FAILURE; is not strictly require here, because we
fall through to the equivalent statement a few lines down, but it makes the
code a bit clearer IMO.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Nov  9 20:15:59 UTC 2010 on sn-devel-104

source3/auth/auth_winbind.c

index dcf7e419c167aceefff3bbf5708f58996fb39433..603ec9b41095d6f75d983ca838a215a5e4595228 100644 (file)
@@ -98,9 +98,7 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
                if ( auth_method )
                        return auth_method->auth(auth_context, auth_method->private_data, 
                                mem_ctx, user_info, server_info);
-               else
-                       /* log an error since this should not happen */
-                       DEBUG(0,("check_winbind_security: ERROR!  my_private_data == NULL!\n"));
+               return NT_STATUS_LOGON_FAILURE;
        }
 
        if (wbc_status == WBC_ERR_AUTH_ERROR) {