Commit 44ed5936 authored by German Shvetsov's avatar German Shvetsov

Namespace changes

parent cbcb4ad7
Pipeline #2480 skipped
{
"name": "krenor/ldap-auth",
"description": "Basic readonly authentication via LDAP for Laravel 5.2",
"name": "prego/ldap-auth",
"description": "Basic readonly authentication via LDAP for Laravel 5.2 (OpenLDAP compatible)",
"keywords": [
"laravel 5.2", "laravel", "laravel auth", "laravel authentication",
"ldap", "ldap authentication", "active directory",
......@@ -13,6 +13,11 @@
"email": "stanislav.goldmann@gmail.com",
"role": "Developer",
"homepage": "https://github.com/krenor"
},
{
"name": "German Shvetsov",
"email": "shvetsovgv@herzen.spb.ru",
"role": "Developer"
}
],
"require": {
......@@ -24,7 +29,7 @@
},
"autoload": {
"psr-4": {
"Krenor\\LdapAuth\\": "src/"
"Prego\\LdapAuth\\": "src/"
}
}
}
<?php
namespace Krenor\LdapAuth\Connections;
namespace Prego\LdapAuth\Connections;
abstract class DomainController
{
......
<?php
namespace Krenor\LdapAuth\Connections;
namespace Prego\LdapAuth\Connections;
use ErrorException;
use Krenor\LdapAuth\Contracts\ConnectionInterface;
use Krenor\LdapAuth\Contracts\DomainController;
use Krenor\LdapAuth\Exceptions\ConnectionException;
use Prego\LdapAuth\Contracts\ConnectionInterface;
use Prego\LdapAuth\Contracts\DomainController;
use Prego\LdapAuth\Exceptions\ConnectionException;
class LdapConnection implements ConnectionInterface
{
......@@ -199,7 +199,7 @@ class LdapConnection implements ConnectionInterface
*
* @param array $domain_controller
*
* @return \Krenor\LdapAuth\Connections\DomainController
* @return \Prego\LdapAuth\Connections\DomainController
*/
private function getDomainControllerStrategy(array $domain_controller)
{
......
<?php
namespace Krenor\LdapAuth\Connections;
namespace Prego\LdapAuth\Connections;
class LoadBalancingDomainController extends DomainController
{
......
<?php
namespace Krenor\LdapAuth\Connections;
namespace Prego\LdapAuth\Connections;
class RebindDomainController extends DomainController
{
......
<?php
namespace Krenor\LdapAuth\Connections;
namespace Prego\LdapAuth\Connections;
class SingleDomainController extends DomainController
{
......
<?php
namespace Krenor\LdapAuth\Contracts;
namespace Prego\LdapAuth\Contracts;
interface ConnectionInterface
{
......
<?php
namespace Krenor\LdapAuth\Contracts;
namespace Prego\LdapAuth\Contracts;
interface UserInterface
{
......
<?php
namespace Krenor\LdapAuth\Exceptions;
namespace Prego\LdapAuth\Exceptions;
use Exception;
......
<?php
namespace Krenor\LdapAuth\Exceptions;
namespace Prego\LdapAuth\Exceptions;
use Exception;
......
<?php
namespace Krenor\LdapAuth\Exceptions;
namespace Prego\LdapAuth\Exceptions;
use Exception;
......
<?php
namespace Krenor\LdapAuth;
namespace Prego\LdapAuth;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\ServiceProvider;
use Krenor\LdapAuth\Exceptions\MissingConfigurationException;
use Krenor\LdapAuth\Objects\Ldap;
use Prego\LdapAuth\Exceptions\MissingConfigurationException;
use Prego\LdapAuth\Objects\Ldap;
class LdapAuthServiceProvider extends ServiceProvider
{
......
<?php
namespace Krenor\LdapAuth;
namespace Prego\LdapAuth;
use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Contracts\Auth\Authenticatable;
use Krenor\LdapAuth\Objects\Ldap;
use Prego\LdapAuth\Objects\Ldap;
class LdapAuthUserProvider implements UserProvider
{
......@@ -73,7 +73,7 @@ class LdapAuthUserProvider implements UserProvider
* Retrieve a user by the given credentials.
*
* @param array $credentials
* @return \Krenor\LdapAuth\Objects\LdapUser|null
* @return \Prego\LdapAuth\Objects\LdapUser|null
*/
public function retrieveByCredentials(array $credentials)
{
......
<?php
namespace Krenor\LdapAuth\Objects;
namespace Prego\LdapAuth\Objects;
use Krenor\LdapAuth\Connections\LdapConnection;
use Krenor\LdapAuth\Contracts\ConnectionInterface;
use Krenor\LdapAuth\Exceptions\EmptySearchResultException;
use Krenor\LdapAuth\Exceptions\MissingConfigurationException;
use Prego\LdapAuth\Connections\LdapConnection;
use Prego\LdapAuth\Contracts\ConnectionInterface;
use Prego\LdapAuth\Exceptions\EmptySearchResultException;
use Prego\LdapAuth\Exceptions\MissingConfigurationException;
class Ldap
{
......@@ -91,7 +91,7 @@ class Ldap
{
$this->ldap->connect();
$this->ldap->option(LDAP_OPT_PROTOCOL_VERSION, $connection::PROTOCOL);
$this->ldap->option(LDAP_OPT_PROTOCOL_VERSION, $connection::VERSION);
$this->ldap->option(LDAP_OPT_REFERRALS, $connection::REFERRALS);
$this->ldap->option(LDAP_OPT_TIMELIMIT, $connection::TIMELIMIT);
$this->ldap->option(LDAP_OPT_NETWORK_TIMEOUT, $connection::TIMELIMIT);
......
<?php
namespace Krenor\LdapAuth\Objects;
namespace Prego\LdapAuth\Objects;
use Illuminate\Contracts\Auth\Authenticatable as UserContract;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Krenor\LdapAuth\Contracts\UserInterface as LdapUserContract;
use Prego\LdapAuth\Contracts\UserInterface as LdapUserContract;
use Illuminate\Foundation\Auth\Access\Authorizable;
class LdapUser implements UserContract, AuthorizableContract, LdapUserContract
......@@ -40,7 +40,7 @@ class LdapUser implements UserContract, AuthorizableContract, LdapUserContract
*/
public function getAuthIdentifierName()
{
return 'samaccountname';
return 'uid';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment