On 6 September 2011 04:30, Serge A. Ribalchenko <fis...@tpaba.org.ua> wrote: > 016: $mesg = > 017: $ldap->search( > 018: base => "ou=slurm,dc=lomonosov,dc=parallel,dc=ru", > 019: filter => "&(cn<=1000)(cn>=500)" > 020: );
> In fact, the problem experienced on a simple filters with 'less than' or > 'greater than' comparisions; complex search filters like > '|(cn=527)(cn=528)' works just fine. What am I doing wrong? How can I > get a list of entries with said filter? I think your problem is the fact that LDAPs '>' and '<' smaller work lexicographically, not numerically. 1000 is smaller than 500 (as far as strings go), hence you won't find any users that qualify for BOTH. Cheers, Andrej -- Please don't top post, and don't use HTML e-Mail :} Make your quotes concise. http://www.georgedillon.com/web/html_email_is_evil.shtml