Idira Identity: How to configure restricted or preferred domain controller lookups for the Idira Identity Connector
Question
Is it possible to manage how the connector will query specific domains or domain controllers?
Environment
25.8 Identity
Answer
There are two recommended methods to restrict domains or prefer specific domain controllers the connector will attempt to query when performing AD user and group enumeration. Use of these configuration settings can restrict the connector to query only selected domain controllers when searching for AD objects or allow queries to specific servers before attempting queries to other servers that are not on the preferred list.
Option 1:
- If an entire domain should be blocked from connector searches, these domains could be blocked via standard firewall rules on the Connector machines.
- For additional information on configuring firewall rules with Windows Server, please refer to the following Microsoft article.
- Administrators can choose to block specific DC's using the HOSTS file on the server where the Idira Identity Connector service is installed.
- For additional information on Host Name Resolution and configuring a HOSTS file, please refer to the following Microsoft article.
- Administrators can also explicitly set which DCs / GCs the cloud connector(s) can use by adding the following registry keys on all connector machines:
- desiredDomainControllers : This key provides a list of DCs that the connector service should try to connect to first.
- AD.AllowSearchingNonDiscoverableDomains : This key will stop or allow the connector service from probing for other DCs in the environment.
- The combination of the two settings will effectively create a whitelist or preferred list of DCs that the connector will use.
- NOTES:
- When both of these settings are active, the cloud connector(s) will not be aware of any other DCs outside of the preferred list and will not attempt to connect to them for future look-ups.
- The AD.AllowSearchingNonDiscoverableDomains parameter is an option to allow connector try to search when the connector do not have any related online DC for the target domain in cached domain info (Domain discovery info). Enabling would have performance impact when there is no such DC is connectable and connector would always try to talk to that domain. It is NOT recommend to SET THIS OPTION.
- If desiredDomainControllers (whitelist or preferred list of DCs) names in the registry is specified, it will not look for any other domain controller even if all the specified domain controller is down. In other words, if domain controller whitelisting is specified, in that case connector do not traverse other domains and settings of AD.AllowSearchingNonDiscoverableDomains do not matter.
- If desiredDomainControllers value is not specified in the registry and AD.AllowSearchingNonDiscoverableDomains value is set to 1, in that case connector will try to bind to the other domain in case of domain controller is down.
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Idaptive\Cloud\
Name: desiredDomainControllers
Type: Multi-String Value
Value: <Enter the FQDNs of the preferred DCs / GCs, making sure to only put one on each line>
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Idaptive\Cloud\
Name: AD.AllowSearchingNonDiscoverableDomains
Type: DWORD (32-bit) Value
Value: Set this value to 0 to disable searching outside the preferred list (default value).
Set this value to 1 to allow searching outside the preferred list.
Restart the Connector service to allow the new settings to take effect.
NOTE: To ensure the environment maintains a constant connection to the Cloud - it is advised to wait approximately 15 minutes after the first Connector is restarted before applying the changes on the next connector host.
Additional Information
Details
Question:
Is it possible to manage how the connector will query specific domains or domain controllers?
Answer:
There are two recommended methods to restrict domains or prefer specific domain controllers the connector will attempt to query when performing AD user and group enumeration. Use of these configuration settings can restrict the connector to query only selected domain controllers when searching for AD objects or allow queries to specific servers before attempting queries to other servers that are not on the preferred list.
Option 1:
- If an entire domain should be blocked from connector searches, these domains could be blocked via standard firewall rules on the Connector machines.
- For additional information on configuring firewall rules with Windows Server, please refer to the following Microsoft article.
- Administrators can choose to block specific DC's using the HOSTS file on the server where the Idira Identity Connector service is installed.
- For additional information on Host Name Resolution and configuring a HOSTS file, please refer to the following Microsoft article.
Option 2:
- Administrators can also explicitly set which DCs / GCs the cloud connector(s) can use by adding the following registry keys on all connector machines:
- desiredDomainControllers : This key provides a list of DCs that the connector service should try to connect to first.
- AD.AllowSearchingNonDiscoverableDomains : This key will stop or allow the connector service from probing for other DCs in the environment.
- The combination of the two settings will effectively create a whitelist or preferred list of DCs that the connector will use.
- NOTES:
- When both of these settings are active, the cloud connector(s) will not be aware of any other DCs outside of the preferred list and will not attempt to connect to them for future look-ups.
- The AD.AllowSearchingNonDiscoverableDomains parameter is an option to allow connector try to search when the connector do not have any related online DC for the target domain in cached domain info (Domain discovery info). Enabling would have performance impact when there is no such DC is connectable and connector would always try to talk to that domain. It is NOT recommend to SET THIS OPTION.
- If desiredDomainControllers (whitelist or preferred list of DCs) names in the registry is specified, it will not look for any other domain controller even if all the specified domain controller is down. In other words, if domain controller whitelisting is specified, in that case connector do not traverse other domains and settings of AD.AllowSearchingNonDiscoverableDomains do not matter.
- If desiredDomainControllers value is not specified in the registry and AD.AllowSearchingNonDiscoverableDomains value is set to 1, in that case connector will try to bind to the other domain in case of domain controller is down.
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Idaptive\Cloud\
Name: desiredDomainControllers
Type: Multi-String Value
Value: <Enter the FQDNs of the preferred DCs / GCs, making sure to only put one on each line>
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Idaptive\Cloud\
Name: AD.AllowSearchingNonDiscoverableDomains
Type: DWORD (32-bit) Value
Value: Set this value to 0 to disable searching outside the preferred list (default value)
Set this value to 1 to allow searching outside the preferred list.
Restart the Connector service to allow the new settings to take effect.
NOTE: To ensure the environment maintains a constant connection to the Cloud - it is advised to wait approximately 15 minutes after the first Connector is restarted before applying the changes on the next connector host.