> Hello. In the begining when I lear to use LDAP I was told ldap have powerful > search but no sorting facility. Later I leared ldap_search(1) command on > openldap which DO have sorting option, and ldap_sort() in php4+ also sort > the result.
Some DSAs will do server side sorting, others don't. > I suspect (guess) the sorting is actually done in a very simple way by the > LDAP client: > 1) the client (ldap_search or php) connect to the LDAP server and search > with filter, ask the server to return only the search key attribute. > 2) 1,000 search keys are returned from server (along with dn); > 3) the client sort the keys, and determin which are the first 20 items; > 4) and query LDAP server again ask for the 20 items. That is a dumb design; if you've already got the records, and sorted them, why do the query again? Even web scripting languages like PHP let you store an array in a session, so you only need to get the data once, and then display different sections. > This reduced traffic by only asking to return full attributes for the > entries to be read, other entries only return the search key attribute. > I am just curious if my guess is correct. :) --- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the SUBJECT of the message.
