{"action":"created","issue":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/472","repository_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel","labels_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/472/comments","events_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/472/events","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/472","id":293952788,"number":472,"title":"BindException Invalid credentials  in Guard.php ","user":{"login":"legreco","id":12883609,"avatar_url":"https://avatars2.githubusercontent.com/u/12883609?v=4","gravatar_id":"","url":"https://api.github.com/users/legreco","html_url":"https://github.com/legreco","followers_url":"https://api.github.com/users/legreco/followers","following_url":"https://api.github.com/users/legreco/following{/other_user}","gists_url":"https://api.github.com/users/legreco/gists{/gist_id}","starred_url":"https://api.github.com/users/legreco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legreco/subscriptions","organizations_url":"https://api.github.com/users/legreco/orgs","repos_url":"https://api.github.com/users/legreco/repos","events_url":"https://api.github.com/users/legreco/events{/privacy}","received_events_url":"https://api.github.com/users/legreco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-02T16:49:49Z","updated_at":"2018-02-05T17:25:02Z","closed_at":null,"author_association":"NONE","body":"- Laravel Version: 5.4\r\n- Adldap2-Laravel Version: 4.0.6.\r\n- PHP Version: 7.0.10\r\n- LDAP Type: Active Directory \r\n\r\n### Description:\r\nwhen i try\r\n```\r\n $user = \\Adldap\\Laravel\\Facades\\Adldap::search()->users()->first();\r\n\r\n    dd($user);\r\n```\r\ni get the bind exception error\r\n\r\nMy adldap file\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' => env('ADLDAP_AUTO_CONNECT', true),\r\n \r\n\r\n            'connection' => Adldap\\Connections\\Ldap::class,\r\n\r\n     \r\n            'schema' => Adldap\\Schemas\\ActiveDirectory::class,\r\n\r\n\r\n            'connection_settings' => [\r\n       \r\n\r\n                'account_prefix' => env('ADLDAP_ACCOUNT_PREFIX', ''),\r\n\r\n       \r\n\r\n                'account_suffix' => env('ADLDAP_ACCOUNT_SUFFIX', ''),\r\n\r\n          \r\n\r\n                'domain_controllers' => explode(' ', env('ADLDAP_CONTROLLERS', 'mydomain.org')),\r\n\r\n          \r\n                'port' => env('ADLDAP_PORT', 389),\r\n\r\n          \r\n\r\n                'timeout' => env('ADLDAP_TIMEOUT', 5),\r\n\r\n\r\n                'base_dn' => env('ADLDAP_BASEDN', 'OU=ou,DC=dc,DC=dc,DC=dc'),\r\n\r\n         \r\n\r\n                'admin_account_prefix' => env('ADLDAP_ADMIN_ACCOUNT_PREFIX', ''),\r\n                'admin_account_suffix' => env('ADLDAP_ADMIN_ACCOUNT_SUFFIX', ''),\r\n\r\n       \r\n\r\n                'admin_username' => env('ADLDAP_ADMIN_USERNAME', 'username'),\r\n                'admin_password' => env('ADLDAP_ADMIN_PASSWORD', 'password'),\r\n\r\n\r\n                'follow_referrals' => false,\r\n\r\n          \r\n\r\n                'use_ssl' => env('ADLDAP_USE_SSL', false),\r\n                'use_tls' => env('ADLDAP_USE_TLS', false),\r\n\r\n            ],\r\n\r\n        ],\r\n\r\n    ],\r\n\r\n];\r\n```\r\n\r\nNOTE \r\n1. the same configuration works with another project (with Adldap2-Laravel Version: 3.*)\r\n1=>2 the username and the password are correct\r\n"},"comment":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/comments/363156496","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/472#issuecomment-363156496","issue_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/472","id":363156496,"user":{"login":"stevebauman","id":6421846,"avatar_url":"https://avatars3.githubusercontent.com/u/6421846?v=4","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":"2018-02-05T17:25:02Z","updated_at":"2018-02-05T17:25:02Z","author_association":"OWNER","body":"Can you check your logs and see what's in there after you trying logging in with your email?\r\n\r\nAlso, can you double check in your AD server that your `userPrincipalName` that you're using to login with is correct?"}}
{"actor":{"display_login":"stevebauman"}}