Searched refs:auth (Results 1 - 25 of 37) sorted by relevance

12

/dovecot/src/auth/
H A Dauth-postfix-connection.h5 auth_postfix_connection_create(struct auth *auth, int fd);
H A Dauth.c3 #include "auth-common.h"
12 #include "auth.h"
27 static ARRAY(struct auth *) auths;
69 auth_passdb_preinit(struct auth *auth, const struct auth_passdb_settings *set, argument
74 auth_passdb = p_new(auth->pool, struct auth_passdb, 1);
85 passdb_template_build(auth->pool, set->default_fields);
87 passdb_template_build(auth->pool, set->override_fields);
96 auth_passdb->passdb = passdb_preinit(auth->pool, set);
100 p_strconcat(auth
109 auth_userdb_preinit(struct auth *auth, const struct auth_userdb_settings *set) argument
145 auth_passdb_list_have_verify_plain(const struct auth *auth) argument
156 auth_passdb_list_have_lookup_credentials(const struct auth *auth) argument
167 auth_passdb_list_have_set_credentials(const struct auth *auth) argument
183 auth_mech_verify_passdb(const struct auth *auth, const struct mech_module_list *list) argument
207 auth_mech_list_verify_passdb(const struct auth *auth) argument
233 struct auth *auth; local
307 auth_init(struct auth *auth) argument
320 auth_deinit(struct auth *auth) argument
369 struct auth *auth, *const *authp; local
405 struct auth *const *auth; local
422 struct auth *const *auth; local
430 struct auth **auth; local
[all...]
H A Dauth-client-connection.h4 #include "master-auth.h"
8 struct auth *auth; member in struct:auth_client_connection
27 void auth_client_connection_create(struct auth *auth, int fd,
H A Dauth-master-connection.h9 struct auth *auth; member in struct:auth_master_connection
29 auth_master_connection_create(struct auth *auth, int fd,
H A Dauth-worker-client.h10 struct auth_worker_client *auth_worker_client_create(struct auth *auth, int fd);
H A Dauth.h4 #include "auth-settings.h"
65 struct auth { struct
78 struct auth *auth_find_service(const char *name);
79 struct auth *auth_default_service(void);
H A Dmain.c3 #include "auth-common.h"
23 #include "auth.h"
24 #include "auth-penalty.h"
25 #include "auth-token.h"
26 #include "auth-request-handler.h"
27 #include "auth-request-stats.h"
28 #include "auth-worker-server.h"
29 #include "auth-worker-client.h"
30 #include "auth-master-connection.h"
31 #include "auth
323 struct auth *auth; local
[all...]
H A Dauth-client-connection.c3 #include "auth-common.h"
17 #include "auth-fields.h"
18 #include "auth-request-handler.h"
19 #include "auth-client-interface.h"
20 #include "auth-client-connection.h"
21 #include "auth-master-connection.h"
82 if (conn->auth->set->debug) {
84 conn->auth->set->debug_passwords ?
148 if (conn->auth->set->debug)
149 i_debug("auth clien
327 auth_client_connection_create(struct auth *auth, int fd, bool login_requests, bool token_auth) argument
[all...]
H A Dauth-postfix-connection.c3 #include "auth-common.h"
14 #include "auth-postfix-connection.h"
23 struct auth *auth; member in struct:auth_postfix_connection
93 if (conn->auth->set->debug)
128 if (conn->auth->set->debug)
171 auth_postfix_connection_create(struct auth *auth, int fd) argument
178 conn->auth = auth;
[all...]
H A Dmech-oauth2.c3 #include "auth-common.h"
12 struct auth_request auth; member in struct:oauth2_auth_request
118 } else if (strncmp(*ptr,"auth=", 5) == 0) {
215 if (strncmp(*ptr,"auth=", 5) == 0) {
245 request->auth.pool = pool;
246 return &request->auth;
/dovecot/doc/example-config/conf.d/
H A D10-auth.conf63 # Maximum number of dovecot-auth worker processes. They're used to execute
75 # the auth service to run as root to be able to read this file.
119 #!include auth-deny.conf.ext
120 #!include auth-master.conf.ext
122 !include auth-system.conf.ext
123 #!include auth-sql.conf.ext
124 #!include auth-ldap.conf.ext
125 #!include auth-passwdfile.conf.ext
126 #!include auth-checkpassword.conf.ext
127 #!include auth
[all...]
H A D10-master.conf86 service auth {
100 unix_listener auth-userdb {
106 # Postfix smtp-auth
107 #unix_listener /var/spool/postfix/private/auth {
115 service auth-worker {
/dovecot/src/lib-master/
H A Dmaster-login-auth.c16 #include "master-auth.h"
17 #include "master-login-auth.h"
62 static void master_login_auth_set_timeout(struct master_login_auth *auth);
63 static void master_login_auth_check_spids(struct master_login_auth *auth);
68 struct master_login_auth *auth; local
71 pool = pool_alloconly_create("master login auth", 1024);
72 auth = p_new(pool, struct master_login_auth, 1);
73 auth->pool = pool;
74 auth->auth_socket_path = p_strdup(pool, auth_socket_path);
75 auth
93 master_login_auth_disconnect(struct master_login_auth *auth) argument
122 struct master_login_auth *auth = *_auth; local
136 struct master_login_auth *auth = *_auth; local
144 auth_get_next_timeout_secs(struct master_login_auth *auth) argument
153 master_login_auth_timeout(struct master_login_auth *auth) argument
175 master_login_auth_set_timeout(struct master_login_auth *auth) argument
186 master_login_auth_request_remove(struct master_login_auth *auth, struct master_login_auth_request *request) argument
203 master_login_auth_lookup_request(struct master_login_auth *auth, unsigned int id) argument
224 master_login_auth_input_user(struct master_login_auth *auth, const char *args) argument
248 master_login_auth_input_notfound(struct master_login_auth *auth, const char *args) argument
271 master_login_auth_input_fail(struct master_login_auth *auth, const char *args_line) argument
304 master_login_auth_input(struct master_login_auth *auth) argument
378 master_login_auth_connect(struct master_login_auth *auth) argument
399 auth_request_check_spid(struct master_login_auth *auth, struct master_login_auth_request *req) argument
412 master_login_auth_check_spids(struct master_login_auth *auth) argument
424 master_login_auth_send_request(struct master_login_auth *auth, struct master_login_auth_request *req) argument
448 master_login_auth_request(struct master_login_auth *auth, const struct master_auth_request *req, master_login_auth_request_callback_t *callback, void *context) argument
494 master_login_auth_request_count(struct master_login_auth *auth) argument
[all...]
H A Dmaster-login-auth.h12 void master_login_auth_deinit(struct master_login_auth **auth);
13 void master_login_auth_disconnect(struct master_login_auth *auth);
16 by performing verifying from auth that req is valid and doing the userdb
18 void master_login_auth_request(struct master_login_auth *auth,
22 unsigned int master_login_auth_request_count(struct master_login_auth *auth);
H A Dmaster-auth.c9 #include "master-auth.h"
18 struct master_auth *auth; member in struct:master_auth_connection
46 struct master_auth *auth; local
49 pool = pool_alloconly_create("master auth", 1024);
50 auth = p_new(pool, struct master_auth, 1);
51 auth->pool = pool;
52 auth->service = service;
53 auth->default_path = p_strdup(pool, path);
54 hash_table_create_direct(&auth->connections, pool, 0);
55 return auth;
85 struct master_auth *auth = *_auth; local
151 master_auth_request_full(struct master_auth *auth, const struct master_auth_request_params *params, master_auth_callback_t *callback, void *context, unsigned int *tag_r) argument
219 master_auth_request(struct master_auth *auth, int fd, const struct master_auth_request *request, const unsigned char *data, master_auth_callback_t *callback, void *context, unsigned int *tag_r) argument
235 master_auth_request_abort(struct master_auth *auth, unsigned int tag) argument
[all...]
H A Dmaster-auth.h41 /* Authentication process, authentication ID and auth cookie. */
88 /* reply=NULL if the auth lookup was cancelled due to some error */
94 void master_auth_deinit(struct master_auth **auth);
98 void master_auth_request_full(struct master_auth *auth,
103 void master_auth_request(struct master_auth *auth, int fd,
108 void master_auth_request_abort(struct master_auth *auth, unsigned int tag);
H A Dmaster-login.c12 #include "master-login-auth.h"
50 struct master_login_auth *auth; member in struct:master_login
73 login->auth = master_login_auth_init(set->auth_socket_path,
92 master_login_auth_deinit(&login->auth);
135 i_error("Too large auth data_size sent");
214 i_assert(master_login_auth_request_count(login->auth) == 0);
215 master_login_auth_disconnect(login->auth);
373 i_error("login client: Username missing from auth reply");
396 /* execute post-login scripts before finishing auth */
441 master_login_auth_request(login->auth,
[all...]
/dovecot/src/director/
H A Dlogin-connection.h14 struct auth_connection *auth,
H A Dlogin-connection.c15 #include "auth-client-interface.h"
16 #include "auth-connection.h"
34 struct auth_connection *auth; member in struct:login_connection
73 output = auth_connection_get_output(conn->auth);
194 /* auth connection died -> kill also this login connection */
226 i_error("auth sent invalid lip field: %s", (*args) + 6);
229 i_error("auth sent invalid lport field: %s", (*args) + 6);
232 i_error("auth sent invalid port field: %s", (*args) + 6);
270 struct auth_connection *auth,
282 i_assert(auth !
269 login_connection_init(struct director *dir, int fd, struct auth_connection *auth, enum login_connection_type type) argument
[all...]
H A Dmain.c12 #include "auth-connection.h"
26 #define AUTH_SOCKET_PATH "auth-login"
27 #define AUTH_USERDB_SOCKET_PATH "auth-userdb"
100 if (strcmp(suffix, "auth") == 0)
178 struct auth_connection *auth; local
198 auth socket they connect to. */
202 auth = auth_connection_init(socket_path);
203 if (auth_connection_connect(auth) < 0) {
204 auth_connection_deinit(&auth);
208 (void)login_connection_init(director, conn->fd, auth,
[all...]
/dovecot/src/lib-http/
H A Dhttp-url.c34 struct uri_authority auth; local
38 if ((ret = uri_parse_host_authority(parser, &auth)) < 0)
40 if (auth.host.name == NULL || *auth.host.name == '\0') {
51 if (auth.enc_userinfo != NULL) {
69 p = strchr(auth.enc_userinfo, ':');
71 if (!uri_data_decode(parser, auth.enc_userinfo, NULL, &user))
74 if (!uri_data_decode(parser, auth.enc_userinfo, p, &user))
82 uri_host_copy(parser->pool, &url->host, &auth.host);
83 url->port = auth
360 struct uri_authority auth; local
[all...]
/dovecot/src/lib-smtp/
H A Dtest-smtp-params.c53 .auth = &test_address1
59 .auth = &test_address2
65 .auth = &test_address3
205 if (parsed->auth->localpart == NULL ||
206 test->auth->localpart == NULL) {
207 test_out(t_strdup_printf("params.auth->localpart = %s",
208 parsed->auth->localpart),
209 (parsed->auth->localpart == test->auth->localpart));
211 test_out(t_strdup_printf("params.auth
[all...]
/dovecot/src/lib/
H A Duri-util.h111 data, all allocated from the parser pool. The auth parameter can be
116 struct uri_authority *auth) ATTR_NULL(2);
121 struct uri_authority *auth) ATTR_NULL(2);
127 struct uri_authority *auth) ATTR_NULL(2);
134 struct uri_authority *auth) ATTR_NULL(2);
H A Duri-util.c704 struct uri_authority *auth) ATTR_NULL(2)
725 if (auth != NULL)
726 auth->port = port;
732 struct uri_authority *auth, bool host_name) ATTR_NULL(2)
741 if (auth != NULL)
742 i_zero(auth); variable
757 if (auth != NULL)
758 auth->enc_userinfo = p_strdup_until(parser->pool, parser->cur, p);
764 (auth == NULL ? NULL : &auth
811 uri_parse_authority(struct uri_parser *parser, struct uri_authority *auth) argument
817 uri_parse_slashslash_authority(struct uri_parser *parser, struct uri_authority *auth) argument
823 uri_parse_host_authority(struct uri_parser *parser, struct uri_authority *auth) argument
829 uri_parse_slashslash_host_authority(struct uri_parser *parser, struct uri_authority *auth) argument
[all...]
/dovecot/src/lib-imap/
H A Dimap-url.c36 iauth = ";AUTH=" ( "*" / enc-auth-type )
37 enc-auth-type = 1*achar
38 ; %-encoded version of [IMAP4] "auth-type"
172 struct uri_authority auth; local
188 * iauth = ";AUTH=" ( "*" / enc-auth-type )
189 * enc-auth-type = 1*achar
190 * ; %-encoded version of [IMAP4] "auth-type"
195 (parser, &auth)) <= 0)
197 if (auth.host.name == NULL || *auth
[all...]

Completed in 55 milliseconds

12