+enum reclaim_action {
+ RECLAIM_NONE,
+ RECLAIM_WARN,
+ RECLAIM_SVSNICK,
+ RECLAIM_KILL
+};
+
+struct nickserv_config {
+ unsigned int disable_nicks : 1;
+ unsigned int valid_handle_regex_set : 1;
+ unsigned int valid_nick_regex_set : 1;
+ unsigned int valid_fakehost_regex_set : 1;
+ unsigned int autogag_enabled : 1;
+ unsigned int email_enabled : 1;
+ unsigned int email_required : 1;
+ unsigned int default_hostmask : 1;
+ unsigned int warn_nick_owned : 1;
+ unsigned int warn_clone_auth : 1;
+ unsigned int sync_log : 1;
+ unsigned int expire_nicks : 1;
+ unsigned long nicks_per_handle;
+ unsigned long password_min_length;
+ unsigned long password_min_digits;
+ unsigned long password_min_upper;
+ unsigned long password_min_lower;
+ unsigned long db_backup_frequency;
+ unsigned long handle_expire_frequency;
+ unsigned long autogag_duration;
+ unsigned long email_visible_level;
+ unsigned long cookie_timeout;
+ unsigned long handle_expire_delay;
+ unsigned long nochan_handle_expire_delay;
+ unsigned long modoper_level;
+ unsigned long set_epithet_level;
+ unsigned long set_title_level;
+ unsigned long set_fakehost_level;
+ unsigned long handles_per_email;
+ unsigned long email_search_level;
+ unsigned long nick_expire_frequency;
+ unsigned long nick_expire_delay;
+ const char *network_name;
+ const char *titlehost_suffix;
+ regex_t valid_handle_regex;
+ regex_t valid_nick_regex;
+ regex_t valid_fakehost_regex;
+ dict_t weak_password_dict;
+ struct policer_params *auth_policer_params;
+ enum reclaim_action reclaim_action;
+ enum reclaim_action auto_reclaim_action;
+ unsigned long auto_reclaim_delay;
+ unsigned char default_maxlogins;
+ unsigned char hard_maxlogins;
+ unsigned long ounregister_inactive;
+ unsigned long ounregister_flags;
+ const char *auto_oper;
+ const char *auto_admin;
+ const char *auto_oper_privs;
+ const char *auto_admin_privs;
+ char default_style;
+ struct string_list *denied_fakehost_words;
+ unsigned int force_handles_lowercase;
+ unsigned int ldap_enable;
+#ifdef WITH_LDAP
+ const char *ldap_uri;
+ const char *ldap_base;
+ const char *ldap_dn_fmt;
+ unsigned int ldap_version;
+ unsigned int ldap_autocreate;
+
+ const char *ldap_admin_dn;
+ const char *ldap_admin_pass;
+ const char *ldap_field_account;
+ const char *ldap_field_password;
+ const char *ldap_field_email;
+ const char *ldap_field_oslevel;
+ struct string_list *ldap_object_classes;
+ const char *ldap_oper_group_dn;
+ unsigned int ldap_oper_group_level;
+ const char *ldap_field_group_member;
+ unsigned int ldap_timeout;
+#endif
+};
+