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

Review LDAP lookup using SID, GUID, DN #65

Open
lazywinadmin opened this issue Apr 12, 2019 · 2 comments
Open

Review LDAP lookup using SID, GUID, DN #65

lazywinadmin opened this issue Apr 12, 2019 · 2 comments

Comments

@lazywinadmin
Copy link
Owner

Interesting tweet from Mathias:
https://twitter.com/IISResetMe/status/1116344879624392704

Your periodic reminder that the ADSI LDAP provider supports any distinguished name value (not just the actual DN) in its path when binding to an object:

[adsi]"LDAP://<SID=1-5-21-485916533-229056652-338576073-3519>"

or

[adsi]"LDAP://<GUID=7e1246dd-307e-4417-98ca-2e1b2666e0c8>"

@christophekumor
Copy link
Contributor

Is it not already possible on certain functions ?

.PARAMETER Identity
    Specifies the Identity of the User
    You can provide one of the following properties
    DistinguishedName
    Guid
    Name
    SamAccountName
    Sid
    UserPrincipalName
    Those properties come from the following enumeration:
    System.DirectoryServices.AccountManagement.IdentityType

@lazywinadmin
Copy link
Owner Author

Hum you right @christophekumor
Maybe we should validate all functions (where possible) support that.

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

2 participants