diff --git a/src/sunstone/public/app/tabs/settings-tab/panels/user-config.js b/src/sunstone/public/app/tabs/settings-tab/panels/user-config.js
index ee87fbb587..48f6fb119f 100644
--- a/src/sunstone/public/app/tabs/settings-tab/panels/user-config.js
+++ b/src/sunstone/public/app/tabs/settings-tab/panels/user-config.js
@@ -70,7 +70,11 @@ define(function(require) {
*/
function _html() {
- return TemplateEasyInfo({"languageOptions": Locale.language_options});
+ this.cantChangePassword = parseInt(this.element.ID) <= 1;
+ return TemplateEasyInfo({
+ 'languageOptions': Locale.language_options,
+ 'cantChangePassword': this.cantChangePassword
+ });
}
function _setup(context) {
diff --git a/src/sunstone/public/app/tabs/settings-tab/panels/user-config/html.hbs b/src/sunstone/public/app/tabs/settings-tab/panels/user-config/html.hbs
index dde7b2f54f..167e288b27 100644
--- a/src/sunstone/public/app/tabs/settings-tab/panels/user-config/html.hbs
+++ b/src/sunstone/public/app/tabs/settings-tab/panels/user-config/html.hbs
@@ -75,9 +75,18 @@
+ {{#if cantChangePassword}}
+
+ Special Cloud administrator accounts (oneadmin and serveradmin)
+ cannot be changed in Sunstone as authorization files need to be changed
+ to ensure the proper functioning of the OpenNebula cloud. Please follow the
+
documentation
+ for this task.
+
+ {{/if}}
- {{tr "Update Password"}}
+ {{tr "Update Password"}}
diff --git a/src/sunstone/public/app/tabs/users-tab/dialogs/password.js b/src/sunstone/public/app/tabs/users-tab/dialogs/password.js
index f2edfa9990..7b45e8a1e3 100644
--- a/src/sunstone/public/app/tabs/users-tab/dialogs/password.js
+++ b/src/sunstone/public/app/tabs/users-tab/dialogs/password.js
@@ -43,7 +43,7 @@ define(function(require) {
this.userCreation = new UserCreation(DIALOG_ID,
{name: false, auth_driver: false, group_select: false});
-
+
BaseDialog.call(this);
}
@@ -70,9 +70,11 @@ define(function(require) {
}
function _html() {
+ this.cantChangePassword = parseInt(this.selectedElements) <= 1;
return TemplateHTML({
'dialogId': this.dialogId,
- 'userCreationHTML': this.userCreation.html()
+ 'cantChangePassword': this.cantChangePassword,
+ 'userCreationHTML': this.userCreation.html()
});
}
diff --git a/src/sunstone/public/app/tabs/users-tab/dialogs/password/html.hbs b/src/sunstone/public/app/tabs/users-tab/dialogs/password/html.hbs
index 2022041fd5..b079d7c0ce 100644
--- a/src/sunstone/public/app/tabs/users-tab/dialogs/password/html.hbs
+++ b/src/sunstone/public/app/tabs/users-tab/dialogs/password/html.hbs
@@ -25,8 +25,17 @@
{{{userCreationHTML}}}
+ {{#if cantChangePassword}}
+
+ Special Cloud administrator accounts (oneadmin and serveradmin)
+ cannot be changed in Sunstone as authorization files need to be changed
+ to ensure the proper functioning of the OpenNebula cloud. Please follow the
+
documentation
+ for this task.
+
+ {{/if}}
-
+
{{tr "Change"}}