internal abstract void ExpirePassword(AuthenticablePrincipal p);
// // Internal constructor // internal AccountInfo(AuthenticablePrincipal principal) { _owningPrincipal = principal; }
internal abstract void ChangePassword(AuthenticablePrincipal p, string oldPassword, string newPassword);
// // Internal constructor // internal PasswordInfo(AuthenticablePrincipal principal) { _owningPrincipal = principal; }
/// <summary> /// This method sets the default user account control bits for the new principal /// being created in this account store. /// </summary> /// <param name="p"> Principal to set the user account control bits for </param> internal override void InitializeUserAccountControl(AuthenticablePrincipal p) { // In ADAM, there is no user account control property that needs to be initialized // so do nothing }
// methods for manipulating passwords internal abstract void SetPassword(AuthenticablePrincipal p, string newPassword);
protected static PrincipalSearchResult <AuthenticablePrincipal> FindByPasswordSetTime <T>(PrincipalContext context, DateTime time, MatchType type) { AuthenticablePrincipal.CheckFindByArgs(context, time, type, typeof(T)); return(new PrincipalSearchResult <T>(context.QueryCtx.FindByPasswordSetTime(time, type, typeof(T)))); }
static public object APGetValue(AuthenticablePrincipal ap, string name) { return(ap.GetValueForProperty(name)); }
static public void APResetChanges(AuthenticablePrincipal ap) { ap.ResetAllChangeStatus(); }
static public void APLoadValue(AuthenticablePrincipal ap, string name, object value) { ap.LoadValueIntoProperty(name, value); }
static public bool APGetChangeStatus(AuthenticablePrincipal ap, string name) { return(ap.GetChangeStatusForProperty(name)); }
static public void APInitNested(AuthenticablePrincipal ap) { ap.LoadValueIntoProperty(PropertyNames.PwdInfoCannotChangePassword, true); ap.LoadValueIntoProperty(PropertyNames.AcctInfoBadLogonCount, 3); }
// Returns the set of credential types supported by this store for the specified principal. // Used when an application tries to access the PasswordInfo property of a newly-inserted // (not yet persisted) AuthenticablePrincipal, to determine whether it should be allowed. // Also used to implement AuthenticablePrincipal.SupportedCredentialTypes. internal abstract CredentialTypes SupportedCredTypes(AuthenticablePrincipal p);
// Returns true if AccountInfo is supported for the specified principal, false otherwise. // Used when an application tries to access the AccountInfo property of a newly-inserted // (not yet persisted) AuthenticablePrincipal, to determine whether it should be allowed. internal abstract bool SupportsAccounts(AuthenticablePrincipal p);
internal abstract void InitializeUserAccountControl(AuthenticablePrincipal p);
public static PrincipalSearchResult <AuthenticablePrincipal> FindByPasswordSetTime(PrincipalContext context, DateTime time, MatchType type) { return(AuthenticablePrincipal.FindByPasswordSetTime <AuthenticablePrincipal>(context, time, type)); }
internal abstract bool IsLockedOut(AuthenticablePrincipal p);
internal abstract void UnlockAccount(AuthenticablePrincipal p);