Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MobiltelEAD's avatar

adldap2 search issue

Adldap 2.1.* didn't want to search by more than one character. When I try to search this like: $result=Adldap::search()->where('cn','contains','i')->get(); I've 1000 result because of the limit. $result[0]->cn returns 'misho' but... $result=Adldap::search()->where('cn','contains','is')->get(); Last one is empty. I've large AD and it is imposible.

Simulteniously when I replace get() with paginate() like the line below: Adldap::search()->where('cn','contains','i')->paginate(10,10); Result is: ErrorException in Ldap.php line 221: ldap_search(): Search: Can't contact LDAP server

Can anybody help?

0 likes
0 replies

Please or to participate in this conversation.