hi, i'm trying to use passdb ldap and userdb prefetch, using the userdb_ prefixes in pass_attrs, and i get: passdb didn't return userdb entries looking at the code at auth/userdb-prefetch.c i see: if (auth_request->userdb_reply == NULL) { if (auth_request->auth->userdbs->next == NULL) { /* no other userdbs */ auth_request_log_error(auth_request, "prefetch", "passdb didn't return userdb entries"); } else { /* more userdbs, they may know the user */ auth_request_log_info(auth_request, "prefetch", "passdb didn't return userdb entries"); } callback(USERDB_RESULT_USER_UNKNOWN, auth_request); return; } is this really correct? if so it migth be a good idea to at least print different errors Tony
On Thu, 2008-06-12 at 22:27 +0200, Tony den Haan wrote:> hi, > > i'm trying to use passdb ldap and userdb prefetch, using the userdb_ > prefixes in pass_attrs, and i get: > passdb didn't return userdb entries > > looking at the code at auth/userdb-prefetch.c i see: > > if (auth_request->userdb_reply == NULL) { > if (auth_request->auth->userdbs->next == NULL) { > /* no other userdbs */ > auth_request_log_error(auth_request, "prefetch", > "passdb didn't return userdb entries"); > } else { > /* more userdbs, they may know the user */ > auth_request_log_info(auth_request, "prefetch", > "passdb didn't return userdb entries"); > } > callback(USERDB_RESULT_USER_UNKNOWN, auth_request); > return; > } > > > is this really correct?Yes.> if so it migth be a good idea to at least print different errorsWell, one is an error and the other is an informational message. :) They should have Error: or Info: prefix already. But I updated the second one anyway: hg.dovecot.org/dovecot-1.1/rev/97e425675c86 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <dovecot.org/pipermail/dovecot/attachments/20080613/6654217c/attachment-0002.bin>