Example #1
0
 public ApplicationLDSPModel(ApplicationBase app)
 {
     this.LDAPDomain = app.LDAPDomain;
     this.LDAPDomainFQN = app.LDAPDomainFQN;
     this.LDAPPassword = app.LDAPPassword;
     this.LDAPUserName = app.LDAPUserName;
 }
Example #2
0
 public ApplicationSMTPModel(ApplicationBase app)
 {
     this.SMPTPPort = app.SMPTPPort;
     this.SMTPPassword = app.SMTPPassword;
     this.SMTPServer = app.SMTPServer;
     this.SMTPUserName = app.SMTPUserName;
     this.SMTPEnableSSL = app.SMTPEnableSSL;
 }
Example #3
0
 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;
 }
Example #4
0
 public ApplicationDetailModel(ApplicationBase app)
 {
     AppName = app.AppName;
     Title = app.Title;
     MissionStatement = app.MissionStatement;
 }
Example #5
0
        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;
        }