DOKK / manpages / debian 12 / mtpolicyd / Mail::MtPolicyd::Plugin::LdapUserConfig.3pm.en
Mail::MtPolicyd::Plugin::LdapUserConfig(3pm) User Contributed Perl Documentation Mail::MtPolicyd::Plugin::LdapUserConfig(3pm)

Mail::MtPolicyd::Plugin::LdapUserConfig - mtpolicyd plugin for retrieving per user configuration from LDAP

version 2.05

  ldap_host="localhost"
  ldap_binddn="cn=readonly,dc=domain,dc=com"
  ldap_password="secret"
  <Plugin user_config>
    module="LdapUserConfig"
    basedn="ou=users,dc=domain,dc=com"
    filter="(mail=%s)"
    filter_field="sasl_username"
    config_fields="mailMessageLimit,mailSendExternal"
  </Plugin>

This plugin could be used to retrieve session variables/user configuration from a LDAP server.

The LDAP connection must be configured in the global configuration section of mtpolicyd. See mtpolicyd.

The basedn to use for the search.
The filter to use for the search.

The pattern %s will be replaced with the content of filter_field.

The content of this request field will be used to replace %s in the filter string.
A comma separated list of LDAP attributes to retrieve and copy into the current mtpolicyd session.

Markus Benning <ich@markusbenning.de>

This software is Copyright (c) 2014 by Markus Benning <ich@markusbenning.de>.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991
2022-10-15 perl v5.34.0