[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: error text in search results

> From: Kurt D. Zeilenga [mailto:kurt@boolean.net]
> At 04:15 PM 10/21/99 -0700, Howard Chu wrote:
> >I was trying to send some descriptive text back in a search
> error from one
> >of my backends, and couldn't understand why it wasn't being shown on the
> >client. It turns out that the text wasn't ever being sent, due to this
> >little bit in slapd/result.c - if the connection protocol was older than
> >LDAPv3, the "text" was replaced with the "refs" stuff,
> regardless of whether
> >or not the result code was actually dealing with a referral.
> Referrals can be returned with many result codes such as
> when the size or time limit is exceeded.
> A committed a small patch which should allow LDAPv2 search
> operations to provide text in responses when no referrals
> need to be returned.
Thanks for the patch. But now I have a question - how does a V2 client know
that the accompanying text is a referral? I.e., if the error code is
LDAP_SIZELIMIT_EXCEEDED, how does the client decide whether the accompanying
text is descriptive text or referral text?