search for: get_apop_challeng

Displaying 2 results from an estimated 2 matches for "get_apop_challeng".

Did you mean: get_apop_challenge
2010 Aug 18
1
Disable APOP challenge in POP3 login greeting
...oks like Dovecot 2.0 appends an APOP challenge to the POP3 greeting even if APOP is not an enabled auth mechanism. Is there any way to disable this? We don't support APOP, and the challenge includes the private hostname of the server, which we'd rather not have in the banner. It looks like get_apop_challenge in 1.2 returns NULL if APOP isn't supported, which causes auth_client_ready to omit the banner... but I see no such check (in fact, no way for get_apop_challenge to return NULL) in 2.0, even though pop3_client_send_greeting tests for it. Thanks, -Brad
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...urn cmd_auth(client, args); + if (strcmp(cmd, "APOP") == 0) + return cmd_apop(client, args); if (strcmp(cmd, "STLS") == 0) return cmd_stls(client); if (strcmp(cmd, "QUIT") == 0) @@ -228,6 +232,15 @@ static void client_destroy_oldest(void) } } +static char *get_apop_challenge(void) +{ + if (auth_client_find_mech(auth_client, "APOP")) { + hostpid_init(); + return i_strdup_printf("<%s.%s@%s>", my_pid, dec2str(ioloop_time), my_hostname); + } else + return NULL; +} + struct client *client_create(int fd, int ssl, const struct ip_addr *local_ip,...