search for: mech_is_valid_usernam

Displaying 5 results from an estimated 5 matches for "mech_is_valid_usernam".

Did you mean: mech_is_valid_username
2003 Jul 23
0
Re: Stripping of domain name
...gt;user = p_strdup(auth_request->pool, - authenid); - } + auth_request->user = p_strdup(auth_request->pool, + t_strcut(authenid, '@')); if (!mech_is_valid_username(auth_request->user)) { /* invalid username */
2004 May 11
0
Case sensitive user names
...src/auth/mech-plain.c --- dovecot-0.99.10/src/auth/mech-plain.c 2003-05-18 08:26:28.000000000 -0400 +++ dovecot-0.99.10.new/src/auth/mech-plain.c 2004-05-11 16:58:30.000000000 -0400 @@ -57,6 +57,7 @@ authenid); } + auth_request->user = str_lcase(auth_request->user); if (!mech_is_valid_username(auth_request->user)) { /* invalid username */ if (verbose) { Thanks, Jeff Graves, MCP Customer Support Engineer Image Source, Inc. 10 Mill Street Bellingham, MA 02019 508.966.5200 - Phone 508.966.5170 - Fax jeff at image-src.com - Email -------------- next part -------------- A non-t...
2004 Jul 22
1
[PATCH] add LOGIN authentication mechanism
...ze, + mech_callback_t *callback) +{ + struct auth_client_request_reply reply; + static const char prompt2[] = "Password:"; + + auth_request->callback = callback; + + if (!auth_request->user) { + auth_request->user = p_strndup(auth_request->pool, data, data_size); + + if (!mech_is_valid_username(auth_request->user)) { + if (verbose) { + i_info("login(%s): invalid username", + get_log_prefix(auth_request)); + } + mech_auth_finish(auth_request, NULL, 0, FALSE); + return TRUE; + } + + mech_init_auth_client_reply(&reply); + reply.id = auth_request->...
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...+ tmp++; + + if (tmp == end) { + if (verbose) + i_info("apop(%s): mailformed response", get_log_prefix(auth_request)); + mech_auth_finish(auth_request, NULL, 0, FALSE); + return TRUE; + } + tmp++; + + auth->username = p_strndup(auth->pool, username, tmp - username - 1); + if (!mech_is_valid_username(auth->username)) { + if (verbose) + i_info("apop(%s): invalid username", get_log_prefix(auth_request)); + mech_auth_finish(auth_request, NULL, 0, FALSE); + return TRUE; + } + + auth_request->user = p_strdup(auth->pool, auth->username); + + if ((end - tmp) != 32) { + if...
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...oken4_size; + char *error; + + if (!rpa_parse_token3(auth, data, data_size, &error)) { + if (verbose) + i_info("rpa(%s): invalid token 3, %s", + get_log_prefix(auth_request), + error); + mech_auth_finish(auth_request, NULL, 0, FALSE); + return TRUE; + } + + if (!mech_is_valid_username(auth_request->user)) { + if (verbose) + i_info("rpa(%s): invalid username", + get_log_prefix(auth_request)); + mech_auth_finish(auth_request, NULL, 0, FALSE); + return TRUE; + } + + passdb->lookup_credentials(auth_request, PASSDB_CREDENTIALS_RPA, + rpa_credentia...