From 905207093b89a3c71ee3732d051555870c4d39f5 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 3 Apr 2011 18:07:58 -0400 Subject: Made LDAP support recover, release, resetpass, etc. --- data/example.conf | 77 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 39 insertions(+), 38 deletions(-) (limited to 'data') diff --git a/data/example.conf b/data/example.conf index a677e3067..f05969403 100644 --- a/data/example.conf +++ b/data/example.conf @@ -2024,7 +2024,7 @@ m_helpchan /* * m_ldap * - * This module allows other modules to use LDAP. + * This module allows other modules to use LDAP. By itself, this module does nothing useful. */ #module { name = "m_ldap" } ldap @@ -2033,11 +2033,48 @@ ldap port = 389 } +/* + * m_ldap_authentication + * + * This module allows many commands such as IDENTIFY, RELEASE, RECOVER, GHOST, etc. use + * LDAP to authenticate users. Requires m_ldap. +*/ +#module { name = "m_ldap_authentication" } +m_ldap_authentication +{ + /* + * The distinguished name we should bind to when a user tries to identify. + */ + binddn = "ou=users,dc=anope,dc=org" + + /* + * The attribute value used for account names. + */ + username_attribute = "uid" + + /* + * The attribute value used for email addresses. + * This directive is optional. + */ + email_attribute = "email" + + /* + * Enable to have this module disable /nickserv register. + */ + disable_ns_register = true + + /* + * The reason to give the users who try to /ns register. + */ + disable_reason = "Registration has been disabled." + #disable_reason = "To register on this network visit http://some.misconfigured.site/register" +} + /* * m_ldap_oper * * This module dynamically ties users to Anope opertypes when they identify - * via LDAP group membership. + * via LDAP group membership. Requires m_ldap. * * Note that this doesn't give the user privileges on the IRCd, only in Services. */ @@ -2128,42 +2165,6 @@ m_xmlrpc */ #module { name = "m_xmlrpc_main" } -/* - * ns_identify_ldap - * - * Allows you to use a LDAP server for authentication of users. - */ -#module { name = "ns_identify_ldap" } -ns_identify_ldap -{ - /* - * The distinguished name we should bind to when a user tries to identify. - */ - binddn = "ou=users,dc=anope,dc=org" - - /* - * The attribute value used for account names. - */ - username_attribute = "uid" - - /* - * The attribute value used for email addresses. - * This directive is optional. - */ - email_attribute = "email" - - /* - * Enable to have this module disable /nickserv register. - */ - disable_ns_register = true - - /* - * The reason to give the users who try to /ns register. - */ - disable_reason = "Registration has been disabled." - #disable_reason = "To register on this network visit http://some.misconfigured.site/register" -} - /* * ns_maxemail * -- cgit