summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-27 10:56:20 -0400
committerAdam <Adam@anope.org>2011-05-16 04:09:07 -0400
commit284af258bf3c4dc7f409722d66bb0ac59e01e37d (patch)
tree5649a27a7a247c2609a4ef13b52a357765cbdfcc /data
parente7887c1f013248274574ab8e3167f742ccb3d69b (diff)
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
Diffstat (limited to 'data')
-rw-r--r--data/example.conf20
1 files changed, 17 insertions, 3 deletions
diff --git a/data/example.conf b/data/example.conf
index 709a7a310..24120d128 100644
--- a/data/example.conf
+++ b/data/example.conf
@@ -2059,6 +2059,8 @@ ldap
{
server = "ldap://127.0.0.1"
port = 389
+ admin_binddn = "cn=Manager,dc=anope,dc=org"
+ admin_password = "secret"
}
/*
@@ -2076,6 +2078,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.
*/
username_attribute = "uid"
@@ -2087,14 +2095,20 @@ m_ldap_authentication
email_attribute = "email"
/*
+ * The attribute value used for passwords.
+ * Used when registering new accounts in LDAP.
+ */
+ password_attribute = "userPassword"
+
+ /*
* Enable to have this module disable /nickserv register.
*/
- disable_ns_register = true
+ disable_ns_register = false
/*
- * The reason to give the users who try to /ns register.
+ * 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"
}