Skip to content

LDAP constants problem #1130

Closed
Closed
@trashcan

Description

@trashcan

This commit seems to have broken LDAP auth for some users: 29885de

The key and value are passed to ldap_set_option which expects the key to be a constant, not a string.

                if (! ldap_set_option($this->ds, $key, $value)) {

For reference: http://php.net/ldap_set_option

It causes this runtime warning as well:

phpMyFAQ warning [2]: ldap_set_option() expects parameter 2 to be long, string given in /home/kb/knowledge-base/inc/PMF/Ldap.php on line 124

Hope that helps.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions