Skip to content

Commit

Permalink
Update default setting at a second item
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Jul 14, 2023
1 parent 0eb0dc7 commit eabf230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dataset/dataset-import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set_environment_variables () {
USERS_COUNT="100"
EVENTS_COUNT="100"
SESSIONS_COUNT="100"
HASH_ITERATIONS="20000"
HASH_ITERATIONS="27500"
if ( minikube version &>/dev/null ); then
KEYCLOAK_URI="https://keycloak-keycloak.$(minikube ip || echo 'unknown').nip.io/realms/master/dataset"
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.keycloak.benchmark.dataset.config;

import org.keycloak.credential.hash.Pbkdf2PasswordHashProviderFactory;
import org.keycloak.models.PasswordPolicy;

import static org.keycloak.benchmark.dataset.config.DatasetOperation.CREATE_AUTHZ_CLIENT;
import static org.keycloak.benchmark.dataset.config.DatasetOperation.CREATE_CLIENTS;
Expand Down Expand Up @@ -138,8 +139,8 @@ public class DatasetConfig {
@QueryParamIntFill(paramName = "client-roles-per-user", defaultValue = 4, operations = { CREATE_REALMS, CREATE_USERS })
private Integer clientRolesPerUser;

// Password policy with the amount of password hash iterations. It is 20000 by default
@QueryParamIntFill(paramName = "password-hash-iterations", defaultValue = Pbkdf2PasswordHashProviderFactory.DEFAULT_ITERATIONS, operations = { CREATE_REALMS })
// Password policy with the number of password hash iterations. It is 27500 by default
@QueryParamIntFill(paramName = "password-hash-iterations", defaultValue = PasswordPolicy.HASH_ITERATIONS_DEFAULT, operations = { CREATE_REALMS })
private Integer passwordHashIterations;

// Check if eventStorage will be enabled for newly created realms
Expand Down

0 comments on commit eabf230

Please sign in to comment.