1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
<?php
// The id of the LDAP address book (which refers to the rcmail_config['ldap_public'])
// or complete addressbook definition array.
\$rcmail_config['kolab_auth_addressbook'] = Array(
'name' => 'Kolab Auth',
'hosts' => Array('localhost'),
'port' => 389,
'use_tls' => false,
'user_specific' => false,
'base_dn' => '$ldap_user_base_dn',
'bind_dn' => '$ldap_service_bind_dn',
'bind_pass' => '$ldap_service_bind_pw',
'writable' => false,
'ldap_version' => 3, // using LDAPv3
'fieldmap' => Array(
'name' => 'displayname',
'email' => 'mail',
'email:alias' => 'alias',
'role' => 'nsroledn',
),
'sort' => 'displayname',
'scope' => 'sub',
'filter' => '(objectClass=*)',
'fuzzy_search' => true,
'sizelimit' => '0',
'timelimit' => '0',
'groups' => Array(
'base_dn' => '$ldap_group_base_dn',
'filter' => '$ldap_group_filter',
'object_classes' => Array('top', 'groupOfUniqueNames'),
'member_attr' => 'uniqueMember',
),
);
// This will overwrite defined filter
\$rcmail_config['kolab_auth_filter'] = '(&' . '$ldap_user_filter' . '(|(uid=%u)(mail=%fu)(alias=%fu)))';
// Use this fields (from fieldmap configuration) to get authentication ID
\$rcmail_config['kolab_auth_login'] = 'email';
// Use this fields (from fieldmap configuration) for default identity
\$rcmail_config['kolab_auth_name'] = 'name';
\$rcmail_config['kolab_auth_alias'] = 'alias';
\$rcmail_config['kolab_auth_email'] = 'email';
if (preg_match('/\/helpdesk-login\//', \$_SERVER["REQUEST_URI"]) ) {
// Login and password of the admin user. Enables "Login As" feature.
\$rcmail_config['kolab_auth_admin_login'] = '$imap_admin_login';
\$rcmail_config['kolab_auth_admin_password'] = '$imap_admin_password';
\$rcmail_config['kolab_auth_auditlog'] = true;
}
// Administrative role field (from fieldmap configuration) which must be filled with
// specified value which adds privilege to login as another user.
\$rcmail_config['kolab_auth_role'] = 'role';
\$rcmail_config['kolab_auth_role_value'] = 'cn=kolab-admin,$ldap_base_dn';
// Administrative group name to which user must be assigned to
// which adds privilege to login as another user.
\$rcmail_config['kolab_auth_group'] = 'Kolab Helpdesk';
if (file_exists(RCMAIL_CONFIG_DIR . '/' . \$_SERVER["HTTP_HOST"] . '/' . basename(__FILE__))) {
include_once(RCMAIL_CONFIG_DIR . '/' . \$_SERVER["HTTP_HOST"] . '/' . basename(__FILE__));
}
?>
|