ansible-collections / community.windows

Windows community collection for Ansible
https://galaxy.ansible.com/community/windows
GNU General Public License v3.0
206 stars 161 forks source link

Add multi-domains support #483

Closed pierre-claranet closed 1 year ago

pierre-claranet commented 1 year ago
SUMMARY

Added multi-domains support:

ISSUE TYPE
COMPONENT NAME

win_domain_user

ADDITIONAL INFORMATION
jborean93 commented 1 year ago

As mentioned in https://github.com/ansible-collections/community.windows/pull/481#issuecomment-1399707946, this module will be deprecated sometime soon and we are trying to avoid adding new features to it.

This might be a feature that could be implemented in the microsoft.ad collection but it would have to be generic enough to work for more than just the user module.

pierre-claranet commented 1 year ago

Hello @jborean93, I see your point. The "multi domain" feature main logic is generic (query an AD global catalog DC to get the target object). This PR was containing more changes because in case of the user module we are also managing groups, it is a specific and more complex case. I'll probably try again by openning a new PR on the microsoft.ad.user module, and maybe other if I have the time.