Hello,
I’m currently working on aggregating users from an Active Directory source. However, I’m encountering issues when querying a group whose name contains a “+” character.
This seems to be interfering with the search.
Below are the configuration settings I’m using (note: values shown are syntactically similar but not real):
Search DN:
DC=domain,dc=com
LDAP Search Filter
(& (objectCategory=user)(memberOf=CN=IGOR + BELLEZI Read,OU=XXXX,OU=YYYYYY,OU=ZZZZ,OU=WWWW,OU=AAA (AAA),DC=domain,DC=com))
Group Membership Search DN:
DC=domain,dc=com
Group Membership Search Filter
(&(objectCategory=group)(|(cn=IGOR + BELLEZI Read))
Attempts made so far:
cn=IGOR + BELLEZI Read
cn=IGOR +\ BELLEZI Read
Also, using the Windows Group pre-windows_2000 name
IGOR_BELLEZI
None of these attempts returned any users:
Interestingly, executing the PowerShell command below does work and retrieves group members as expected:
Get-ADGroupMember -Identity “IGOR_BELLEZI” | Select-Object Name, SamAccountName | Export-Csv -Path “C:\TEMP\GrupoAD.csv” -NoTypeInformation
For reference, the group’s distinguished name from AD is:
CN=IGOR + BELLEZI Read,OU=XXXX,OU=YYYYYY,OU=ZZZZ,OU=WWWW,OU=AAA (AAA),DC=domain,DC=com
Does anyone have suggestions or best practices for retrieving users from a group with this naming syntax via LDAP?
Thank you in advance!
Igor Bellezi