Detect non-AD server at initialization time and throw an InvalidConfigurationException upon detection. This fixes b/7061071.