KevinTheJedi
It was one hell of a ride to decompile, make the changes, and recompile it (This website did the trick in the end: https://pmt.nathfreder.dev/extract/) but yes, that was it! Thank you very much, i would've never found this on my own.
For the record, i tried it without the first pull request you send and that did not work, only both the changes to the class.auth.php and ajax.php as well as the change to the auth-ldap.phar got it working!
So for everyone else who stumbles upon this problem before the pull requests are merged:
-Make the changes in the first linked github pull request
-Use website linked above to decompile the auth-ldap.phar
-Make the changes in the second linked github pull request
-Recompile into a .phar using the linked website
Out of curiosity, and if you have the time, could you explain what went wrong and why the change(s) i made fixed it? Because it says in the comment second pull request that the change was to get agent lookups working again, but those were fine to me, and only the user ones were not working.