{"action":"created","issue":{"url":"https://api.github.com/repos/Adldap2/Adldap2/issues/346","repository_url":"https://api.github.com/repos/Adldap2/Adldap2","labels_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/346/comments","events_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/346/events","html_url":"https://github.com/Adldap2/Adldap2/issues/346","id":189652705,"number":346,"title":"understandable Empty Search ","user":{"login":"donfal71","id":11489120,"avatar_url":"https://avatars.githubusercontent.com/u/11489120?v=3","gravatar_id":"","url":"https://api.github.com/users/donfal71","html_url":"https://github.com/donfal71","followers_url":"https://api.github.com/users/donfal71/followers","following_url":"https://api.github.com/users/donfal71/following{/other_user}","gists_url":"https://api.github.com/users/donfal71/gists{/gist_id}","starred_url":"https://api.github.com/users/donfal71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donfal71/subscriptions","organizations_url":"https://api.github.com/users/donfal71/orgs","repos_url":"https://api.github.com/users/donfal71/repos","events_url":"https://api.github.com/users/donfal71/events{/privacy}","received_events_url":"https://api.github.com/users/donfal71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-16T10:04:16Z","updated_at":"2016-11-16T14:33:08Z","closed_at":null,"body":"Hi,\r\n\r\nFirst, I want to thanks you for your tremendous work about this Adldap2 library.\r\n\r\nI want to use this in order to allow my wordpress app to update users password. In order to test, my AD admin has create an OU=test and inside 2 users, admin_test (read/write access) and user_test (read only).\r\n\r\nI am authenticated through an SSL Connection, it works, but It is impossible to search and get any results (I tried several methods according your doc), moreover, I read several posts related to this issue, none of them gave me a solution. I'm starting to think that I miss something and my AD knowledge is close to zero...\r\n\r\nThe following code returns : \r\n\r\n```\r\nobject(Illuminate\\Support\\Collection)#176 (1) {\r\n  [\"items\":protected]=> array(0) { }\r\n}\r\n```\r\n\r\nif I add ->get(), then I get **NULL**\r\n\r\nHere my code : \r\n```\r\n\r\n        $options = [\r\n            \"domain_controllers\"    => ['clouddc01'],\r\n            \"account_suffix\"        => \"@mycompany.com\"\r\n            \"base_dn\"               => \"ou=test,dc=mycompany,dc=fr\",\r\n            \"admin_username\" => \"admin_test\",\r\n            \"admin_password\" => \"******\",\r\n            \"use_ssl\"        => true\r\n        ];\r\n\r\n        $ad = new Adldap();\r\n\r\n        // Create a new connection provider.\r\n        $provider = new \\Adldap\\Connections\\Provider($options);\r\n\r\n        // Add the provider to Adldap.\r\n        $ad->addProvider('default', $provider);\r\n\r\n        try {\r\n            // Connect using the providers alias name.\r\n            $ad->connect('default');\r\n\r\n            // Perform a query.\r\n            $result = $ad->search()->all();\r\n\r\n            var_dump($results);\r\n\r\n        } catch (\\Adldap\\Exceptions\\Auth\\BindException $e) {\r\n\r\n        }\r\n```\r\n\r\nI can search with this account using softerra LDAP Administrator, It works.\r\n\r\nI really don't know how to make it works.\r\n\r\nMany thanks for you help.\r\n"},"comment":{"url":"https://api.github.com/repos/Adldap2/Adldap2/issues/comments/260961756","html_url":"https://github.com/Adldap2/Adldap2/issues/346#issuecomment-260961756","issue_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/346","id":260961756,"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-16T14:33:08Z","updated_at":"2016-11-16T14:33:08Z","body":"Can you try retrieving the root DSE and see if anything is returned?\r\n\r\n```php\r\nvar_dump($ad->search()->getRootDse());\r\n```"}}
{"actor":{"display_login":"stevebauman"}}