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

Convert-Principal does not fail on unresolved identity #86

Open
FriedrichWeinmann opened this issue Jul 10, 2024 · 0 comments
Open

Convert-Principal does not fail on unresolved identity #86

FriedrichWeinmann opened this issue Jul 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@FriedrichWeinmann
Copy link
Member

When invoking an access rule where it tries to create a new access rule, it resolves that accessrule identity using Convert-Principal.
When translating a name fails, it falls back to using Get-ADObject with an ldap filter.
If that fails to find an object, it will return empty and not lead to an error.

Following that, the access rule creation fails with a constructor error, as it gets a null-identity!

@FriedrichWeinmann FriedrichWeinmann added the bug Something isn't working label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant