Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slackbuilds/n/horde-groupware/horde-groupware-1.2.9-turba...

85 lines
3.1 KiB

diff -Naur horde-groupware-1.2.9.orig/turba/config/sources.php horde-groupware-1.2.9/turba/config/sources.php
--- horde-groupware-1.2.9.orig/turba/config/sources.php 2010-11-23 02:06:27.000000000 +0100
+++ horde-groupware-1.2.9/turba/config/sources.php 2011-03-03 14:54:55.606880162 +0100
@@ -300,3 +300,81 @@
'list_name_field' => 'lastname',
'alternative_name' => 'company',
);
+
+/**
+ * Personal addressbook in LDAP backend.
+ */
+$cfgSources['personal_ldap'] = array(
+ 'title' => _("My Address Book"),
+ 'type' => 'ldap',
+ 'params' => array(
+ 'server' => 'localhost',
+ 'tls' => false,
+ 'root' => 'ou=rootdn,dc=example,dc=com',
+ 'bind_dn' => 'uid=' . Auth::getBareAuth() . ',dc=example,dc=com',
+ 'bind_password' => Auth::getCredentials('password'),
+ 'dn' => array('cn'),
+ 'objectClass' => array(
+ 'top',
+ 'person',
+ 'organizationalPerson',
+ 'inetOrgPerson',
+ 'x-incenp-contact'
+ ),
+ 'scope' => 'one',
+ 'charset' => 'utf-8',
+ 'version' => 3
+ ),
+ 'map' => array(
+ '__key' => 'dn',
+ '__uid' => 'uid',
+ 'name' => 'cn',
+ 'lastname' => 'sn',
+ 'firstname' => 'givenname',
+ 'title' => 'title',
+ 'emails' => 'mail',
+ 'company' => 'o',
+ 'department' => 'ou',
+ 'office' => 'roomnumber',
+ 'worhPhone' => 'telephonenumber',
+ 'homePhone' => 'homePhone',
+ 'cellPhone' => 'mobile',
+ 'fax' => 'facsimiletelephonenumber',
+ 'businessCategory' => 'businesscategory',
+ 'workAddress' => 'postaladdress',
+ 'workStreet' => 'street',
+ 'workPOBox' => 'postofficebox',
+ 'workPostalCode' => 'postalcode',
+ 'workCity' => 'l',
+ 'workProvince' => 'st',
+ 'workCountry' => 'c',
+ 'homeAddress' => 'homepostaladdress',
+ 'homeStreet' => 'x-incenp-homestreet',
+ 'homePOBox' => 'x-incenp-homepostofficebox',
+ 'homePostalCode' => 'x-incenp-homepostalcode',
+ 'homeCity' => 'x-incenp-homelocalityname',
+ 'homeProvince' => 'x-incenp-homestateorprovincename',
+ 'homeCountry' => 'x-incenp-homecountry',
+ 'notes' => 'description',
+ 'nickname' => 'displayname',
+ 'website' => 'labeleduri',
+ 'pgpPublicKey' => 'x-incenp-pgppublickey'
+ ),
+ 'search' => array(
+ 'name',
+ 'email',
+ 'businessCategory',
+ 'title',
+ 'homePhone',
+ 'workPhone',
+ 'cellPhone'
+ ),
+ 'strict' => array(
+ 'dn'
+ ),
+ 'approximate' => array(
+ 'dn'
+ ),
+ 'export' => true,
+ 'browse' => true
+);