Skip to content

Commit

Permalink
Mark CredentialService configurations as "allowSelfEdit"
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
  • Loading branch information
Claudio Mezzasalma committed Dec 9, 2020
1 parent 53b8a9a commit eb6cc38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public void setConfigValues(KapuaId scopeId, KapuaId parentId, Map<String, Objec

if (preventChange) {
// ... prevent the change!
throw KapuaException.internalError(String.format("The configuration \"%s\" cannot be changed from an user of the account", ad.getId()));
throw KapuaException.internalError(String.format("The configuration \"%s\" cannot be changed by this user in this account", ad.getId()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
cardinality="0"
required="true"
default="true"
allowSelfEdit="true"
description="User lockout policy enable.">
</AD>

Expand All @@ -34,6 +35,7 @@
required="true"
default="3"
min="0"
allowSelfEdit="true"
description="Number of consecutive login failures before the user gets locked. Valid if lockout policy is enabled."/>

<AD id="lockoutPolicy.resetAfter"
Expand All @@ -43,6 +45,7 @@
required="true"
default="3600"
min="0"
allowSelfEdit="true"
description="The amount of time in seconds required after the last login failure to automatically reset the failure counter."/>

<AD id="lockoutPolicy.lockDuration"
Expand All @@ -52,6 +55,7 @@
required="true"
default="10800"
min="0"
allowSelfEdit="true"
description="For a locked user the amount of time in seconds required after the last login failure to automatically unlock the user."/>

<AD id="password.minLength"
Expand All @@ -62,6 +66,7 @@
default=""
min="0"
max="255"
allowSelfEdit="true"
description="The minimum length of the password. Changing this won't affect existing passwords. This value cannot be less than the system default value. If empty, system default value will be used."/>
</OCD>

Expand Down

0 comments on commit eb6cc38

Please sign in to comment.