Enable authentication if the LDAP server has multiple base DNs. Store the user's credentials in a cookie/session, and swap them out to the configured credentials when logged in.

This commit is contained in:
Deon George
2023-01-30 21:37:33 +11:00
parent 413f1ec065
commit 6751c9dd81
9 changed files with 236 additions and 24 deletions

View File

@@ -13,11 +13,11 @@ class GetBaseDNTest extends TestCase
*
* @return void
* @throws \LdapRecord\Query\ObjectNotFoundException
* @covers \App\Ldap\Entry::baseDN()
* @covers \App\Ldap\Entry::baseDNs()
*/
public function testBaseDnExists()
{
$o = (new Entry)->baseDN();
$o = (new Entry)->baseDNs();
$this->assertIsObject($o);
$this->assertCount(6,$o->toArray());