Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifications to LDAP Filter Don't Appear to Work #90

Open
ccgthree opened this issue Nov 15, 2024 · 1 comment
Open

Modifications to LDAP Filter Don't Appear to Work #90

ccgthree opened this issue Nov 15, 2024 · 1 comment

Comments

@ccgthree
Copy link

Our organization's user-base includes guest accounts for non-accredited continuing education programs and other types of "uncommon" users. We distinguish these users in AD with an "EduPersonPrimaryAffiliation" attribute. Some of these users have accounts related to those continuing education programs alongside their normal/standard accounts. for identification purposes, both the guest and regular accounts have the same mail address.

We intend to block guest accounts from being synced to Entra from AD.

While running IdFix, I found that filter modifications to exclude users with EduPersonPrimaryAffiliation still returned those objects. And, in our case, those are the only objects producing any errors, according to IdFix.

The filter I (tried) to use is as follows:

(&(|(objectCategory=Person)(objectCategory=Group))(!(eduPersonPrimaryAffiliation=GUEST))(!(eduPersonPrimaryAffiliation=VOLUNTEER))(!(eduPersonPrimaryAffiliation=RETIRED))(!(eduPersonPrimaryAffiliation=ENTITY)))

is this expected behavior?

@ccgthree
Copy link
Author

I should have added: The above filter works as expected when run against AD using standard cmdlets like Get-ADObject or other tools such as ldapsearch.

@ccgthree ccgthree changed the title Modifications to LDAP Filter Doesn't Appear to Work Modifications to LDAP Filter Don't Appear to Work Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant