| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | defaultSchemes = p.getDefaultStorageSchemes(); |
| | | assertNotNull(defaultSchemes); |
| | | assertFalse(defaultSchemes.isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | defaultSchemes = p.getDefaultStorageSchemes(); |
| | | assertNotNull(defaultSchemes); |
| | | assertFalse(defaultSchemes.isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.isDefaultStorageScheme("BASE64")); |
| | | assertFalse(p.isDefaultStorageScheme("SSHA")); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.isDefaultStorageScheme("MD5")); |
| | | assertFalse(p.isDefaultStorageScheme("SHA1")); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | deprecatedSchemes = p.getDeprecatedStorageSchemes(); |
| | | assertNotNull(deprecatedSchemes); |
| | | assertFalse(deprecatedSchemes.isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | deprecatedSchemes = p.getDeprecatedStorageSchemes(); |
| | | assertNotNull(deprecatedSchemes); |
| | | assertFalse(deprecatedSchemes.isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.isDeprecatedStorageScheme("BASE64")); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.isDeprecatedStorageScheme("MD5")); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertNotNull(p.getPasswordValidators()); |
| | | assertFalse(p.getPasswordValidators().isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertNotNull(p.getPasswordValidators()); |
| | | assertFalse(p.getPasswordValidators().isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertNotNull(p.getAccountStatusNotificationHandlers()); |
| | | assertFalse(p.getAccountStatusNotificationHandlers().isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertNotNull(p.getAccountStatusNotificationHandlers()); |
| | | assertFalse(p.getAccountStatusNotificationHandlers().isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertFalse(p.allowUserPasswordChanges()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertFalse(p.allowUserPasswordChanges()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.requireCurrentPassword()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.allowUserPasswordChanges()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.forceChangeOnAdd()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.forceChangeOnAdd()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.forceChangeOnReset()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.forceChangeOnReset()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.skipValidationForAdministrators()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.skipValidationForAdministrators()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertNull(p.getPasswordGenerator()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertNull(p.getPasswordGenerator()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertNull(p.getPasswordGenerator()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertNull(p.getPasswordGenerator()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.requireSecureAuthentication()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.requireSecureAuthentication()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.requireSecurePasswordChanges()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.requireSecurePasswordChanges()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.allowMultiplePasswordValues()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.allowMultiplePasswordValues()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.allowPreEncodedPasswords()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.allowPreEncodedPasswords()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getMinimumPasswordAge(), (24*60*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getMinimumPasswordAge(), (24*60*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getMaximumPasswordAge(), (90*60*60*24)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getMaximumPasswordAge(), (90*60*60*24)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getMaximumPasswordResetAge(), (24*60*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getMaximumPasswordResetAge(), (24*60*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getWarningInterval(), (24*60*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getWarningInterval(), (24*60*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.expirePasswordsWithoutWarning()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.expirePasswordsWithoutWarning()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertTrue(p.allowExpiredPasswordChanges()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertTrue(p.allowExpiredPasswordChanges()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getGraceLoginCount(), 3); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getGraceLoginCount(), 3); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getLockoutFailureCount(), 3); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getLockoutFailureCount(), 3); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getLockoutDuration(), (15*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getLockoutDuration(), (15*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getLockoutFailureExpirationInterval(), (10*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getLockoutFailureExpirationInterval(), (10*60)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getRequireChangeByTime(), 1000); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getRequireChangeByTime(), 1000); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertNotNull(p.getLastLoginTimeAttribute()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertNotNull(p.getLastLoginTimeAttribute()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getLastLoginTimeFormat(), "yyyyMMdd"); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getLastLoginTimeFormat(), "yyyyMMdd"); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertNotNull(p.getPreviousLastLoginTimeFormats()); |
| | | assertFalse(p.getPreviousLastLoginTimeFormats().isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertNotNull(p.getPreviousLastLoginTimeFormats()); |
| | | assertFalse(p.getPreviousLastLoginTimeFormats().isEmpty()); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getDefaultPasswordPolicy(); |
| | | assertEquals(p.getIdleLockoutInterval(), (90*60*60*24)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |
| | |
| | | |
| | | p = DirectoryServer.getPasswordPolicy(dn); |
| | | assertEquals(p.getIdleLockoutInterval(), (90*60*60*24)); |
| | | p.toString(); |
| | | |
| | | TestCaseUtils.dsconfig( |
| | | "set-password-policy-prop", |