]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
userdb prefetch + blocking passdbs was still broken with non-plaintext auth.
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Feb 2009 17:12:15 +0000 (12:12 -0500)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Feb 2009 17:12:15 +0000 (12:12 -0500)
--HG--
branch : HEAD

src/auth/auth-worker-client.c

index 6e1915c738ddf3d1fec2f992320810ad5246ceaa..629bb71e4a098cd7322a015a549b0740fdb7c4b7 100644 (file)
@@ -65,22 +65,6 @@ worker_auth_request_new(struct auth_worker_client *client, unsigned int id,
        return auth_request;
 }
 
-static void
-add_userdb_replies(struct auth_stream_reply *reply,
-                  struct auth_stream_reply *userdb_reply)
-{
-       const char *const *tmp;
-
-       tmp = auth_stream_split(userdb_reply);
-       i_assert(*tmp != NULL);
-       /* first field is the user name */
-       tmp++;
-       for (; *tmp != NULL; tmp++) {
-               auth_stream_reply_import(reply,
-                                        t_strconcat("userdb_", *tmp, NULL));
-       }
-}
-
 static void auth_worker_send_reply(struct auth_worker_client *client,
                                   string_t *str)
 {
@@ -228,8 +212,6 @@ lookup_credentials_callback(enum passdb_result result,
                                auth_stream_reply_export(request->extra_cache_fields);
                        auth_stream_reply_import(reply, fields);
                }
-               if (request->userdb_reply != NULL)
-                       add_userdb_replies(reply, request->userdb_reply);
        }
        str = auth_stream_reply_get_str(reply);
        str_append_c(str, '\n');