{"action":"created","issue":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/202","repository_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel","labels_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/202/comments","events_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/202/events","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/202","id":187465025,"number":202,"title":"Issues with retrieving results","user":{"login":"cisvpn-sai","id":22596245,"avatar_url":"https://avatars.githubusercontent.com/u/22596245?v=3","gravatar_id":"","url":"https://api.github.com/users/cisvpn-sai","html_url":"https://github.com/cisvpn-sai","followers_url":"https://api.github.com/users/cisvpn-sai/followers","following_url":"https://api.github.com/users/cisvpn-sai/following{/other_user}","gists_url":"https://api.github.com/users/cisvpn-sai/gists{/gist_id}","starred_url":"https://api.github.com/users/cisvpn-sai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cisvpn-sai/subscriptions","organizations_url":"https://api.github.com/users/cisvpn-sai/orgs","repos_url":"https://api.github.com/users/cisvpn-sai/repos","events_url":"https://api.github.com/users/cisvpn-sai/events{/privacy}","received_events_url":"https://api.github.com/users/cisvpn-sai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-11-05T00:29:37Z","updated_at":"2016-11-08T17:56:14Z","closed_at":null,"body":"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.\r\n\r\n\r\n\r\n```\r\n# Auth.php\r\n\r\n<?php\r\n\r\nreturn [\r\n\r\n    'defaults' => [\r\n        'guard' => 'web',\r\n        'passwords' => 'users',\r\n    ],\r\n\r\n    'guards' => [\r\n        'web' => [\r\n            'driver' => 'session',\r\n            'provider' => 'users',\r\n        ],\r\n\r\n        'api' => [\r\n            'driver' => 'token',\r\n            'provider' => 'users',\r\n        ],\r\n    ],\r\n\r\n    'providers' => [\r\n        'users' => [\r\n            'driver' => 'adldap',//'eloquent',\r\n            'model' => App\\User::class,\r\n        ],\r\n\r\n        // 'users' => [\r\n        //     'driver' => 'database',\r\n        //     'table' => 'users',\r\n        // ],\r\n    ],\r\n\r\n    'passwords' => [\r\n        'users' => [\r\n            'provider' => 'users',\r\n            'table' => 'password_resets',\r\n            'expire' => 60,\r\n        ],\r\n    ],\r\n\r\n];\r\n```\r\n\r\n```\r\n# adldap.php\r\n\r\n<?php\r\n\r\nreturn [\r\n\r\n    'connections' => [\r\n\r\n        'default' => [\r\n\r\n            'auto_connect' => true,\r\n\r\n            'connection' => Adldap\\Connections\\Ldap::class,\r\n\r\n            'schema' => Adldap\\Schemas\\ActiveDirectory::class,\r\n\r\n            'connection_settings' => [\r\n\r\n                'account_prefix' => '',\r\n\r\n                'account_suffix' => '@xxxxxxxxx.com',\r\n\r\n                'domain_controllers' => ['xxxxxxxxxx','xxxxxxxxxxx'],\r\n\r\n                'port' => 389,\r\n\r\n                'timeout' => 5,\r\n\r\n                'base_dn' => 'OU=XXX,OU=XXX,DC=xxx,DC=xxxxxx',\r\n\r\n                'admin_account_suffix' => '@xxxxxx.com',\r\n\r\n                'admin_username' => env('ADLDAP_ADMIN_USERNAME', 'xxxxx'),\r\n\r\n                'admin_password' => env('ADLDAP_ADMIN_PASSWORD', 'xxxxx'),\r\n\r\n                'follow_referrals' => false,\r\n\r\n                'use_ssl' => false,\r\n\r\n                'use_tls' => false,\r\n\r\n            ],\r\n\r\n        ],\r\n\r\n    ],\r\n\r\n];\r\n```\r\n\r\n```\r\n# adldap_auth.php\r\n\r\n<?php\r\n\r\nreturn [\r\n\r\n\r\n    'connection' => env('ADLDAP_CONNECTION', 'default'),\r\n\r\n    'username_attribute' => ['username' => 'samaccountname'],\r\n\r\n    'limitation_filter' => env('ADLDAP_LIMITATION_FILTER', ''),\r\n\r\n    'login_fallback' => env('ADLDAP_LOGIN_FALLBACK', false),\r\n\r\n    'password_key' => env('ADLDAP_PASSWORD_KEY', 'password'),\r\n\r\n    'password_sync' => env('ADLDAP_PASSWORD_SYNC', true),\r\n\r\n    'login_attribute' => env('ADLDAP_LOGIN_ATTRIBUTE', 'samaccountname'),\r\n\r\n    'windows_auth_attribute' => ['samaccountname' => 'AUTH_USER'],\r\n\r\n    'bind_user_to_model' => env('ADLDAP_BIND_USER_TO_MODEL', false),\r\n\r\n    'sync_attributes' => [\r\n\r\n        'name' => 'cn',\r\n\r\n    ],\r\n\r\n    'select_attributes' => [\r\n\r\n    ],\r\n\r\n];\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/comments/259209857","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/202#issuecomment-259209857","issue_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/202","id":259209857,"user":{"login":"stevebauman","id":6421846,"avatar_url":"https://avatars.githubusercontent.com/u/6421846?v=3","gravatar_id":"","url":"https://api.github.com/users/stevebauman","html_url":"https://github.com/stevebauman","followers_url":"https://api.github.com/users/stevebauman/followers","following_url":"https://api.github.com/users/stevebauman/following{/other_user}","gists_url":"https://api.github.com/users/stevebauman/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebauman/subscriptions","organizations_url":"https://api.github.com/users/stevebauman/orgs","repos_url":"https://api.github.com/users/stevebauman/repos","events_url":"https://api.github.com/users/stevebauman/events{/privacy}","received_events_url":"https://api.github.com/users/stevebauman/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T17:56:14Z","updated_at":"2016-11-08T17:56:14Z","body":"Can you try:\r\n\r\n```php\r\n$models = \\Adldap\\Laravel\\Facades\\Adldap::search()->raw()->get();\r\n\r\ndd($models);\r\n```"}}
{"actor":{"display_login":"stevebauman"}}