0

UserPrincipalName默认提供者为AspNetActiveDirectoryMembershipProvider.

以下是CreateUser方法列表System.Web.Security.Membership

public static MembershipUser CreateUser(string username, string password);
public static MembershipUser CreateUser(string username, string password, string email);
public static MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, out MembershipCreateStatus status);
public static MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status);
4

1 回答 1

1

根据ActiveDirectoryMembershipProvider MSDN 文档,UserName属性映射到userPrincipalName属性。

于 2012-04-23T15:25:04.527 回答