From 284af258bf3c4dc7f409722d66bb0ac59e01e37d Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 27 Apr 2011 10:56:20 -0400 Subject: 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 --- data/example.conf | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'data') 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" } /* @@ -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. */ @@ -2086,15 +2094,21 @@ 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" } -- cgit