Title: #230: Failure to filter out AD subdomain with flatname is used
SSSD fails to filter out the child domain it is connected to when domain flatname is used
instead of fully qualified domain name in `sssd.conf`, this leads to creation of an empty
After the patch, no duplicate subdomain is created. Tested by performing `id` against user
in connected-to child domain(used 2 AD domains:root and child for this).
[sssm_ad_subdomains_init] (0x2000): Initializing AD subdomains handler
[new_subdomain] (0x0400): Creating [AD.JSTEPHEN] as subdomain of [winchld]!
[ad_subdomains_process] (0x0400): Enabling subdomain WINCHLD.AD.JSTEPHEN
[ad_subdomains_process] (0x2000): Not including primary domain winchld in the subdomain
[ad_subdomains_refresh_done] (0x0400): Subdomains refreshed.
I wrote a test for this but I may have gotten some talloc heirarchy incorrect so please
let me know if there is a problem to fix here.
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/230/head:pr230
git checkout pr230