2.0/Modules/m ldap oper

From AnopeWiki
Revision as of 15:31, 13 May 2014 by Azander (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language

English

Section Database
Module m_ldap_authentication
Author Anope

Description

This module dynamically ties users to Anope opertypes when they identify via LDAP group membership.

  • Requires module m_ldap.
name= 
Name of module
binddn= 
An optional binddn to use when searching for groups.
password= 
An optional binddn to use when searching for groups.
basedb= 
The base DN where the groups are.
filter= 
The filter/query to use when searching for users.
opertype_attribute= 
The attribute of the group that is the name of the opertype.


Default Configuration

/*
 * m_ldap_oper [EXTRA]
 *
 * This module dynamically ties users to Anope opertypes when they identify
 * via LDAP group membership. Requires m_ldap.
 *
 * Note that this doesn't give the user privileges on the IRCd, only in Services.
 */
#module
{
        name = "m_ldap_oper"
 
        /*
         * An optional binddn to use when searching for groups.
         * %a is replaced with the account name of the user.
         */
        #binddn = "cn=Manager,dc=anope,dc=org"
 
        /*
         * An optional password to bind with.
         */
        #password = "secret"
 
        /*
         * The base DN where the groups are.
         */
        basedn = "ou=groups,dc=anope,dc=org"
 
        /*
         * The filter to use when searching for users.
         * %a is replaced with the account name of the user.
         */
        filter = "(member=uid=%a,ou=users,dc=anope,dc=org)"
 
        /*
         * The attribute of the group that is the name of the opertype.
         * The cn attribute should match a known opertype in the config.
         */
        opertype_attribute = "cn"
}