コード例 #1
0
 public ApplicationLDSPModel(ApplicationBase app)
 {
     this.LDAPDomain = app.LDAPDomain;
     this.LDAPDomainFQN = app.LDAPDomainFQN;
     this.LDAPPassword = app.LDAPPassword;
     this.LDAPUserName = app.LDAPUserName;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #4
0
 public ApplicationDetailModel(ApplicationBase app)
 {
     AppName = app.AppName;
     Title = app.Title;
     MissionStatement = app.MissionStatement;
 }
コード例 #5
0
ファイル: ApplicationBase.cs プロジェクト: LCPS/LCPS-NwUsers
        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;
        }