Utils_DirectoryServicesValidateUserLogin Method |
Checks if a user login exists and gets the corresponding principal if found.
Namespace:
MicaSystems.Utils
Assembly:
MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax public static UserPrincipal ValidateUserLogin(
string userLogin,
Dictionary<string, PrincipalContext> contextsCache = null
)
Parameters
- userLogin
- Type: SystemString
User complete login 'DOMAIN\USERNAME'. - contextsCache (Optional)
- Type: System.Collections.GenericDictionaryString, PrincipalContext
Optional cache of contexts if available.
Return Value
Type:
UserPrincipalPair of values : True + User if found, False otherwise.
See Also