This documentation is archived and is not being maintained.

PrincipalContext.ValidateCredentials Method

Creates the connection to the server and validates the specified credentials if the connection is successful.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method ValidateCredentials(String, String) Creates the connections to the server and returns a Boolean value that specifies whether the specified username and password are valid.
Public method ValidateCredentials(String, String, ContextOptions) Creates the connections to the server and returns a Boolean value that specifies whether the specified user name and password are valid. This method performs fast credential validation of the username and password.
Top

In each version of this function, the userName string can be in one of a variety of different formats. For a complete list of the acceptable types of formats, see the ADS_NAME_TYPE_ENUM documentation here.

Show: