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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user