Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 906be7e

Browse files
Merge pull request #65 from pajavyskocil/fix_bad_error_message
Fixed bad error message when the process of bind user to LDAP failed
2 parents e59b18a + a24e149 commit 906be7e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
1010

1111
#### Fixed
1212
- Fixed the problem that IDP filter on WAYF didn't work correctly
13+
- Fixed bad error message when the process of bind user to LDAP failed
1314

1415
## [v3.1.1]
1516
#### Fixed

lib/LdapConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function search($base, $filter, $attributes = null)
110110
ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
111111

112112
if (ldap_bind($conn, $this->user, $this->password) === false) {
113-
throw new Exception('Unable to connect to the Perun LDAP, ' . $this->hostname);
113+
throw new Exception('Unable to bind user to the Perun LDAP, ' . $this->hostname);
114114
}
115115

116116
Logger::debug("sspmod_perun_LdapConnector.search - Connection to Perun LDAP established. " .

0 commit comments

Comments
 (0)