*
* x3 is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
const char *auto_admin;
char default_style;
struct string_list *denied_fakehost_words;
+ unsigned int force_handles_lowercase;
unsigned int ldap_enable;
- const char *ldap_host;
- unsigned int ldap_port;
+#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;
+ 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
};
void init_nickserv(const char *nick);
void nickserv_show_oper_accounts(struct userNode *user, struct svccmd *cmd);
struct handle_info *get_victim_oper(struct svccmd *cmd, struct userNode *user, const char *target);
-struct handle_info *loc_auth(char *handle, char *password);
+struct handle_info *loc_auth(char *handle, char *password, char *userhost);
typedef void (*user_mode_func_t)(struct userNode *user, const char *mode_change);
void reg_user_mode_func(user_mode_func_t func);