diff --git a/include/authd.h b/include/authd.h index 03405958..71990aa7 100644 --- a/include/authd.h +++ b/include/authd.h @@ -55,5 +55,6 @@ void add_blacklist(const char *host, const char *reason, uint8_t iptype, rb_dlin void del_blacklist(const char *host); void del_blacklist_all(void); void set_authd_timeout(const char *key, int timeout); +void ident_check_enable(bool enabled); #endif diff --git a/ircd/authd.c b/ircd/authd.c index fa7e77f7..d2514deb 100644 --- a/ircd/authd.c +++ b/ircd/authd.c @@ -316,6 +316,7 @@ configure_authd(void) set_authd_timeout("ident_timeout", GlobalSetOptions.ident_timeout); set_authd_timeout("rdns_timeout", ConfigFileEntry.connect_timeout); set_authd_timeout("blacklist_timeout", ConfigFileEntry.connect_timeout); + ident_check_enable(ConfigFileEntry.disable_auth); } static void @@ -576,3 +577,9 @@ set_authd_timeout(const char *key, int timeout) { rb_helper_write(authd_helper, "O %s %d", key, timeout); } + +void +ident_check_enable(bool enabled) +{ + rb_helper_write(authd_helper, "O ident_enabled %d", enabled ? 1 : 0); +}