- A lot of work done to stabilize implemented features ; still a lot of thing to be done!

This commit is contained in:
Dave Mc Nicoll committed 2021-11-24 16:41:03 +00:00
1 parent a0363ebb71
commit b681f245c0
8 files changed
+193 -18

No files matched your search

+3 -5
View File
@@ -2,7 +2,7 @@
namespace Ulmus\Ldap\Adapter;
use Ulmus\{ Common\PdoObject, Exception\AdapterConfigurationException };
use Ulmus\{Common\PdoObject, Exception\AdapterConfigurationException, Ldap\Entity\User};
use Ulmus\Ldap\Common\LdapObject;
@@ -64,13 +64,11 @@ class Ldap implements \Ulmus\Adapter\AdapterInterface {
}
}
public function authenticate(string $username, string $password) : bool
public function authenticate(string $dn, string $password) : bool
{
$this->ldapObject = $this->getLdapObject();
$bind = $this->ldapObject->bind($username, $password);
return $bind;
return $this->ldapObject->bind($dn, $password);;
}
public function connect() : object