- md5
- d52b65e0f7831c6ca348753cea80d135
- sha1
- e7a0faf4f601f186ef4e35b043c01a622fa98d45
- sha256
- 257d0a899c79e97b35e56f8a86180d5eb93fbd8486a3d46449a6fa79d8e07aad
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Ldap\Security;
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
/**
* A badge indicating that the credentials should be checked using LDAP.
*
* This badge must be used together with PasswordCredentials.
*
* @author Wouter de Jong <[email protected]>
*
* @final
* @experimental in 5.1
*/
class LdapBadge implements BadgeInterface
{
private $resolved = false;
private $ldapServiceId;
private $dnString;
private $searchDn;
private $searchPassword;
private $queryString;
public function __construct(string $ldapServiceId, string $dnString = '{username}', string $searchDn = '', string $searchPassword = '', ?string $queryString = null)
{
$this->ldapServiceId = $ldapServiceId;
$this->dnString = $dnString;
$this->searchDn = $searchDn;
$this->searchPassword = $searchPassword;
$this->queryString = $queryString;
}
public function getLdapServiceId(): string
{
return $this->ldapServiceId;
}
public function getDnString(): string
{
return $this->dnString;
}
public function getSearchDn(): string
{
return $this->searchDn;
}
public function getSearchPassword(): string
{
return $this->searchPassword;
}
public function getQueryString(): ?string
{
return $this->queryString;
}
public function markResolved(): void
{
$this->resolved = true;
}
public function isResolved(): bool
{
return $this->resolved;
}
}
The same content is in 7 releases, Joomla 4.0.0-beta6 to 4.0.0-rc5. See them all, or every version of this file.