| Server IP : 85.214.143.32 / Your IP : 216.73.216.137 Web Server : nginx/1.24.0 System : Linux datensicherung.webdress.site 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/include/dovecot/ |
Upload File : |
#ifndef LOGIN_COMMON_H
#define LOGIN_COMMON_H
#include "lib.h"
#include "net.h"
#include "login-settings.h"
/* Used only for string sanitization */
#define MAX_MECH_NAME 64
#define AUTH_FAILED_MSG "Authentication failed."
#define AUTH_TEMP_FAILED_MSG "Temporary authentication failure."
#define AUTH_PLAINTEXT_DISABLED_MSG \
"Plaintext authentication disallowed on non-secure (SSL/TLS) connections."
#define LOGIN_DEFAULT_SOCKET "login"
#define LOGIN_TOKEN_DEFAULT_SOCKET "tokenlogin"
struct login_binary {
/* e.g. imap, pop3 */
const char *protocol;
/* e.g. imap-login, pop3-login */
const char *process_name;
/* e.g. 143, 110 */
in_port_t default_port;
/* e.g. 993, 995. if there is no ssl port, use 0. */
in_port_t default_ssl_port;
/* if value is NULL, LOGIN_DEFAULT_SOCKET is used as the default */
const char *default_login_socket;
struct event_category event_category;
const struct client_vfuncs *client_vfuncs;
void (*preinit)(void);
void (*init)(void);
void (*deinit)(void);
bool sasl_support_final_reply:1;
bool anonymous_login_acceptable:1;
};
struct login_module_register {
unsigned int id;
};
extern struct login_module_register login_module_register;
extern struct login_binary *login_binary;
extern struct auth_client *auth_client;
extern struct master_auth *master_auth;
extern bool closing_down, login_debug;
extern struct anvil_client *anvil;
extern const char *login_rawlog_dir;
extern unsigned int initial_service_count;
/* NULL-terminated array of all alt_usernames seen so far. Existing fields are
never removed. */
extern ARRAY_TYPE(string) global_alt_usernames;
extern bool login_ssl_initialized;
extern const struct login_settings *global_login_settings;
extern const struct master_service_ssl_settings *global_ssl_settings;
extern void **global_other_settings;
extern const struct ip_addr *login_source_ips;
extern unsigned int login_source_ips_idx, login_source_ips_count;
extern struct event *event_auth;
void login_refresh_proctitle(void);
void login_client_destroyed(void);
/* Call to guarantee that the "anvil" global variable is initialized. */
void login_anvil_init(void);
int login_binary_run(struct login_binary *binary,
int argc, char *argv[]);
#endif