Hello,
LDAP doesn't support what you want to do, so you have to create some way
of doing the same thing.
You can either build a static listing periodically or you can
dynamically search the entire directory to determine the unique values
every time someone hits that web page.
Frank
On 1/2/09 3:01 AM, Zhang Weiwu wrote:
Hello.
I am working on a contact information directory query page. Usually such
systems ask user to type the locality value and start a search, show
matching results. However the system that I am working on offer locality
as selection list, which is a collection of all possible values for
locality for all records. The reason to prefer a selection list then
traditional text input is because we are offering query system for
foreign countries where the users often misspell the locality names in a
foreign language and gets frustrated with 0 search results, and try
again and again... A selection list is much more useful for our users.
The question is how to generate the selection list for all existing
localities. There seems isn't an equivalent for SQL-style "select
distinct locality from directory" in OpenLDAP, and not seems to exist in
other directory server products (I only glanced over feature lists). How
would you do in such case?
Thanks for input in advance!
--
Frank Swasey | http://www.uvm.edu/~fcs
Sr Systems Administrator | Always remember: You are UNIQUE,
University of Vermont | just like everyone else.
"I am not young enough to know everything." - Oscar Wilde (1854-1900)