AuthenticationHelperAuthenticateUserAD Method |
Authenticates user against the database.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax 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:
UserInfoSee Also