There is a strange construct in our sss_domain_info handling code:
while (dom && dom->disabled) {
dom = get_next_domain(dom, true);
}
I wasn't sure if this code was valid at all, so I wrote a test. Turns
out the code is semi-valid -- if the domain you pass in is disabled,
which is technically possible. It could be shortened to "if" instead of
"while", but meh.
At least we have one more test :-)