1 |
diff -Nur old-smeserver-roundcube-0.9/root/etc/e-smith/templates/opt/roundcube/config/main.inc.php/30Ldap_addressbook smeserver-roundcube-0.9/root/etc/e-smith/templates/opt/roundcube/config/main.inc.php/30Ldap_addressbook |
2 |
--- old-smeserver-roundcube-0.9/root/etc/e-smith/templates/opt/roundcube/config/main.inc.php/30Ldap_addressbook 1970-01-01 01:00:00.000000000 +0100 |
3 |
+++ smeserver-roundcube-0.9/root/etc/e-smith/templates/opt/roundcube/config/main.inc.php/30Ldap_addressbook 2013-10-05 01:06:48.000000000 +0200 |
4 |
@@ -0,0 +1,27 @@ |
5 |
+$rcmail_config['login_lc'] = 2; |
6 |
+$rcmail_config['ldap_public']['Local_LDAP'] = array('hosts' => array('localhost'), |
7 |
+ 'port' => 389, |
8 |
+{ |
9 |
+ $OUT .= " 'base_dn' \=\> " ."'". esmith::util::ldapBase($DomainName)."',"; |
10 |
+} |
11 |
+ 'search_fields' => array('Email' => 'mail', 'Name' => 'cn'), |
12 |
+ 'name_field' => 'cn', |
13 |
+ 'email_field' => 'mail', |
14 |
+ 'jobtitle_field' => 'title', |
15 |
+ 'phone:work_field' => 'telephoneNumber', |
16 |
+ 'street_field' => 'street', |
17 |
+ 'zipcode_field' => 'postalCode', |
18 |
+ 'region_field' => 'st', |
19 |
+ 'locality_field' => 'l', |
20 |
+ 'country_field' => 'c', |
21 |
+ 'organization_field' => 'o', |
22 |
+ 'department_field' => 'ou', |
23 |
+ 'scope' => 'sub', |
24 |
+ 'fuzzy_search' => 1); |
25 |
+ |
26 |
+{ |
27 |
+ $OUT .= "\$rcmail_config['autocomplete_addressbooks'] = array('sql','Local_LDAP');"; |
28 |
+ |
29 |
+} |
30 |
+ |
31 |
+ |