summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-06-25 18:08:05 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-08-29 11:14:36 +0200
commit34761dabb17a2ee06924f34679316c7889b456a7 (patch)
tree53d018ba2c5fbb40562e676a7318055b4350918b
parentf47a4a8c158f538d5febedec7282f576360a4d02 (diff)
downloadnextcloud-server-34761dabb17a2ee06924f34679316c7889b456a7.tar.gz
nextcloud-server-34761dabb17a2ee06924f34679316c7889b456a7.zip
write log message, if original value was changed
-rw-r--r--apps/user_ldap/lib/wizard.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/wizard.php b/apps/user_ldap/lib/wizard.php
index 36b855e83f6..8e6e47b1f6b 100644
--- a/apps/user_ldap/lib/wizard.php
+++ b/apps/user_ldap/lib/wizard.php
@@ -172,6 +172,9 @@ class Wizard extends LDAPUtility {
if($count > 0) {
return false;
}
+ $writeLog = true;
+ } else {
+ $writeLog = false;
}
$emailAttributes = array('mail', 'mailPrimaryAddress');
@@ -187,6 +190,11 @@ class Wizard extends LDAPUtility {
if($winner !== '') {
$this->result->addChange('ldap_email_attr', $winner);
+ if($writeLog) {
+ \OCP\Util::writeLog('user_ldap', 'The mail attribute has ' .
+ 'automatically been reset, because the original value ' .
+ 'did not return any results.', \OCP\Util::INFO);
+ }
}
return $winner;