2013-09-27 00:31:57 +04:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ownCloud – LDAP Connection
|
|
|
|
|
*
|
|
|
|
|
* @author Arthur Schiwon
|
|
|
|
|
* @copyright 2012, 2013 Arthur Schiwon blizzz@owncloud.com
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 3 of the License, or any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public
|
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCA\user_ldap\lib;
|
|
|
|
|
|
|
|
|
|
class Configuration {
|
|
|
|
|
|
|
|
|
|
protected $configPrefix = null;
|
|
|
|
|
protected $configRead = false;
|
|
|
|
|
|
|
|
|
|
//settings
|
|
|
|
|
protected $config = array(
|
|
|
|
|
'ldapHost' => null,
|
|
|
|
|
'ldapPort' => null,
|
|
|
|
|
'ldapBackupHost' => null,
|
|
|
|
|
'ldapBackupPort' => null,
|
|
|
|
|
'ldapBase' => null,
|
|
|
|
|
'ldapBaseUsers' => null,
|
|
|
|
|
'ldapBaseGroups' => null,
|
|
|
|
|
'ldapAgentName' => null,
|
|
|
|
|
'ldapAgentPassword' => null,
|
|
|
|
|
'ldapTLS' => null,
|
|
|
|
|
'ldapNoCase' => null,
|
|
|
|
|
'turnOffCertCheck' => null,
|
|
|
|
|
'ldapIgnoreNamingRules' => null,
|
|
|
|
|
'ldapUserDisplayName' => null,
|
2013-10-04 18:33:37 +04:00
|
|
|
|
'ldapUserFilterObjectclass' => null,
|
2013-10-04 20:11:44 +04:00
|
|
|
|
'ldapUserFilterGroups' => null,
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldapUserFilter' => null,
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldapUserFilterMode' => null,
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldapGroupFilter' => null,
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldapGroupFilterMode' => null,
|
2013-10-10 00:00:36 +04:00
|
|
|
|
'ldapGroupFilterObjectclass' => null,
|
|
|
|
|
'ldapGroupFilterGroups' => null,
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldapGroupDisplayName' => null,
|
|
|
|
|
'ldapGroupMemberAssocAttr' => null,
|
|
|
|
|
'ldapLoginFilter' => null,
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldapLoginFilterMode' => null,
|
2013-10-09 01:47:57 +04:00
|
|
|
|
'ldapLoginFilterEmail' => null,
|
|
|
|
|
'ldapLoginFilterUsername' => null,
|
|
|
|
|
'ldapLoginFilterAttributes' => null,
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldapQuotaAttribute' => null,
|
|
|
|
|
'ldapQuotaDefault' => null,
|
|
|
|
|
'ldapEmailAttribute' => null,
|
|
|
|
|
'ldapCacheTTL' => null,
|
2013-10-17 21:40:59 +04:00
|
|
|
|
'ldapUuidUserAttribute' => 'auto',
|
|
|
|
|
'ldapUuidGroupAttribute' => 'auto',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldapOverrideMainServer' => false,
|
|
|
|
|
'ldapConfigurationActive' => false,
|
|
|
|
|
'ldapAttributesForUserSearch' => null,
|
|
|
|
|
'ldapAttributesForGroupSearch' => null,
|
|
|
|
|
'homeFolderNamingRule' => null,
|
|
|
|
|
'hasPagedResultSupport' => false,
|
2013-10-08 20:27:36 +04:00
|
|
|
|
'hasMemberOfFilterSupport' => false,
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldapExpertUsernameAttr' => null,
|
2013-10-17 21:40:59 +04:00
|
|
|
|
'ldapExpertUUIDUserAttr' => null,
|
|
|
|
|
'ldapExpertUUIDGroupAttr' => null,
|
2013-11-21 20:02:37 +04:00
|
|
|
|
'lastJpegPhotoLookup' => null,
|
2013-12-06 19:46:52 +04:00
|
|
|
|
'ldapNestedGroups' => false,
|
2013-09-27 00:31:57 +04:00
|
|
|
|
);
|
|
|
|
|
|
2014-02-06 19:30:58 +04:00
|
|
|
|
/**
|
|
|
|
|
* @param string $configPrefix
|
|
|
|
|
*/
|
2013-09-27 00:31:57 +04:00
|
|
|
|
public function __construct($configPrefix, $autoread = true) {
|
|
|
|
|
$this->configPrefix = $configPrefix;
|
|
|
|
|
if($autoread) {
|
|
|
|
|
$this->readConfiguration();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function __get($name) {
|
|
|
|
|
if(isset($this->config[$name])) {
|
|
|
|
|
return $this->config[$name];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function __set($name, $value) {
|
|
|
|
|
$this->setConfiguration(array($name => $value));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getConfiguration() {
|
|
|
|
|
return $this->config;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief set LDAP configuration with values delivered by an array, not read
|
|
|
|
|
* from configuration. It does not save the configuration! To do so, you
|
|
|
|
|
* must call saveConfiguration afterwards.
|
|
|
|
|
* @param $config array that holds the config parameters in an associated
|
|
|
|
|
* array
|
|
|
|
|
* @param &$applied optional; array where the set fields will be given to
|
2014-02-06 19:30:58 +04:00
|
|
|
|
* @return false|null
|
2013-09-27 00:31:57 +04:00
|
|
|
|
*/
|
|
|
|
|
public function setConfiguration($config, &$applied = null) {
|
|
|
|
|
if(!is_array($config)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$cta = $this->getConfigTranslationArray();
|
|
|
|
|
foreach($config as $inputkey => $val) {
|
2014-03-21 18:29:49 +04:00
|
|
|
|
if(strpos($inputkey, '_') !== false && array_key_exists($inputkey, $cta)) {
|
2013-09-27 00:31:57 +04:00
|
|
|
|
$key = $cta[$inputkey];
|
2014-03-21 18:29:49 +04:00
|
|
|
|
} elseif(array_key_exists($inputkey, $this->config)) {
|
2013-09-27 00:31:57 +04:00
|
|
|
|
$key = $inputkey;
|
|
|
|
|
} else {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$setMethod = 'setValue';
|
|
|
|
|
switch($key) {
|
|
|
|
|
case 'homeFolderNamingRule':
|
|
|
|
|
if(!empty($val) && strpos($val, 'attr:') === false) {
|
|
|
|
|
$val = 'attr:'.$val;
|
|
|
|
|
}
|
2013-12-13 02:09:31 +04:00
|
|
|
|
break;
|
2013-09-27 00:31:57 +04:00
|
|
|
|
case 'ldapBase':
|
|
|
|
|
case 'ldapBaseUsers':
|
|
|
|
|
case 'ldapBaseGroups':
|
|
|
|
|
case 'ldapAttributesForUserSearch':
|
|
|
|
|
case 'ldapAttributesForGroupSearch':
|
2013-10-04 18:33:37 +04:00
|
|
|
|
case 'ldapUserFilterObjectclass':
|
2013-10-04 20:11:44 +04:00
|
|
|
|
case 'ldapUserFilterGroups':
|
2013-10-10 00:00:36 +04:00
|
|
|
|
case 'ldapGroupFilterObjectclass':
|
|
|
|
|
case 'ldapGroupFilterGroups':
|
2013-10-09 01:47:57 +04:00
|
|
|
|
case 'ldapLoginFilterAttributes':
|
2013-09-27 00:31:57 +04:00
|
|
|
|
$setMethod = 'setMultiLine';
|
2013-12-13 02:09:31 +04:00
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
$this->$setMethod($key, $val);
|
|
|
|
|
if(is_array($applied)) {
|
|
|
|
|
$applied[] = $inputkey;
|
2013-09-27 00:31:57 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function readConfiguration() {
|
|
|
|
|
if(!$this->configRead && !is_null($this->configPrefix)) {
|
|
|
|
|
$cta = array_flip($this->getConfigTranslationArray());
|
|
|
|
|
foreach($this->config as $key => $val) {
|
|
|
|
|
if(!isset($cta[$key])) {
|
|
|
|
|
//some are determined
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
$dbkey = $cta[$key];
|
|
|
|
|
switch($key) {
|
|
|
|
|
case 'ldapBase':
|
|
|
|
|
case 'ldapBaseUsers':
|
|
|
|
|
case 'ldapBaseGroups':
|
|
|
|
|
case 'ldapAttributesForUserSearch':
|
|
|
|
|
case 'ldapAttributesForGroupSearch':
|
2013-10-04 18:33:37 +04:00
|
|
|
|
case 'ldapUserFilterObjectclass':
|
2013-10-04 20:11:44 +04:00
|
|
|
|
case 'ldapUserFilterGroups':
|
2013-10-10 00:00:36 +04:00
|
|
|
|
case 'ldapGroupFilterObjectclass':
|
|
|
|
|
case 'ldapGroupFilterGroups':
|
2013-10-09 01:47:57 +04:00
|
|
|
|
case 'ldapLoginFilterAttributes':
|
2013-09-27 00:31:57 +04:00
|
|
|
|
$readMethod = 'getMultiLine';
|
|
|
|
|
break;
|
|
|
|
|
case 'ldapIgnoreNamingRules':
|
|
|
|
|
$readMethod = 'getSystemValue';
|
|
|
|
|
$dbkey = $key;
|
|
|
|
|
break;
|
|
|
|
|
case 'ldapAgentPassword':
|
|
|
|
|
$readMethod = 'getPwd';
|
|
|
|
|
break;
|
|
|
|
|
case 'ldapUserDisplayName':
|
|
|
|
|
case 'ldapGroupDisplayName':
|
|
|
|
|
$readMethod = 'getLcValue';
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
$readMethod = 'getValue';
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
$this->config[$key] = $this->$readMethod($dbkey);
|
|
|
|
|
}
|
|
|
|
|
$this->configRead = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief saves the current Configuration in the database
|
|
|
|
|
*/
|
|
|
|
|
public function saveConfiguration() {
|
|
|
|
|
$cta = array_flip($this->getConfigTranslationArray());
|
|
|
|
|
foreach($this->config as $key => $value) {
|
|
|
|
|
switch ($key) {
|
|
|
|
|
case 'ldapAgentPassword':
|
|
|
|
|
$value = base64_encode($value);
|
|
|
|
|
break;
|
|
|
|
|
case 'ldapBase':
|
|
|
|
|
case 'ldapBaseUsers':
|
|
|
|
|
case 'ldapBaseGroups':
|
|
|
|
|
case 'ldapAttributesForUserSearch':
|
|
|
|
|
case 'ldapAttributesForGroupSearch':
|
2013-10-04 18:33:37 +04:00
|
|
|
|
case 'ldapUserFilterObjectclass':
|
2013-10-04 20:11:44 +04:00
|
|
|
|
case 'ldapUserFilterGroups':
|
2013-10-10 00:00:36 +04:00
|
|
|
|
case 'ldapGroupFilterObjectclass':
|
|
|
|
|
case 'ldapGroupFilterGroups':
|
2013-10-09 01:47:57 +04:00
|
|
|
|
case 'ldapLoginFilterAttributes':
|
2013-09-27 00:31:57 +04:00
|
|
|
|
if(is_array($value)) {
|
|
|
|
|
$value = implode("\n", $value);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
//following options are not stored but detected, skip them
|
|
|
|
|
case 'ldapIgnoreNamingRules':
|
|
|
|
|
case 'hasPagedResultSupport':
|
2013-10-17 21:40:59 +04:00
|
|
|
|
case 'ldapUuidUserAttribute':
|
|
|
|
|
case 'ldapUuidGroupAttribute':
|
2013-09-27 00:31:57 +04:00
|
|
|
|
continue 2;
|
|
|
|
|
}
|
|
|
|
|
if(is_null($value)) {
|
|
|
|
|
$value = '';
|
|
|
|
|
}
|
|
|
|
|
$this->saveValue($cta[$key], $value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getMultiLine($varname) {
|
|
|
|
|
$value = $this->getValue($varname);
|
|
|
|
|
if(empty($value)) {
|
|
|
|
|
$value = '';
|
|
|
|
|
} else {
|
|
|
|
|
$value = preg_split('/\r\n|\r|\n/', $value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function setMultiLine($varname, $value) {
|
|
|
|
|
if(empty($value)) {
|
|
|
|
|
$value = '';
|
2013-10-24 16:27:33 +04:00
|
|
|
|
} else if (!is_array($value)) {
|
2013-09-27 00:31:57 +04:00
|
|
|
|
$value = preg_split('/\r\n|\r|\n/', $value);
|
2013-10-17 22:58:43 +04:00
|
|
|
|
if($value === false) {
|
|
|
|
|
$value = '';
|
|
|
|
|
}
|
2013-09-27 00:31:57 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->setValue($varname, $value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getPwd($varname) {
|
|
|
|
|
return base64_decode($this->getValue($varname));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getLcValue($varname) {
|
|
|
|
|
return mb_strtolower($this->getValue($varname), 'UTF-8');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getSystemValue($varname) {
|
|
|
|
|
//FIXME: if another system value is added, softcode the default value
|
|
|
|
|
return \OCP\Config::getSystemValue($varname, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function getValue($varname) {
|
|
|
|
|
static $defaults;
|
|
|
|
|
if(is_null($defaults)) {
|
|
|
|
|
$defaults = $this->getDefaults();
|
|
|
|
|
}
|
|
|
|
|
return \OCP\Config::getAppValue('user_ldap',
|
|
|
|
|
$this->configPrefix.$varname,
|
|
|
|
|
$defaults[$varname]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function setValue($varname, $value) {
|
|
|
|
|
$this->config[$varname] = $value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function saveValue($varname, $value) {
|
|
|
|
|
return \OCP\Config::setAppValue('user_ldap',
|
|
|
|
|
$this->configPrefix.$varname,
|
|
|
|
|
$value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @returns an associative array with the default values. Keys are correspond
|
|
|
|
|
* to config-value entries in the database table
|
|
|
|
|
*/
|
|
|
|
|
public function getDefaults() {
|
|
|
|
|
return array(
|
|
|
|
|
'ldap_host' => '',
|
2013-10-10 21:37:12 +04:00
|
|
|
|
'ldap_port' => '',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldap_backup_host' => '',
|
|
|
|
|
'ldap_backup_port' => '',
|
|
|
|
|
'ldap_override_main_server' => '',
|
|
|
|
|
'ldap_dn' => '',
|
|
|
|
|
'ldap_agent_password' => '',
|
|
|
|
|
'ldap_base' => '',
|
|
|
|
|
'ldap_base_users' => '',
|
|
|
|
|
'ldap_base_groups' => '',
|
2013-10-10 21:37:12 +04:00
|
|
|
|
'ldap_userlist_filter' => '',
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldap_user_filter_mode' => 0,
|
2013-10-04 18:33:37 +04:00
|
|
|
|
'ldap_userfilter_objectclass' => '',
|
2013-10-04 20:11:44 +04:00
|
|
|
|
'ldap_userfilter_groups' => '',
|
2013-12-03 15:11:43 +04:00
|
|
|
|
'ldap_login_filter' => '',
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldap_login_filter_mode' => 0,
|
2013-10-09 01:47:57 +04:00
|
|
|
|
'ldap_loginfilter_email' => 0,
|
|
|
|
|
'ldap_loginfilter_username' => 1,
|
|
|
|
|
'ldap_loginfilter_attributes' => '',
|
2013-10-10 21:37:12 +04:00
|
|
|
|
'ldap_group_filter' => '',
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldap_group_filter_mode' => 0,
|
2013-10-10 00:00:36 +04:00
|
|
|
|
'ldap_groupfilter_objectclass' => '',
|
|
|
|
|
'ldap_groupfilter_groups' => '',
|
2013-10-10 01:27:20 +04:00
|
|
|
|
'ldap_display_name' => 'displayName',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldap_group_display_name' => 'cn',
|
|
|
|
|
'ldap_tls' => 1,
|
|
|
|
|
'ldap_nocase' => 0,
|
|
|
|
|
'ldap_quota_def' => '',
|
|
|
|
|
'ldap_quota_attr' => '',
|
|
|
|
|
'ldap_email_attr' => '',
|
|
|
|
|
'ldap_group_member_assoc_attribute' => 'uniqueMember',
|
|
|
|
|
'ldap_cache_ttl' => 600,
|
2013-10-17 21:40:59 +04:00
|
|
|
|
'ldap_uuid_user_attribute' => 'auto',
|
|
|
|
|
'ldap_uuid_group_attribute' => 'auto',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'home_folder_naming_rule' => '',
|
|
|
|
|
'ldap_turn_off_cert_check' => 0,
|
2013-10-10 21:37:12 +04:00
|
|
|
|
'ldap_configuration_active' => 0,
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldap_attributes_for_user_search' => '',
|
|
|
|
|
'ldap_attributes_for_group_search' => '',
|
|
|
|
|
'ldap_expert_username_attr' => '',
|
2013-10-17 21:40:59 +04:00
|
|
|
|
'ldap_expert_uuid_user_attr' => '',
|
|
|
|
|
'ldap_expert_uuid_group_attr' => '',
|
2013-10-08 20:27:36 +04:00
|
|
|
|
'has_memberof_filter_support' => 0,
|
2013-11-21 20:02:37 +04:00
|
|
|
|
'last_jpegPhoto_lookup' => 0,
|
2013-12-06 19:46:52 +04:00
|
|
|
|
'ldap_nested_groups' => 0,
|
2013-09-27 00:31:57 +04:00
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @return returns an array that maps internal variable names to database fields
|
|
|
|
|
*/
|
|
|
|
|
public function getConfigTranslationArray() {
|
|
|
|
|
//TODO: merge them into one representation
|
|
|
|
|
static $array = array(
|
|
|
|
|
'ldap_host' => 'ldapHost',
|
|
|
|
|
'ldap_port' => 'ldapPort',
|
|
|
|
|
'ldap_backup_host' => 'ldapBackupHost',
|
|
|
|
|
'ldap_backup_port' => 'ldapBackupPort',
|
|
|
|
|
'ldap_override_main_server' => 'ldapOverrideMainServer',
|
|
|
|
|
'ldap_dn' => 'ldapAgentName',
|
|
|
|
|
'ldap_agent_password' => 'ldapAgentPassword',
|
|
|
|
|
'ldap_base' => 'ldapBase',
|
|
|
|
|
'ldap_base_users' => 'ldapBaseUsers',
|
|
|
|
|
'ldap_base_groups' => 'ldapBaseGroups',
|
2013-10-04 18:33:37 +04:00
|
|
|
|
'ldap_userfilter_objectclass' => 'ldapUserFilterObjectclass',
|
2013-10-04 20:11:44 +04:00
|
|
|
|
'ldap_userfilter_groups' => 'ldapUserFilterGroups',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldap_userlist_filter' => 'ldapUserFilter',
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldap_user_filter_mode' => 'ldapUserFilterMode',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldap_login_filter' => 'ldapLoginFilter',
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldap_login_filter_mode' => 'ldapLoginFilterMode',
|
2013-10-09 01:47:57 +04:00
|
|
|
|
'ldap_loginfilter_email' => 'ldapLoginFilterEmail',
|
|
|
|
|
'ldap_loginfilter_username' => 'ldapLoginFilterUsername',
|
|
|
|
|
'ldap_loginfilter_attributes' => 'ldapLoginFilterAttributes',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldap_group_filter' => 'ldapGroupFilter',
|
2013-11-20 02:58:08 +04:00
|
|
|
|
'ldap_group_filter_mode' => 'ldapGroupFilterMode',
|
2013-10-10 00:00:36 +04:00
|
|
|
|
'ldap_groupfilter_objectclass' => 'ldapGroupFilterObjectclass',
|
|
|
|
|
'ldap_groupfilter_groups' => 'ldapGroupFilterGroups',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
'ldap_display_name' => 'ldapUserDisplayName',
|
|
|
|
|
'ldap_group_display_name' => 'ldapGroupDisplayName',
|
|
|
|
|
'ldap_tls' => 'ldapTLS',
|
|
|
|
|
'ldap_nocase' => 'ldapNoCase',
|
|
|
|
|
'ldap_quota_def' => 'ldapQuotaDefault',
|
|
|
|
|
'ldap_quota_attr' => 'ldapQuotaAttribute',
|
|
|
|
|
'ldap_email_attr' => 'ldapEmailAttribute',
|
|
|
|
|
'ldap_group_member_assoc_attribute' => 'ldapGroupMemberAssocAttr',
|
|
|
|
|
'ldap_cache_ttl' => 'ldapCacheTTL',
|
|
|
|
|
'home_folder_naming_rule' => 'homeFolderNamingRule',
|
|
|
|
|
'ldap_turn_off_cert_check' => 'turnOffCertCheck',
|
|
|
|
|
'ldap_configuration_active' => 'ldapConfigurationActive',
|
|
|
|
|
'ldap_attributes_for_user_search' => 'ldapAttributesForUserSearch',
|
|
|
|
|
'ldap_attributes_for_group_search' => 'ldapAttributesForGroupSearch',
|
|
|
|
|
'ldap_expert_username_attr' => 'ldapExpertUsernameAttr',
|
2013-10-24 16:16:58 +04:00
|
|
|
|
'ldap_expert_uuid_user_attr' => 'ldapExpertUUIDUserAttr',
|
2013-10-17 21:40:59 +04:00
|
|
|
|
'ldap_expert_uuid_group_attr' => 'ldapExpertUUIDGroupAttr',
|
2013-10-08 20:27:36 +04:00
|
|
|
|
'has_memberof_filter_support' => 'hasMemberOfFilterSupport',
|
2013-11-21 20:02:37 +04:00
|
|
|
|
'last_jpegPhoto_lookup' => 'lastJpegPhotoLookup',
|
2013-12-06 19:46:52 +04:00
|
|
|
|
'ldap_nested_groups' => 'ldapNestedGroups',
|
2013-09-27 00:31:57 +04:00
|
|
|
|
);
|
|
|
|
|
return $array;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|