[389-users] About LDAP filters

Rich Megginson rmeggins at redhat.com
Thu Mar 15 00:26:20 UTC 2012


On 03/14/2012 01:33 AM, Juan Asensio Sánchez wrote:
> Hi
>
> Is it important the order of the filter in a search? So, what's the
> most optomized filter?
It's very difficult to say.  You'd really have to parse the code to 
understand what it's doing.
>
> (&(uid=*)(objectClass=sambaSamAccount))
>
> Or
>
> (&(objectClass=sambaSamAccount)(uid=*))
>
> Or which is the best of these two:
>
> (&(uid=user)(ou:dn:=People))
>
> Or
>
> (&(ou:dn:=People)(uid=user))
>
> Regards and thanks in advance.
> --
> 389 users mailing list
> 389-users at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users




More information about the 389-users mailing list