summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-06-30 13:45:35 -0400
committerAdam Young <ayoung@redhat.com>2011-06-30 22:26:19 -0400
commit9d8ddb5d46e13d3e6c53ae968465ecfd53948425 (patch)
tree286085fcf85bbd0bf10be904378ec492c3c70790 /install
parent2a527234656a08342259ebc30af38b68a592ba8a (diff)
downloadfreeipa-9d8ddb5d46e13d3e6c53ae968465ecfd53948425.tar.gz
freeipa-9d8ddb5d46e13d3e6c53ae968465ecfd53948425.tar.xz
freeipa-9d8ddb5d46e13d3e6c53ae968465ecfd53948425.zip
config widgets entity select default group checkbox for migration
Diffstat (limited to 'install')
-rw-r--r--install/ui/serverconfig.js11
-rw-r--r--install/ui/test/data/ipa_init.json23
-rw-r--r--install/ui/widget.js7
3 files changed, 29 insertions, 12 deletions
diff --git a/install/ui/serverconfig.js b/install/ui/serverconfig.js
index 5707d5d71..9779dccae 100644
--- a/install/ui/serverconfig.js
+++ b/install/ui/serverconfig.js
@@ -48,12 +48,19 @@ IPA.entity_factories.config = function(){
fields:[
'ipausersearchfields',
'ipadefaultemaildomain',
- 'ipadefaultprimarygroup',
+ {
+ factory:IPA.entity_select_widget,
+ name: 'ipadefaultprimarygroup',
+ entity: 'group'
+ },
'ipahomesrootdir',
'ipamaxusernamelength',
- 'ipamigrationenabled',
'ipapwdexpadvnotify',
{
+ factory: IPA.checkbox_widget,
+ name: 'ipamigrationenabled'
+ },
+ {
factory: IPA.multivalued_text_widget,
name: 'ipauserobjectclasses'
}
diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json
index 0dd77585e..c3b47ea94 100644
--- a/install/ui/test/data/ipa_init.json
+++ b/install/ui/test/data/ipa_init.json
@@ -8552,7 +8552,7 @@
"flags": [],
"hint": null,
"include": null,
- "label": "Migration mode",
+ "label": "Enable migration mode",
"multivalue": false,
"name": "ipamigrationenabled",
"primary_key": false,
@@ -15878,34 +15878,37 @@
"Administrator"
],
"gidnumber": [
- "85800000"
+ "1965600000"
],
"homedirectory": [
"/home/admin"
],
"ipauniqueid": [
- "f91142a2-a19b-11e0-843c-525400b55a47"
+ "9e262c00-a357-11e0-a074-525400b55a47"
],
"krbextradata": [
{
- "__base64__": "AAKl9AlOcm9vdC9hZG1pbkBTRVJWRVIxNS5BWU9VTkcuQk9TVE9OLkRFVkVMLlJFREhBVC5DT00A"
+ "__base64__": "AAgBAA=="
},
{
- "__base64__": "AAgBAA=="
+ "__base64__": "AAL33AxOcm9vdC9hZG1pbkBTRVJWRVIxNS5BWU9VTkcuQk9TVE9OLkRFVkVMLlJFREhBVC5DT00A"
}
],
"krblastpwdchange": [
- "20110628153501Z"
+ "20110630203047Z"
],
"krblastsuccessfulauth": [
- "20110630175326Z"
+ "20110701022251Z"
],
"krbpasswordexpiration": [
- "20110926153501Z"
+ "20110928203047Z"
],
"krbprincipalname": [
"admin@SERVER15.AYOUNG.BOSTON.DEVEL.REDHAT.COM"
],
+ "krbpwdpolicyreference": [
+ "cn=admins,cn=SERVER15.AYOUNG.BOSTON.DEVEL.REDHAT.COM,cn=kerberos,dc=server15,dc=ayoung,dc=boston,dc=devel,dc=redhat,dc=com"
+ ],
"loginshell": [
"/bin/bash"
],
@@ -15931,7 +15934,7 @@
"admin"
],
"uidnumber": [
- "85800000"
+ "1965600000"
]
}
],
@@ -16021,4 +16024,4 @@
}
]
}
-} \ No newline at end of file
+}
diff --git a/install/ui/widget.js b/install/ui/widget.js
index c2b13778f..a56e55250 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -790,6 +790,13 @@ IPA.checkbox_widget = function (spec) {
that.update = function() {
var value = that.values && that.values.length ? that.values[0] : false;
+ if (value ==="FALSE"){
+ value = false;
+ }
+ if (value ==="TRUE"){
+ value = true;
+ }
+
$('input[name="'+that.name+'"]', that.container).get(0).checked = value;
};