diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-07 17:12:01 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-07 17:12:01 +0100 |
commit | 0487b541a016be8be24114d494f9abc752abd748 (patch) | |
tree | 3057cefeed50009fdf8a1c5d4dce9713d9af3fe8 /apps/user_ldap | |
parent | d43d95e0fdffbb73329f9fd03aa89d35133bf0ee (diff) | |
parent | 5d3183afcdeb5cde648a40ba4ef0b2389c20d90e (diff) | |
download | nextcloud-server-0487b541a016be8be24114d494f9abc752abd748.tar.gz nextcloud-server-0487b541a016be8be24114d494f9abc752abd748.zip |
Merge pull request #22880 from owncloud/fix-21656
improve log output when no LDAP user was found on login attempt
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/connection.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/user_ldap.php | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php index fc6df5fc602..d5b4936b68b 100644 --- a/apps/user_ldap/lib/connection.php +++ b/apps/user_ldap/lib/connection.php @@ -34,6 +34,8 @@ use OC\ServerNotAvailableException; * magic properties (incomplete) * responsible for LDAP connections in context with the provided configuration * + * @property string ldapHost + * @property string ldapPort holds the port number * @property string ldapUserFilter * @property string ldapUserDisplayName * @property string ldapUserDisplayName2 diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 865b7e61892..26d3429818f 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -102,7 +102,8 @@ class USER_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn $attrs = $this->access->userManager->getAttributes(); $users = $this->access->fetchUsersByLoginName($loginName, $attrs, 1); if(count($users) < 1) { - throw new \Exception('No user available for the given login name.'); + throw new \Exception('No user available for the given login name on ' . + $this->access->connection->ldapHost . ':' . $this->access->connection->ldapPort); } return $users[0]; } |