Skip to content

Commit 3409cf3

Browse files
committed
Fixed LDAP issue, closes thorsten#1325
1 parent 0a4876b commit 3409cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/inc/PMF/Ldap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function connect($ldapServer, $ldapPort, $ldapBase, $ldapUser = '', $ldap
117117
// optionally set Bind version
118118
if (isset($this->_ldapConfig['ldap_options'])) {
119119
foreach ($this->_ldapConfig['ldap_options'] as $key => $value) {
120-
if (!ldap_set_option($this->ds, constant($key), $value)) {
120+
if (!ldap_set_option($this->ds, $key, $value)) {
121121
$this->errno = ldap_errno($this->ds);
122122
$this->error = sprintf(
123123
'Unable to set LDAP option "%s" to "%s" (Error: %s).',

0 commit comments

Comments
 (0)