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

Anyone knows the behaviour of LDAP_RES_SEARCH_REFERENCE?



Hi.
I posted this message some days ago, but got no answer.
Is anyone familiar with LDAP_RES_SEARCH_REFERENCE behavior?
Thanks,
Tomas

---------------------------------------

 -----Mensaje original-----
De: 	Tomas Orti [mailto:tom65@tid.es]
Enviado el:	viernes, 11 de febrero de 2005 8:34
Para:	'openldap-software@OpenLDAP.org'
Asunto:	Referral behaviour: LDAP_RES_SEARCH_REFERENCE

Hi everyone.
I'm testing the way 'referrals' are returned by the API,
but I'm a bit confused about it:

I have these on my slapd.conf on the server side:
(just as it is stated in the manual in section 12. Constructing a
Distributed Directory Service)

	referral	ldap://root.openldap.org

	...

	dn: dc=subtree,dc=example,dc=com
	objectclass: referral
	objectclass: extensibleObject
	dc: subtree
	ref: ldap://b.example.net/dc=subtree,dc=example,dc=com


When I ldapsearched examples for them, and debugged, got SearchResults
(LDAP_RES_SEARCH_RESULT)
for both, that is the equivalent of SearchResultDone of RFC2251.
This is quite confusing (an may be non standard?), because the common sense
of doing it, it would be to receive a SearchResultReference
(LDAP_RES_SEARCH_REFERENCE) for a search request of
dc=subtree,dc=example,dc=com, and a SearchResultDone
(LDAP_RES_SEARCH_RESULT) with a referral, when the server does not hold the
base object for the search,
just as it is stated in 4.5.3 and 4.5.3.1 of RFC2251.

If this is the behavior, then, what is the LDAP_RES_SEARCH_REFERENCE used
for?

Thanks in advance,
Tomas.

---------------------------------------
Tomás Ortí Martín
TELENIUM
C/ Agustín de Foxá, 25 - 28036 MADRID
Teléfono: 91 315 85 62 - Ext. 252
Fax: 91 315 63 37
Mail: tomasorti@telenium.es
Web: www.telenium.es
---------------------------------------