FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 03-14-2012, 06:33 AM
Juan Asensio Sánchez
 
Default About LDAP filters

Hi

Is it important the order of the filter in a search? So, what's the
most optomized filter?

(&(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@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 03-14-2012, 05:48 PM
Jim Finn
 
Default About LDAP filters

I do not believe there is any*noticeable*performance difference one way or the other. *
(&(a=1)(b=2)) is the same as (&(b=2)(a=1))

On Wed, Mar 14, 2012 at 2:33 AM, Juan Asensio Sánchez <okelet@gmail.com> wrote:

Hi



Is it important the order of the filter in a search? So, what's the

most optomized filter?



(&(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@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/389-users

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 03-14-2012, 11:26 PM
Rich Megginson
 
Default About LDAP filters

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@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 

Thread Tools




All times are GMT. The time now is 07:49 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org