This repository was archived by the owner on Jul 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
Issues with retrieving results #202
Copy link
Copy link
Closed
Description
Does this class work with Laravel 5.3? I noticed the main difference is that AuthController got deprecated. But everything else seems the same. I am relatively new to Laravel and LDAP in general. I followed the instructions and things seem to not pass the login. It doesn't even hit the LDAP server. The login just seems to refresh when I submit. Is there something wrong with my code? I removed the comments for ease of reading. The XXXXXX's would contain my information.
# Auth.php
<?php
return [
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
],
'providers' => [
'users' => [
'driver' => 'adldap',//'eloquent',
'model' => App\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
'passwords' => [
'users' => [
'provider' => 'users',
'table' => 'password_resets',
'expire' => 60,
],
],
];
# adldap.php
<?php
return [
'connections' => [
'default' => [
'auto_connect' => true,
'connection' => Adldap\Connections\Ldap::class,
'schema' => Adldap\Schemas\ActiveDirectory::class,
'connection_settings' => [
'account_prefix' => '',
'account_suffix' => '@xxxxxxxxx.com',
'domain_controllers' => ['xxxxxxxxxx','xxxxxxxxxxx'],
'port' => 389,
'timeout' => 5,
'base_dn' => 'OU=XXX,OU=XXX,DC=xxx,DC=xxxxxx',
'admin_account_suffix' => '@xxxxxx.com',
'admin_username' => env('ADLDAP_ADMIN_USERNAME', 'xxxxx'),
'admin_password' => env('ADLDAP_ADMIN_PASSWORD', 'xxxxx'),
'follow_referrals' => false,
'use_ssl' => false,
'use_tls' => false,
],
],
],
];
# adldap_auth.php
<?php
return [
'connection' => env('ADLDAP_CONNECTION', 'default'),
'username_attribute' => ['username' => 'samaccountname'],
'limitation_filter' => env('ADLDAP_LIMITATION_FILTER', ''),
'login_fallback' => env('ADLDAP_LOGIN_FALLBACK', false),
'password_key' => env('ADLDAP_PASSWORD_KEY', 'password'),
'password_sync' => env('ADLDAP_PASSWORD_SYNC', true),
'login_attribute' => env('ADLDAP_LOGIN_ATTRIBUTE', 'samaccountname'),
'windows_auth_attribute' => ['samaccountname' => 'AUTH_USER'],
'bind_user_to_model' => env('ADLDAP_BIND_USER_TO_MODEL', false),
'sync_attributes' => [
'name' => 'cn',
],
'select_attributes' => [
],
];
Metadata
Metadata
Assignees
Labels
No labels