My requirement is to get the list of users, and group info from both AD and LDAP groups then get each user's information.
Right now I'm able to get the AD-Group info by using the below PowerShell scripts. I want to convert them to Python in a Windows environment.
Get the group Info:
Get- ADGroupMember -Identify TEST_GRP_NM | select distinguishName | ft
Get-AdUser -filter{Name -like "GROUP_NM"} -Properties *
Get the user info:
Get-AdUser -Server "DOMAIN" -Identify "NTID" -Properties MemberOf
Note: Need to achieve the list of users from the LDAP group without using LDAP username and password
Thanks.