You forgot your zero. |
V
Ex: $sr = ldap_search ($ds, $dn, $filter, 0, $justthese);
Cheers,
Dave
Kierk wrote:
> Hi,
>
> I'm working with an LDAP annuary, I try to make a filter, when in a field,
> someone write tot*, it find all the occurences beginning by tot.
>
> I use PHP and openLDAP :
>
> in php I make this :
>
> $filter="(|(chp1=$motrech*)(chp2=$motrech*))";
> $justthese=array('chp1','chp2');
> $sr = ldap_search ($ds, $dn, $filter, $justthese);
>
> and it doesn't return anything .
>
> Thank you
>
> Sorry, for my poor english, I'm French
>
> K