From 75245bbc807b67247234c9103b162008c5b5b326 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 1 Oct 2013 07:34:03 +0200 Subject: [PATCH] allow custom field definitions in config.php --- inc/config.php.dist | 3 +++ inc/fields.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/inc/config.php.dist b/inc/config.php.dist index f12635f..8ace7f5 100644 --- a/inc/config.php.dist +++ b/inc/config.php.dist @@ -76,3 +76,6 @@ $conf['oclasses'] = array( //'evolutionPerson', //'officePerson', ); + +//custom LDAP field mappings, see inc/fields.php +$conf['customFields'] = array(); diff --git a/inc/fields.php b/inc/fields.php index 9d09743..25e0508 100644 --- a/inc/fields.php +++ b/inc/fields.php @@ -87,6 +87,9 @@ if (array_search('evolutionPerson', $conf['oclasses']) !== false) { $FIELDS['_marker'] = 'categories'; // aka. tags } +// add custom fields from config +$FIELDS = array_merge($FIELDS, $conf['customFields']); + /** * Flip the array */ -- 2.39.5