Skip to content
Snippets Groups Projects
Commit f6a77931 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Revert "Delete LDAP.php"

This reverts commit 5346182b.
parent 5346182b
No related branches found
No related tags found
No related merge requests found
<?php
namespace SimpleSAML\Auth;
@trigger_error(
sprintf('Using the "SimpleSAML\Auth\LDAP" class is deprecated, use "SimpleSAML\Module\ldap\Auth\Ldap" instead.'),
E_USER_DEPRECATED
);
/**
* @deprecated To be removed in 2.0
*/
if (class_exists('\SimpleSAML\Module\ldap\Auth\Ldap')) {
class LDAP extends \SimpleSAML\Module\ldap\Auth\Ldap
{
/**
* Private constructor restricts instantiation to getInstance().
*
* @param string $hostname
* @param bool $enable_tls
* @param bool $debug
* @param int $timeout
* @param int $port
* @param bool $referrals
* @psalm-suppress NullArgument
*/
public function __construct(
$hostname,
$enable_tls = true,
$debug = false,
$timeout = 0,
$port = 389,
$referrals = true
) {
parent::__construct($hostname, $enable_tls, $debug, $timeout, $port, $referrals);
}
}
} else {
throw new \Exception('Missing ldap-module');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment