Authenticate user with the correct LDAP branch
When using LDAP with multiple branches, you first have to retrieve user branch using uid and bind it using this branch. If no branch is found, try to authenticate with the base_peoplebranch defined in the config file.
This pull request concerns Slurm-web v2 which is not maintained anymore. You are highly encouraged to test the new version v3.0.0 that is officially maintained. The quick start guide for v3.0.0 is available online: https://docs.rackslab.io/slurm-web/install/quickstart.html
Unless someone is motivated to maintain the old version of Slurm-web or you have a justified reason to keep this pull request open, it will be closed in a few weeks.
For the reasons explained in the previous comment, I finally close this PR.