search for: mech_module

Displaying 12 results from an estimated 12 matches for "mech_module".

Did you mean: mach_module
2007 May 22
1
[PATCH] add some const's
...r pazke at donpac.ru | PGP key: wwwkeys.pgp.net -------------- next part -------------- # HG changeset patch # User Andrey Panin <pazke at donpac.ru> # Date 1179812865 -14400 # Node ID a486a946dfa135e8c7d4083aacaef45d5386aa11 # Parent e1b3043c0d90cd346cc8cbfb6d1de3917dda5121 Constify struct mech_module. diff -r e1b3043c0d90 -r a486a946dfa1 src/auth/mech-anonymous.c --- a/src/auth/mech-anonymous.c Tue May 22 03:58:32 2007 +0300 +++ b/src/auth/mech-anonymous.c Tue May 22 09:47:45 2007 +0400 @@ -34,7 +34,7 @@ static struct auth_request *mech_anonymo return request; } -struct mech_module mech_a...
2004 Jul 22
1
[PATCH] add LOGIN authentication mechanism
...uest", 256); + auth = p_new(pool, struct auth_request, 1); + + auth->refcount = 1; + auth->pool = pool; + auth->auth_initial = mech_login_auth_initial; + auth->auth_continue = mech_login_auth_continue; + auth->auth_free = mech_login_auth_free; + + return auth; +} + +const struct mech_module mech_login = { + "LOGIN", + + MEMBER(plaintext) FALSE, + MEMBER(advertise) TRUE, + + MEMBER(passdb_need_plain) FALSE, + MEMBER(passdb_need_credentials) TRUE, + + mech_login_auth_new, +}; diff -urpNX /usr/share/dontdiff dovecot-1.0-test29.vanilla/src/auth/Makefile.am dovecot-1.0-test29/src...
2008 Aug 12
5
[PATCH] Support GSS-SPNEGO natively
...00000000 -0600 @@ -417,4 +424,21 @@ mech_gssapi_auth_free }; +/* MTI Kerberos > 1.5 supports SPNEGO for Kerberos tickets internally. + Nothing else needs to be done here. Note however that this does not + support SPNEGO when the only available credential is NTLM.. */ +const struct mech_module mech_gssapi_spnego = { + "GSS-SPNEGO", + + MEMBER(flags) 0, + + MEMBER(passdb_need_plain) FALSE, + MEMBER(passdb_need_credentials) FALSE, + + mech_gssapi_auth_new, + mech_gssapi_auth_initial, + mech_gssapi_auth_continue, + mech_gssap...
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...+ auth->auth_request.refcount = 1; + auth->auth_request.pool = pool; + auth->auth_request.auth_initial = mech_apop_auth_initial; + auth->auth_request.auth_continue = NULL; + auth->auth_request.auth_free = mech_apop_auth_free; + + return &auth->auth_request; +} + +const struct mech_module mech_apop = { + "APOP", + + MEMBER(plaintext) FALSE, + MEMBER(advertise) FALSE, + + MEMBER(passdb_need_plain) FALSE, + MEMBER(passdb_need_credentials) TRUE, + + mech_apop_auth_new, +}; diff -udrpN -X /usr/share/dontdiff -x Makefile dovecot-1.0-test23.vanilla/src/auth/mech.c dovecot-1.0-te...
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...ff -urpNX /usr/share/dontdiff dovecot-1.0-test32.vanilla/src/auth/mech.c dovecot-1.0-test32/src/auth/mech.c --- dovecot-1.0-test32.vanilla/src/auth/mech.c 2004-07-28 19:07:13.000000000 +0400 +++ dovecot-1.0-test32/src/auth/mech.c 2004-07-30 21:17:33.000000000 +0400 @@ -389,6 +389,7 @@ extern struct mech_module mech_apop; extern struct mech_module mech_cram_md5; extern struct mech_module mech_digest_md5; extern struct mech_module mech_ntlm; +extern struct mech_module mech_rpa; extern struct mech_module mech_anonymous; void mech_init(void) @@ -424,6 +425,8 @@ void mech_init(void) mech_register_m...
2004 Oct 21
2
test51 dumping core
...input_auth (conn=0x0, args=0x3c014080 "?@\001<") at auth-client-connection.c:204 204 request->id = id; (gdb) bt full #0 0x1c00573a in auth_client_input_auth (conn=0x0, args=0x3c014080 "?@\001<") at auth-client-connection.c:204 mech = (struct mech_module *) 0x0 request = (struct auth_request *) 0xffffffff list = (char **) 0x3c006414 name = 0x0 arg = 0x0 initial_resp = 0xcfbefe38 "X???8?\036\n\001" initial_resp_data = (void *) 0xcfbefecc initial_resp_len = 0 id = 1006715072...
2020 Aug 14
0
2.3.11.3 on 32bit platforms
...nge(unsigned int connect_uid, unsigned long *len_r) +test_mech_construct_apop_challenge(unsigned int connect_uid, size_t *len_r) { string_t *apop_challenge = t_str_new(128); @@ -323,7 +323,7 @@ static void test_mechs(void) struct test_case *test_case = &tests[running_test]; const struct mech_module *mech = test_case->mech; struct auth_request *request; - const char *testname = t_strdup_printf("auth mech %s %d/%lu", + const char *testname = t_strdup_printf("auth mech %s %d/%zu", mech->mech_name, running_test+1, N_ELEMENTS(tests));
2012 Mar 05
1
[PATCH] GSSAPI authorization and virtual users
...ruct auth_request. I would prefer to store it in struct gssapi_auth_request, but auth-request.c does not know about structs that are specific to the different authentication plugins. This could be fixed in a more general way by adding a new function to struct mech_module to allow authplugins to read fields during passdb lookups. 2. The gssapi authplugin now does a credential lookup in order to trigger parsing of the k5principals setting. In order for this to work, auth_request_set_username is now called before mech_gssapi_userok...
2005 Oct 19
2
[PATCH] Support for GSSAPI SASL Mechanism
...ed 'auth_krb5_keytab' option for overriding default keytab location. The gssapi library already uses the environment variable KRB5_KTNAME to allow overriding of the keytab location, so I didn't have to make any changes on the login process side. - - Added 'need_passdb' member to mech_module and allow having no passdb's specified if no mechanisms need them (only useful for GSSAPI at the moment) Cheers, Jelmer - -- Jelmer Vernooij <jelmer@samba.org> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDVgaEPa9Uoh7vUnYRAscGAJ9Fa4E5ze5IX3UeAfjwg7kzj5tgtQCcDv...
2005 Mar 30
2
test65 killed by SIGSEV
...quot; i = 0 count = 2 #4 0x08051a80 in auth_request_handler_auth_begin (handler=0x8084010, args=0x808101c "1\tPLAIN\tservice=IMAP\tsecured\tlip=127.0.0.1\trip=127.0.0.1\tresp=AGRvdmV0ZXN0AHBhc3M=") at auth-request-handler.c:327 len = 20 mech = (struct mech_module *) 0x0 request = (struct auth_request *) 0x8077a10 list = (const char * const *) 0x806e114 name = 0x806e130 "resp" arg = 0x806e160 "\200?\006\b\016" initial_resp = 0x806e0de "AGRvdmV0ZXN0AHBhc3M=" initial_resp_data = (con...
2008 May 16
3
Trim trailing whitespace from username
...4 15:01:52.000000000 -0700 +++ dovecot-1.1.rc5-patched/src/auth/auth-request.c 2008-05-16 00:44:15.000000000 -0700 @@ -22,6 +22,7 @@ #include <stdlib.h> #include <sys/stat.h> +#include <ctype.h> struct auth_request * auth_request_new(struct auth *auth, const struct mech_module *mech, @@ -750,6 +751,7 @@ { unsigned char *p; char *user; + size_t size; if (strchr(username, '@') == NULL && request->auth->default_realm != NULL) { @@ -759,6 +761,16 @@ user = p_strdup(request->pool, user...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...ubmit users + (and master users, since we can't tell the difference so early). */ + +static void +mech_submit_auth_continue(struct auth_request *request, + const unsigned char *data, size_t data_size) +{ + mech_plain_auth_continue_submit(request, data, data_size, TRUE); +} + +const struct mech_module mech_x_plain_submit = { + "X-PLAIN-SUBMIT", + + MEMBER(flags) MECH_SEC_PLAINTEXT, + MEMBER(passdb_need) MECH_PASSDB_NEED_VERIFY_PLAIN, + + mech_plain_auth_new, + mech_generic_auth_initial, + mech_submit_auth_continue, + mech_generic_auth_free +}; diff -Nur dovecot-1.2.11/src/auth/mech.c d...