Need help with AUTH via LDAP (MS Active Directory)

22 views
Skip to first unread message

Manne Hoffmann

unread,
Jun 14, 2022, 10:55:24 AM6/14/22
to Fat-Free Framework
Hello there at f3-group,
I am trying to use f3's LDAP-AUTH in an MS ActiveDirectory environment.

$auth = new \Auth ('ldap', [ 'dc' => $f3->get('ldap.HOST'), 'base_dn' => $f3->get('ldap.BASEDN'), 'rdn' => $f3->get('ldap.USERNAME'), 'pw' => $f3->get('ldap.PASSWORD') ] ); if ($auth->login($id, $pw)) { // login successful }

But all I get is an HTTP 500 with "LDAP connection failure"

If I provide a wrong password for ldap.PASSWD I get:
ldap_bind(): Unable to bind to server: Invalid credentials

Can anyone point me in the right direction ?



I already have 2 other sites running in our intranet (one based on Joomla, the other one based on Kanboard) and both use LDAP-auth without problems!
Reply all
Reply to author
Forward
0 new messages