From 9d8ddb5d46e13d3e6c53ae968465ecfd53948425 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Thu, 30 Jun 2011 13:45:35 -0400 Subject: config widgets entity select default group checkbox for migration --- install/ui/serverconfig.js | 11 +++++++++-- install/ui/test/data/ipa_init.json | 23 +++++++++++++---------- install/ui/widget.js | 7 +++++++ 3 files changed, 29 insertions(+), 12 deletions(-) (limited to 'install/ui') 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,11 +48,18 @@ 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; }; -- cgit