Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search function returns empty array #122

Open
h3lo opened this issue Feb 15, 2017 · 0 comments
Open

Search function returns empty array #122

h3lo opened this issue Feb 15, 2017 · 0 comments

Comments

@h3lo
Copy link

h3lo commented Feb 15, 2017

$adldap = new adLDAP\adLDAP();

When I try to search with:
$results = $adldap->search()->all();
or
$results = $adldap->search()->where('cn', 'starts_with', 'somegrp')->get();

returns this error:
PHP Fatal error: Call to a member function all() on a non-object

If I run just $results = $adldap->search(); $results is an empty array.

Other functions like adding/removing a user from a group work fine, just the search is giving me an issue so far. Am I doing something wrong here?

Edit:
I want to note that upgrading to adLDAP2 is not an option as the server is running php 5.3.x and I do not have access to upgrade it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant