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

Unwarranted referrals (Was: Bugs?)



slapd returns "partial results and referral" even when no default
referral has been configured in the server.

   $ ldapsearch -b c=ZZ         "objectclass=*"
   ldap_bind: Partial results and referral received

So, a number of `LDAP_PARTIAL_RESULTS' in servers/slapd/ should be
reduced to something like this:

	((default_referral && *default_referral)
	 ? LDAP_PARTIAL_RESULTS
	 : LDAP_NO_SUCH_OBJECT)


However, in many cases quite a different error code should be returned:

   $ ldapsearch -D c=ZZ -w wurk "objectclass=*"
   ldap_bind: Partial results and referral received

Should be "Invalid credentials".

   $ ldapsearch -b "badname"    "objectclass=*"
   ldap_bind: Partial results and referral received

Should be "Invalid DN syntax".


I don't really know what's happening where, so I won't try to fix it
myself.

-- 
Hallvard