]> BookStack Code Mirror - bookstack/commit
LDAP: Fixed php type error when no cn provided for user
authorDan Brown <redacted>
Thu, 20 Feb 2025 13:06:49 +0000 (13:06 +0000)
committerDan Brown <redacted>
Thu, 20 Feb 2025 13:06:49 +0000 (13:06 +0000)
commit35b45a2b8d81e60401c1409744c967b5ca551989
tree1d5772d17c49ad9836a41fc3dbe6574230421d9f
parent3b4d3430a54a90a3926e7c029535dd74e7726ad9
LDAP: Fixed php type error when no cn provided for user

Changes default fallback for name to first DN part, otherwise the whole
DN, rather than leave as null which was causing a type error.

For #5443
app/Access/LdapService.php
tests/Auth/LdapTest.php