public ApplicationLDSPModel(ApplicationBase app) { this.LDAPDomain = app.LDAPDomain; this.LDAPDomainFQN = app.LDAPDomainFQN; this.LDAPPassword = app.LDAPPassword; this.LDAPUserName = app.LDAPUserName; }
public ApplicationSMTPModel(ApplicationBase app) { this.SMPTPPort = app.SMPTPPort; this.SMTPPassword = app.SMTPPassword; this.SMTPServer = app.SMTPServer; this.SMTPUserName = app.SMTPUserName; this.SMTPEnableSSL = app.SMTPEnableSSL; }
public ApplicationPasswordPolicyModel(ApplicationBase app) { this.PWDDefaultAccountLockoutTimeSpan = app.PWDDefaultAccountLockoutTimeSpan; this.PWDMaxFailedAccessAttemptsBeforeLockout = app.PWDMaxFailedAccessAttemptsBeforeLockout; this.PWDRequireDigit = app.PWDRequireDigit; this.PWDRequiredLength = app.PWDRequiredLength; this.PWDRequireLowercase = app.PWDRequireLowercase; this.PWDRequireNonLetterOrDigit = app.PWDRequireNonLetterOrDigit; this.PWDRequireUppercase = app.PWDRequireUppercase; this.PWDUserLockoutEnabledByDefault = app.PWDUserLockoutEnabledByDefault; }
public ApplicationDetailModel(ApplicationBase app) { AppName = app.AppName; Title = app.Title; MissionStatement = app.MissionStatement; }
public static List<string> GetPasswordPolicy(ApplicationBase app) { List<string> l = new List<string>(); l.Add(string.Format("Contain {0} characters", app.PWDRequiredLength.ToString())); if (app.PWDRequireDigit) l.Add("Contain at least one numeric character"); if (app.PWDRequireLowercase) l.Add("Contain at least one lowercase character"); if (app.PWDRequireUppercase) l.Add("Contain at least one uppercase character"); if (app.PWDRequireNonLetterOrDigit) l.Add("Contain at least one non-aplha-numeric character"); return l; }