I assumed that lack of passdb means master authentication,
but e.g. gssapi does not require a passdb. Instead, check
that if requested_login_uset is non-null then check passdb is
non-null too.
Fixes auth: Panic: file auth-request.c: line 716 (auth_request_is_disabled_master_user): assertion failed: (request->requested_login_user != NULL)
static bool auth_request_is_disabled_master_user(struct auth_request *request)
{
- if (request->passdb != NULL)
+ if (request->requested_login_user == NULL ||
+ request->passdb != NULL)
return FALSE;
/* no masterdbs, master logins not supported */
- i_assert(request->requested_login_user != NULL);
auth_request_log_info(request, AUTH_SUBSYS_MECH,
"Attempted master login with no master passdbs "
"(trying to log in as user: %s)",