dataset/seed/roundcube/templates/domain.inc.php

55 lines
1.6 KiB
PHP
Raw Normal View History

2022-05-07 08:11:18 +02:00
<?php
#>GNUNUX
2023-06-23 08:12:05 +02:00
{% set domain = general.roundcube.roundcube_domain.roundcube_domains[rougail_index] %}
$config['login_username_filter'] = '/^[a-z0-9_]+@{{ domain.roundcube_mail_domain }}$/';
{% set family = domain.roundcube_family %}
{% if family %}
2022-05-07 08:11:18 +02:00
$config['ldap_public'] = array (
'Local' => array (
'name' => "Ma famille",
'hosts' => array (
2023-06-23 08:12:05 +02:00
0 => 'ldaps://{{ general.ldap.server.ldap_server_address }}',
2022-05-07 08:11:18 +02:00
),
'port' => 636,
'use_tls' => false,
'bind_user' => '',
2023-06-23 08:12:05 +02:00
'bind_dn' => '{{ general.ldap.client.ldapclient_user }}',
'bind_pass' => '{{ general.ldap.client.ldapclient_user_password }}',
2022-05-07 08:11:18 +02:00
'auth_method' => '',
'vlv' => false, //Samba do not support Virtual List View functions
'user_specific' => false,
2023-06-23 08:12:05 +02:00
'base_dn' => '{{ ldapclient_base_dn|calc_ldapclient_base_dn(family_name=family) }}',
2022-05-07 08:11:18 +02:00
'writable' => false,
'required_fields' => array (
0 => 'cn',
1 => 'sn',
2 => 'mail',
3 => 'uid',
),
'groups' => array(
'base_dn' => '',
'object_classes' => ['top', 'groupOfNames'],
),
'LDAP_rdn' => 'mail',
'ldap_version' => 3,
'search_fields' => array ('mail', 'cn', 'sn', 'givenName'),
'name_field' => 'cn',
'email_field' => 'mail',
'surname_field' => 'sn',
'firstname_field' => 'gn',
'sort' => 'cn',
'scope' => 'sub',
'filter' => '(mail=*)',
'fuzzy_search' => true,
'fieldmap' => array(
'name' => 'cn',
'surname' => 'sn',
'firstname' => 'givenName',
'email' => 'mail',
),
),
);
2023-06-23 08:12:05 +02:00
{% endif %}
2022-05-07 08:11:18 +02:00
#<GNUNUX
?>