Rename our configuration keys to ldap/ldaps/startls, they are not openldap specific
This commit is contained in:
parent
c588e13bd8
commit
732f777c75
@ -25,6 +25,9 @@ class SwapinAuthUser
|
||||
{
|
||||
$key = config('ldap.default');
|
||||
|
||||
if (! array_key_exists($key,config('ldap.connections')))
|
||||
abort(599,sprintf('LDAP default server [%s] configuration doesnt exist?',$key));
|
||||
|
||||
/*
|
||||
// Rebuild our connection with the authenticated user.
|
||||
if (Session::has('username_encrypt') && Session::has('password_encrypt')) {
|
||||
|
@ -15,7 +15,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'default' => env('LDAP_CONNECTION', 'openldap'),
|
||||
'default' => env('LDAP_CONNECTION', 'ldap'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -30,7 +30,7 @@ return [
|
||||
|
||||
'connections' => [
|
||||
|
||||
'openldap' => [
|
||||
'ldap' => [
|
||||
'hosts' => [env('LDAP_HOST', '127.0.0.1')],
|
||||
'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'),
|
||||
'password' => env('LDAP_PASSWORD', 'secret'),
|
||||
@ -42,7 +42,7 @@ return [
|
||||
'name' => env('LDAP_NAME','LDAP Server'),
|
||||
],
|
||||
|
||||
'openldaps' => [
|
||||
'ldaps' => [
|
||||
'hosts' => [env('LDAP_HOST', '127.0.0.1')],
|
||||
'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'),
|
||||
'password' => env('LDAP_PASSWORD', 'secret'),
|
||||
@ -54,7 +54,7 @@ return [
|
||||
'name' => env('LDAP_NAME','LDAPS Server'),
|
||||
],
|
||||
|
||||
'openldaptls' => [
|
||||
'starttls' => [
|
||||
'hosts' => [env('LDAP_HOST', '127.0.0.1')],
|
||||
'username' => env('LDAP_USERNAME', 'cn=user,dc=local,dc=com'),
|
||||
'password' => env('LDAP_PASSWORD', 'secret'),
|
||||
@ -66,6 +66,7 @@ return [
|
||||
'name' => env('LDAP_NAME','LDAP-TLS Server'),
|
||||
],
|
||||
|
||||
/*
|
||||
'opendj' => [
|
||||
'hosts' => ['opendj'],
|
||||
'username' => 'cn=Directory Manager',
|
||||
@ -77,6 +78,7 @@ return [
|
||||
'use_tls' => env('LDAP_TLS', false),
|
||||
'name' => 'OpenDJ Server',
|
||||
],
|
||||
*/
|
||||
|
||||
],
|
||||
|
||||
@ -174,4 +176,4 @@ return [
|
||||
]
|
||||
],
|
||||
],
|
||||
];
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user