summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/connection.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-09-10 17:39:29 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-09-27 13:34:15 +0200
commitbb162b1f94c3966457e8b08191cd85620478c940 (patch)
tree4d99ca5e31c90eeb43fc8c105c376a3335b2e631 /apps/user_ldap/lib/connection.php
parentd4f92494a23747af545d7ebb70eaf3e417f46eaa (diff)
downloadnextcloud-server-bb162b1f94c3966457e8b08191cd85620478c940.tar.gz
nextcloud-server-bb162b1f94c3966457e8b08191cd85620478c940.zip
LDAP: get rid of some PHP Warnings
Diffstat (limited to 'apps/user_ldap/lib/connection.php')
-rw-r--r--apps/user_ldap/lib/connection.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index 0bf13a19377..053ec7e2355 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -396,7 +396,7 @@ class Connection extends LDAPUtility {
public function saveConfiguration() {
$trans = array_flip($this->getConfigTranslationArray());
foreach($this->config as $key => $value) {
- \OCP\Util::writeLog('user_ldap', 'LDAP: storing key '.$key.' value '.$value, \OCP\Util::DEBUG);
+ \OCP\Util::writeLog('user_ldap', 'LDAP: storing key '.$key.' value '.print_r($value, true), \OCP\Util::DEBUG);
switch ($key) {
case 'ldapAgentPassword':
$value = base64_encode($value);
@@ -441,6 +441,11 @@ class Connection extends LDAPUtility {
$config[$dbKey] = '';
}
continue;
+ } else if((strpos($classKey, 'ldapBase') !== false
+ || strpos($classKey, 'ldapAttributes') !== false)
+ && is_array($this->config[$classKey])) {
+ $config[$dbKey] = implode("\n", $this->config[$classKey]);
+ continue;
}
$config[$dbKey] = $this->config[$classKey];
}