Bug 63907

Summary: Rework the discovery mechanisms
Product: realmd Reporter: Stef Walter <stefw>
Component: GeneralAssignee: Stef Walter <stefw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: stefw, yelley
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 62863    
Attachments: Rework the discovery mechanisms
Enable usage of explicit servers when joining domains
Discover timeouts and defaults happen globally
Rework the discovery mechanisms
Rework the discovery mechanisms

Description Stef Walter 2013-04-25 08:04:43 UTC
After the IPA test day it became clear that our discovery mechanisms were inadequate. Rework them to better discover IPA and AD. This is a bit more code, but results in a much more reliable experience.

It also allows us to do things like specify the server name to discover.
Comment 1 Stef Walter 2013-04-25 08:04:49 UTC
Created attachment 78443 [details] [review]
Rework the discovery mechanisms

 * Actually use MS-CLDAP to connect to AD servers
 * Use RootDSE lookups to discover IPA servers
 * Support discovery of a specific server
Comment 2 Stef Walter 2013-04-25 08:05:07 UTC
Yassir, this is ready for review, sorry for the delay.
Comment 3 Stef Walter 2013-04-25 09:06:12 UTC
Created attachment 78448 [details] [review]
Enable usage of explicit servers when joining domains

 * Use of explicit host names when joining domains is now possible
 * If done, configures sssd/winbind to use only that server
 * Use discovery information correctly in various locations
   rather than making assumptions
Comment 4 Stef Walter 2013-04-25 10:29:38 UTC
Created attachment 78456 [details] [review]
Discover timeouts and defaults happen globally

 * When discovery takes too long cancel all possible discovery
   for every provider. There were straglers before that would
   have off side effects
 * Lookup the DHCP realm name at the highest level. That way it
   can be fed into all the providers as a default
Comment 5 Stef Walter 2013-04-25 11:00:33 UTC
Created attachment 78458 [details] [review]
Rework the discovery mechanisms

Found various bugs, fine tune.
Comment 6 Stef Walter 2013-04-25 11:49:00 UTC
Created attachment 78465 [details] [review]
Rework the discovery mechanisms

 * Actually use MS-CLDAP to connect to AD servers
 * Use RootDSE lookups to discover IPA servers
 * Support discovery of a specific server
Comment 7 Stef Walter 2013-04-29 12:00:04 UTC
Attachment 78448 [details] pushed as 879f942 - Enable usage of explicit servers when joining domains
Attachment 78456 [details] pushed as 2d15aad - Discover timeouts and defaults happen globally
Attachment 78465 [details] pushed as d16d3a2 - Rework the discovery mechanisms

Pushed with a bunch more fine tuning, changes and review. This needs to be
included in the Fedora test day, so not waiting for further review.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.