[Freeipa-devel] [PATCH] 362 Add LDAP server fallback to client installer

Rob Crittenden rcritten at redhat.com
Mon Feb 4 16:59:18 UTC 2013


Martin Kosek wrote:
> When ipa-client-install is run without --server option, it tries to
> search SRV records for IPA/LDAP server hostname, but it returns only
> the first record found and when the LDAP server on that hostname is
> not available, the whole client installation fails.
>
> Get all LDAP SRV records instead and fallback to next hostname when
> the current one is not available.
>
> https://fedorahosted.org/freeipa/ticket/3388

I worked on the same ticket, unfortunately, but I didn't mark it as 
assigned which caused some duplicate effort. Sorry about that.

I came up with a very similar solution but took it a bit further. This 
expands the treatment of the discovered servers as a list of servers 
rather than a single value.

I do a bit more aggressive testing of all servers returned and remove 
any from the list that are not IPA servers. A server not responding is 
left in the configured list.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-1084-client-failover.patch
Type: text/x-diff
Size: 16859 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20130204/11ec87c1/attachment.bin>


More information about the Freeipa-devel mailing list