1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 20:43:14 +02:00

Added more useful functions to our LDAP API, allow adding newly registered accounts to LDAP, removed some unnecessary OnPre events and fixed unloading all modules

This commit is contained in:
Adam
2011-04-27 10:56:20 -04:00
parent e7887c1f01
commit 284af258bf
11 changed files with 321 additions and 57 deletions
+18 -4
View File
@@ -2059,6 +2059,8 @@ ldap
{
server = "ldap://127.0.0.1"
port = 389
admin_binddn = "cn=Manager,dc=anope,dc=org"
admin_password = "secret"
}
/*
@@ -2075,6 +2077,12 @@ m_ldap_authentication
*/
binddn = "ou=users,dc=anope,dc=org"
/*
* The object class used by LDAP to store user account information.
* Used for adding new users to LDAP if disable_ns_register is false
*/
object_class = "anopeUser";
/*
* The attribute value used for account names.
*/
@@ -2087,14 +2095,20 @@ m_ldap_authentication
email_attribute = "email"
/*
* Enable to have this module disable /nickserv register.
* The attribute value used for passwords.
* Used when registering new accounts in LDAP.
*/
disable_ns_register = true
password_attribute = "userPassword"
/*
* The reason to give the users who try to /ns register.
* Enable to have this module disable /nickserv register.
*/
disable_ns_register = false
/*
* The reason to give the users who try to /ns register if
* disable_ns_register is enabled.
*/
disable_reason = "Registration has been disabled."
#disable_reason = "To register on this network visit http://some.misconfigured.site/register"
}