After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 711675 - Prefill domain entry
Prefill domain entry
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: User Accounts
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Ondrej Holy
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-08 12:57 UTC by Ondrej Holy
Modified: 2014-08-09 12:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
prefil domain entry (1.08 KB, patch)
2013-11-08 12:57 UTC, Ondrej Holy
needs-work Details | Review
prefill domain entry (1.72 KB, patch)
2014-08-07 12:33 UTC, Ondrej Holy
committed Details | Review

Description Ondrej Holy 2013-11-08 12:57:02 UTC
Created attachment 259261 [details] [review]
prefil domain entry

The enterprise domain should be prefilled according the mockup:

https://raw.github.com/gnome-design-team/gnome-mockups/master/system-settings/users/add-enterprise-user-account.png

However current DHCP domain isn't mostly the right one. However if we already have any configured realm, we can use it. Would be better to use last used realm or most used realm if there is configured more of them, however not sure if there is any way to get this info.
Comment 1 Ondrej Holy 2014-07-31 14:37:35 UTC
Review of attachment 259261 [details] [review]:

I'm reviewing it myself, because I've seen it differently in g-i-s...

::: panels/user-accounts/um-account-dialog.c
@@ +680,3 @@
+        /* Prefill domain entry by the existing one */
+        ret = gtk_combo_box_get_active_iter (self->enterprise_domain, &iter);
+        if (!ret) {

This condition isn't sufficient, because it doesn't care about the GtkEntry inside the GtkComboBox. It should be fixed same way as is in g-i-s:

https://git.gnome.org/browse/gnome-initial-setup/tree/gnome-initial-setup/pages/account/gis-account-page-enterprise.c#n638
Comment 2 Ondrej Holy 2014-08-07 12:33:49 UTC
Created attachment 282805 [details] [review]
prefill domain entry

Prefill domain entry similar as is done in g-i-s. However currently I'm unable to test it fully due to the bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1061091
Comment 3 Bastien Nocera 2014-08-07 12:39:14 UTC
Review of attachment 282805 [details] [review]:

Looks good.
Comment 4 Ondrej Holy 2014-08-09 12:33:56 UTC
Comment on attachment 282805 [details] [review]
prefill domain entry

commit e4efd5eafd3659d36b5a8ac818e8f2ada1bba768
Comment 5 Ondrej Holy 2014-08-09 12:34:19 UTC
Thanks for the review :-)