destuser = *args + 9;
else if (strncmp(*args, "pass=", 5) == 0)
pass = *args + 5;
+ else if (auth_debug) {
+ i_info("Ignoring unknown passdb extra field: %s",
+ *args);
+ }
}
if (destuser == NULL)
extern const char *login_protocol;
extern bool disable_plaintext_auth, process_per_connection;
-extern bool verbose_proctitle, verbose_ssl, verbose_auth;
+extern bool verbose_proctitle, verbose_ssl, verbose_auth, auth_debug;
extern bool ssl_require_client_cert;
extern const char *greeting, *log_format;
extern const char *const *log_format_elements;
#include <syslog.h>
bool disable_plaintext_auth, process_per_connection;
-bool verbose_proctitle, verbose_ssl, verbose_auth;
+bool verbose_proctitle, verbose_ssl, verbose_auth, auth_debug;
bool ssl_require_client_cert;
const char *greeting, *log_format;
const char *const *log_format_elements;
verbose_proctitle = getenv("VERBOSE_PROCTITLE") != NULL;
verbose_ssl = getenv("VERBOSE_SSL") != NULL;
verbose_auth = getenv("VERBOSE_AUTH") != NULL;
+ auth_debug = getenv("AUTH_DEBUG") != NULL;
ssl_require_client_cert = getenv("SSL_REQUIRE_CLIENT_CERT") != NULL;
greeting = getenv("GREETING");
env_put("VERBOSE_SSL=1");
if (set->server->auths->verbose)
env_put("VERBOSE_AUTH=1");
+ if (set->server->auths->debug)
+ env_put("AUTH_DEBUG=1");
require_cert = TRUE;
for (auth = set->server->auths; auth != NULL; auth = auth->next) {
if (!auth->ssl_require_client_cert)
destuser = *args + 9;
else if (strncmp(*args, "pass=", 5) == 0)
pass = *args + 5;
+ else if (auth_debug) {
+ i_info("Ignoring unknown passdb extra field: %s",
+ *args);
+ }
}
if (destuser == NULL)