]> BookStack Code Mirror - bookstack/commit
Fixed LDAP group sync using wrong user filter
authorDan Brown <redacted>
Sun, 19 Aug 2018 14:24:42 +0000 (15:24 +0100)
committerDan Brown <redacted>
Sun, 19 Aug 2018 14:24:42 +0000 (15:24 +0100)
commitd2a9b312e98128d08bfc5838c8ac72ac13d0f47a
tree3135f4a9c647e621775b7e042b98dd794ac10eea
parent01260d95f3c2c0e50dfc41ece5b2771b6047ac43
Fixed LDAP group sync using wrong user filter

LDAP group sync was trying to find users based on the external_auth_id
which is not garunteed to match the username entered so somtimes
the search for a user would fail.

This passes the username to the group sync.
Picked up by @yoyokko in #959.
app/Http/Controllers/Auth/LoginController.php
app/Services/LdapService.php