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);
struct access_lookup *access;
};
+struct event *event_auth;
+static struct event_category event_category_auth = {
+ .name = "auth",
+};
+
const struct login_binary *login_binary;
struct auth_client *auth_client;
struct master_auth *master_auth;
/* make sure we can't fork() */
restrict_process_count(1);
+ event_auth = event_create(NULL);
+ if (global_login_settings->auth_debug)
+ event_set_forced_debug(event_auth, TRUE);
+ event_add_category(event_auth, &event_category_auth);
+
i_array_init(&global_alt_usernames, 4);
master_service_set_avail_overflow_callback(master_service,
client_destroy_oldest);
client_common_deinit();
dsasl_clients_deinit();
login_settings_deinit();
+ event_unref(&event_auth);
}
int login_binary_run(const struct login_binary *binary,