Displaying 6 results from an estimated 6 matches for "mech_auth_finish".
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...d5_context ctx;
+
+ digest_buf = buffer_create_data(pool_datastack_create(),
+ remote_digest, sizeof(remote_digest));
+ if (hex_to_binary(auth->digest, digest_buf) <= 0) {
+ if (verbose)
+ i_info("apop(%s): invalid characters in APOP digest", get_log_prefix(auth_request));
+ mech_auth_finish(auth_request, NULL, 0, FALSE);
+ return;
+ }
+
+ md5_init(&ctx);
+ md5_update(&ctx, auth->challenge, strlen(auth->challenge));
+ md5_update(&ctx, credentials, strlen(credentials));
+ md5_final(&ctx, digest);
+
+ safe_memset((void *) credentials, 0, strlen(credentials));
+
+ m...
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...quest_reply reply;
+ const unsigned char *token2;
+ size_t token2_size;
+ const char *service;
+ char *error;
+
+ if (!rpa_parse_token1(data, data_size, &error)) {
+ if (verbose)
+ i_info("rpa(%s): invalid token 1, %s",
+ get_log_prefix(auth_request),
+ error);
+ mech_auth_finish(auth_request, NULL, 0, FALSE);
+ return TRUE;
+ }
+
+ service = t_str_lcase(auth_request->protocol);
+
+ token2 = mech_rpa_build_token2(auth, t_strconcat(service, "@",
+ my_hostname, NULL), &token2_size);
+
+ auth->service_ucs2be = ucs2be_str(auth->pool, service,
+...
2004 Dec 07
1
Assert in mech.c
Hi guys,
Seems to be my week for mailing :)
I am getting the following in my mail log:
Dec 7 11:54:08 svr21 dovecot: auth(sql8): file mech.c: line 143
(mech_auth_finish): assertion failed: (*requests != request)
Is this assert important or can I remove it from my copy of the code?
Regards
Andrew
--
Andrew Hutchings
Systems Operator / Developer / Linux Guru
Netserve Consultants Ltd.
http://www.domaincity.co.uk/
2004 Nov 10
0
[PATCH] NTLM update and crashfix
...uffer_t *hash_buffer;
int ret;
- if (credentials == NULL) {
+ response_length =
+ ntlmssp_buffer_length(request->response, lm_response);
+ client_response = ntlmssp_buffer_data(request->response, lm_response);
+
+ if ((credentials == NULL) || (response_length < LM_RESPONSE_SIZE)) {
mech_auth_finish(auth_request, NULL, 0, FALSE);
return;
}
@@ -54,8 +59,6 @@ lm_credentials_callback(const char *cred
hash, sizeof(hash));
hex_to_binary(credentials, hash_buffer);
- client_response = ntlmssp_buffer_data(request->response, lm_response);
-
ntlmssp_v1_response(hash, request->cha...
2004 Jul 22
1
[PATCH] add LOGIN authentication mechanism
...ion 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#include "common.h"
+#include "mech.h"
+#include "passdb.h"
+#include "safe-memset.h"
+
+static void verify_callback(enum passdb_result result,
+ struct auth_request *request)
+{
+ mech_auth_finish(request, NULL, 0, result == PASSDB_RESULT_OK);
+}
+
+static int
+mech_login_auth_continue(struct auth_request *auth_request,
+ const unsigned char *data, size_t data_size,
+ mech_callback_t *callback)
+{
+ struct auth_client_request_reply reply;
+ static const char prompt2[] = "Password:...
2003 Jul 23
0
Re: Stripping of domain name
...m not really sure how to do that with mailman.
RCS file: /home/cvs/dovecot/src/auth/mech-plain.c,v
retrieving revision 1.13
diff -u -r1.13 mech-plain.c
--- mech-plain.c 8 May 2003 03:18:43 -0000 1.13
+++ mech-plain.c 23 Jul 2003 19:31:13 -0000
@@ -48,14 +48,8 @@
mech_auth_finish(auth_request, NULL, 0, FALSE);
} else {
/* split and save user/realm */
- if (strchr(authenid, '@') == NULL && default_realm != NULL) {
- auth_request->user = p_strconcat(auth_request->pool,
-...