/* Copyright (c) 2004-2018 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "userdb.h"
#ifdef USERDB_PREFETCH
#include "str.h"
#include "var-expand.h"
{
/* auth_request_set_field() should have already placed the userdb_*
values to userdb_reply. */
if (!auth_request->userdb_prefetch_set) {
/* no other userdbs */
if (auth_request->userdb_lookup) {
"userdb lookup not possible with only userdb prefetch");
} else {
"passdb didn't return userdb entries");
}
return;
}
/* more userdbs, they may know the user */
"passdb didn't return userdb entries, "
"trying the next userdb");
}
return;
}
}
"prefetch",
NULL,
NULL,
NULL,
NULL,
NULL,
};
#else
.name = "prefetch"
};
#endif