diff --git a/src/Security/Core/User/LdapUserProvider.php b/src/Security/Core/User/LdapUserProvider.php index 80a6606..c159510 100644 --- a/src/Security/Core/User/LdapUserProvider.php +++ b/src/Security/Core/User/LdapUserProvider.php @@ -50,7 +50,7 @@ public function __construct($name, Ldap $ldap, LoggerInterface $logger = null, a 'roles' => array( // role => group ), - 'class' => 'Symfony\\Component\\Security\\Core\\User\\User', + 'class' => 'Radebatz\\Silex\\LdapAuth\\Security\\Core\\User\\LdapUser', 'filter' => '(&(objectClass=user)(sAMAccountName=%s))', 'baseDn' => null, );