Norman Gray wrote:
> 
> Ondřej, hello.
> 
> On 20 Jan 2023, at 10:47, Ondřej Kuzník wrote:
> 
>> That said, patches implementing some kind of SRV are welcome. The easiest
>>  way might be to introduce an lloadd tier implementation that manages its
>>  backend collection accordingly.
> 
> It's not an OpenLDAP patch, but I've attached a module which might be of 
> interest here.  This exposes a function
> 
>     char* get_sorted_srv_records(const char* domain);
> 
> which does a SRV lookup, and orders the records that come back according to 
> the specification of RFC 2782 (though in a single pass, rather than the 
> clumsy multiple pass algorithm that the RFC suggests).

libldap already provides this functionality in ldap_domain2hostlist().

-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/

Reply via email to