summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-05-10 16:38:10 -0500
committerAdam Young <ayoung@redhat.com>2011-05-11 11:17:30 -0400
commitd5469d9b7515c7f2f461e01ea17c9cedd1392a93 (patch)
tree4259e19d84f191a30bd09eb6483c0e86f8dfcc18 /install
parentabadf9ec0d8dd15368a8c24616eb6a9439d9c927 (diff)
downloadfreeipa-d5469d9b7515c7f2f461e01ea17c9cedd1392a93.tar.gz
freeipa-d5469d9b7515c7f2f461e01ea17c9cedd1392a93.tar.xz
freeipa-d5469d9b7515c7f2f461e01ea17c9cedd1392a93.zip
Added UUID field for entitlement registration.
The dialog box for entitlement registration has been modified to accept an optional enrollment UUID.
Diffstat (limited to 'install')
-rw-r--r--install/ui/entitle.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/install/ui/entitle.js b/install/ui/entitle.js
index 6368ba8e9..604bea907 100644
--- a/install/ui/entitle.js
+++ b/install/ui/entitle.js
@@ -89,6 +89,11 @@ IPA.entity_factories.entitle = function() {
label: IPA.get_method_option('entitle_register', 'password').label,
type: 'password',
undo: false
+ },
+ {
+ name: 'ipaentitlementid',
+ label: IPA.get_method_option('entitle_register', 'ipaentitlementid').label,
+ undo: false
}
]
}).
@@ -188,13 +193,16 @@ IPA.entitle.entity = function(spec) {
command.execute();
};
- that.register_online = function(username, password, on_success, on_error) {
+ that.register_online = function(username, password, ipaentitlementid, on_success, on_error) {
var command = IPA.command({
entity: 'entitle',
method: 'register',
args: [ username ],
- options: { password: password },
+ options: {
+ password: password,
+ ipaentitlementid: ipaentitlementid
+ },
on_success: function(data, text_status, xhr) {
that.status = IPA.entitle.online;
if (on_success) {
@@ -454,6 +462,7 @@ IPA.entitle.register_online_dialog = function(spec) {
that.entity.register_online(
record.username,
record.password,
+ record.ipaentitlementid,
function() {
var facet = that.entity.get_facet('search');
facet.refresh();