"a userprincipal equivalent to directoryentry.invoke?" Code Answer


The UserPrincipal class is extensible, so you can "surface" more of the properties of the underlying DirectoryEntry object right on your user principal.

Using that extensibility technique, which is explained in the MSDN article Managing Directory Security Principals in the .NET Framework 3.5, you should be able to also make available a custom attribute (which I assume is how you store that password hint in your DirectoryEntry) on an extended UserPrincipal class.

By Debojyoti Ghosh on October 17 2022

Answers related to “a userprincipal equivalent to directoryentry.invoke?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.