[Date Prev][Date Next]
Re: Using logical operators in LDAP queries.....
Thanks for reply...
I'm novice with LDAP..so please be with me..
The question was really stupid any way...
But next problem is really discouraging..
Within last hour schema has been changed...
I've been given Latitude(p) and Longitude(q) as attributes of a objectClass(radius is removed).
Lets say my current LAT and LOG are x and y.
I'll get the radius as a user input.. I want to find out all agencies(agencyNames precisely) that comes under given radius..
equation becomes something like this..
radius < squareroot((q-y)2 + (p-x)2)
I can do this by retrieving all agencies and applying formula on p and q attributes...(call this as post processing).
But my client believes that..we don't need any post processing..LDAP can do this for us...
is it true?
Can we do this in query or something else ?
--- On Fri, 8/8/08, Dave Horsfall <email@example.com> wrote:
> From: Dave Horsfall <firstname.lastname@example.org>
> Subject: Re: Using logical operators in LDAP queries.....
> To: "OpenLDAP Technical List" <email@example.com>
> Date: Friday, 8 August, 2008, 3:48 PM
> On Fri, 8 Aug 2008, ashish mahamuni wrote:
> > I've my own objectClass called 'Agency'.
> > It has fields called 'radius' and
> > I want to find out all 'agencyNames' such that
> 'radius' is less than 400.
> > How can I achieve this?
> You need to ensure that "radius" can compare
> appropriately, and you look
> for instances of "agencyName" where the
> comparison matches.
> I won't say more than that because:
> 1) It's a fundamental question hardly worthy of
> -technical, and
> 2) It sounds like a homework question.
> In short, it's covered in the Admin Guide.
> PS: They're not called "fields".
> Dave Horsfall DTM VK2KFU Ph: +61 2 9552-5509 (direct) +61
> 2 9552-5500 (switch)
> Corinthian Eng'ng P/L, Ste 54 Jones Bay Whf, 26-32
> Pirrama Rd, Pyrmont 2009, AU
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/