Bug 663893

Summary: [RFE] Dispaching LDAP requested with weight/or in round robin fashion
Product: Red Hat Enterprise Linux 6 Reporter: Frederic Hornain <fhornain>
Component: sssdAssignee: Stephen Gallagher <sgallagh>
Status: CLOSED WORKSFORME QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: benl, jgalipea, prc
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-17 11:28:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frederic Hornain 2010-12-17 08:46:09 UTC
Description of problem:

Could it be possible in the next releases to specify several Directory Servers associated to weight or a round robin option.
Like this the LDAP Client is not going to always ask to the same Directory Server all its requests even if several LDAP are defined.

If it is not clear, feel free to contact me for more details.

BR
Frederic ;)

Comment 2 Stephen Gallagher 2010-12-17 11:28:14 UTC
SERVICE DISCOVERY
       The service discovery feature allows back ends to automatically find
       the appropriate servers to connect to using a special DNS query.

   Configuration
       If no servers are specified, the back end automatically uses service
       discovery to try to find a server. Optionally, the user may choose to
       use both fixed server addresses and service discovery by inserting a
       special keyword, “_srv_”, in the list of servers. The order of
       preference is maintained. This feature is useful if, for example, the
       user prefers to use service discovery whenever possible, and fall back
       to a specific server when no servers can be discovered using DNS.

   The domain name
       Please refer to the “dns_discovery_domain” parameter in the
       sssd.conf(5) manual page for more defails.


       dns_discovery_domain (string)
           If service discovery is used in the back end, specifies the domain part of the service discovery DNS query.

           Default: Use the domain part of machine´s hostname

   The protocol
       The queries usually specify _tcp as the protocol. Exceptions are
       documented in respective option description.

   See Also
       For more information on the service discovery mechanism, refer to RFC
       2782.



When using DNS discovery, RFC 2782 specifies a weighted round-robin approach. So to accomplish what you're asking for, it can already be done simply by setting SSSD to use DNS SRV records as described above, and configuring the SRV records on your DNS server according to RFC 2782.

Comment 3 Frederic Hornain 2010-12-17 14:05:25 UTC
Well, you are perfectly right. 
I did not think about that. 
Well done !

BR
Frederic ;)