You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use microsoft.ad.group to add members to an already existing group. This module complains it cannot find some groups that should be added as members. The groups it cannot find are groups that have a sAMAccountName with more than 20 characters.
I know there was an antique limit of 20 characters for sAMAccountNames. But since Winodows Server 2000, we can have sAMAccountNames with max. length of 256.
The deprecated community.windows.win_domain_group_membership module actually can handle members whose names are longer than 20 characters.
fatal: [hostname]: FAILED! => changed=false
distinguished_name: CN=Protected Users,CN=Users,DC=my,DC=domain,DC=com
msg: 'Failed to find the following ad objects for group members: ''GroupNameWayTooLongAndNotOK'''
object_guid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
The text was updated successfully, but these errors were encountered:
Little to add except I have the exact same issue...
Any workaround available to actually find those groups with the microsoft.ad.group module at the moment?
Little to add except I have the exact same issue... Any workaround available to actually find those groups with the microsoft.ad.group module at the moment?
@BenLangers You can still use community.windows.win_domain_group_membership instead, as long as it is available.
SUMMARY
I use
microsoft.ad.group
to add members to an already existing group. This module complains it cannot find some groups that should be added as members. The groups it cannot find are groups that have a sAMAccountName with more than 20 characters.I know there was an antique limit of 20 characters for sAMAccountNames. But since Winodows Server 2000, we can have sAMAccountNames with max. length of 256.
The deprecated
community.windows.win_domain_group_membership
module actually can handle members whose names are longer than 20 characters.ISSUE TYPE
COMPONENT NAME
group
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Target OS: Windows Server 2019
STEPS TO REPRODUCE
EXPECTED RESULTS
OK
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: