Click or drag to resize
AuthenticationHelperAuthenticateUserAD Method
Authenticates user against the database.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static UserInfo AuthenticateUserAD(
	string username,
	string password,
	string siteName,
	MembershipProvider membershipProvider = null,
	RoleProvider roleProvider = null
)

Parameters

username
Type: SystemString
User name to authenticate
password
Type: SystemString
Password to authenticate
siteName
Type: SystemString
Site name
membershipProvider (Optional)
Type: System.Web.SecurityMembershipProvider
Instance of the MembershipProvider to use. If not specified the membership provider specified in .config file is used
roleProvider (Optional)
Type: System.Web.SecurityRoleProvider
Instance of RoleProvider to use. If not specified the role provider specified in .config file is used.

Return Value

Type: UserInfo
See Also