private void MapPasswrodPolicyToPasswordPolicyItemType(passwordpolicy_item passwordItemType, PasswordPolicyHelper.USER_MODALS_INFO_0 passwordPolicies)
        {
            var maxPasswordAge        = passwordPolicies.usrmod0_max_passwd_age.ToString();
            var minPasswordAge        = passwordPolicies.usrmod0_min_passwd_age.ToString();
            var minPasswordLength     = passwordPolicies.usrmod0_min_passwd_len.ToString();
            var passwordHistoryLength = passwordPolicies.usrmod0_password_hist_len.ToString();

            passwordItemType.max_passwd_age    = OvalHelper.CreateItemEntityWithIntegerValue(maxPasswordAge);
            passwordItemType.min_passwd_age    = OvalHelper.CreateItemEntityWithIntegerValue(minPasswordAge);
            passwordItemType.min_passwd_len    = OvalHelper.CreateItemEntityWithIntegerValue(minPasswordLength);
            passwordItemType.password_hist_len = OvalHelper.CreateItemEntityWithIntegerValue(passwordHistoryLength);
        }
Exemplo n.º 2
0
 private void MapDomainPasswrodInformationToPasswordPolicyItemType(passwordpolicy_item passwordItemType, PasswordPolicySamServer.DomainPasswordInformation?passwordInfo)
 {
     passwordItemType.password_complexity   = OvalHelper.CreateBooleanEntityItemFromBoolValue(passwordInfo.HasValue? (bool?)passwordInfo.Value.PasswordComplex: null);
     passwordItemType.reversible_encryption = OvalHelper.CreateBooleanEntityItemFromBoolValue(passwordInfo.HasValue ? (bool?)passwordInfo.Value.PasswordReversibleEncryption : null);
 }