]> git.sur5r.net Git - openldap/commit
ITS#7027 Implement priority/weight for DNS SRV records
authorJames M Leddy <james.leddy@redhat.com>
Tue, 23 Aug 2011 21:02:03 +0000 (17:02 -0400)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 22 Jul 2014 22:33:42 +0000 (17:33 -0500)
commit0fafefce6171ef96b589bae5be11314664b75bcb
treeadb330b169cd1c3cc17b80507a96f2f912c0e2b4
parentf6f534e78dae4d273cec623393974167714e82fa
ITS#7027 Implement priority/weight for DNS SRV records

From RFC 2782:

  A client MUST attempt to contact the target host with the
  lowest-numbered priority it can reach.

This patch sorts the DNS SRV records by their priority, and
additionally gives records with a larger weight a higher probability
of appearing earlier. This way, the DNS SRV records are tried in the
order of their priority.
libraries/libldap/dnssrv.c