extra_fields = request->extra_fields == NULL ? NULL :
auth_stream_reply_export(request->extra_fields);
- if (passdb_cache == NULL)
- return;
-
- if (passdb->cache_key == NULL)
+ if (passdb_cache == NULL || passdb->cache_key == NULL ||
+ request->master_user != NULL)
return;
if (result < 0) {
struct userdb_module *userdb = request->userdb->userdb;
const char *str;
- if (passdb_cache == NULL || userdb->cache_key == NULL)
+ if (passdb_cache == NULL || userdb->cache_key == NULL ||
+ request->master_user != NULL)
return;
str = result == USERDB_RESULT_USER_UNKNOWN ? "" :
struct auth_cache_node *node;
bool expired, neg_expired;
+ if (request->master_user != NULL)
+ return FALSE;
+
value = auth_cache_lookup(passdb_cache, request, key, &node,
&expired, &neg_expired);
if (value == NULL || (expired && !use_expired)) {
int ret;
bool expired, neg_expired;
- if (passdb_cache == NULL || key == NULL)
+ if (passdb_cache == NULL || key == NULL || request->master_user != NULL)
return FALSE;
/* value = password \t ... */
struct auth_cache_node *node;
bool expired, neg_expired;
- if (passdb_cache == NULL)
+ if (passdb_cache == NULL || request->master_user != NULL)
return FALSE;
value = auth_cache_lookup(passdb_cache, request, key, &node,