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 699293 - Handle case in in user panel where enterprise login needs password change
Handle case in in user panel where enterprise login needs password change
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: User Accounts
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Ondrej Holy
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-30 09:17 UTC by Stef Walter
Modified: 2013-05-06 12:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
user-accounts: When enterprise account disabled, join as admin (4.13 KB, patch)
2013-04-30 09:17 UTC, Stef Walter
none Details | Review
user-accounts: When enterprise account disabled, join as admin (4.37 KB, patch)
2013-04-30 09:30 UTC, Stef Walter
committed Details | Review

Description Stef Walter 2013-04-30 09:17:12 UTC
When adding a newly created (in the domain) FreeIPA or AD user via the user panel as an enterprise login, it's likely that user will need to change password at first login.

This means we can't use their credentials to join the domain. So instead of complaining, we should just fall through to prompting for admin credentials, as we currently do if the user did not have permission to join the machine to the domain on their own.
Comment 1 Stef Walter 2013-04-30 09:17:45 UTC
Created attachment 242892 [details] [review]
user-accounts: When enterprise account disabled, join as admin

When an enterprise login user account is disabled, or needs to have
its password change, just prompt for the administrator to do the join
to the domain. This is exactly the same fall through as if the user
does not have permission to join a machine to a domain.
Comment 2 Stef Walter 2013-04-30 09:30:30 UTC
Created attachment 242893 [details] [review]
user-accounts: When enterprise account disabled, join as admin

When an enterprise login user account is disabled, or needs to have
its password change, just prompt for the administrator to do the join
to the domain. This is exactly the same fall through as if the user
does not have permission to join a machine to a domain.
Comment 3 Stef Walter 2013-04-30 09:30:51 UTC
Discovered during Fedora test days. Downstream Fedora bug is here: https://bugzilla.redhat.com/show_bug.cgi?id=955691
Comment 4 Stef Walter 2013-04-30 09:31:17 UTC
Patch tested on gnome-3-8 branch, applies to master as well.
Comment 5 Stef Walter 2013-05-03 14:04:04 UTC
Ondrej, do you have time to review this change? I'd like to get it in by Monday, in preparation for an upcoming AD test day.
Comment 6 Bastien Nocera 2013-05-06 10:49:26 UTC
Review of attachment 242893 [details] [review]:

::: panels/user-accounts/um-realm-manager.c
@@ +825,3 @@
+        case KRB5_PROG_ETYPE_NOSUPP:
+                g_simple_async_result_set_error (async, UM_REALM_ERROR, UM_REALM_ERROR_CANNOT_AUTH,
+                                                 _("Cannot log in as %s at the %s domain"),

Is that going to be a user-visible error? If not, remove the string for gnome-3-8.
Comment 7 Stef Walter 2013-05-06 11:21:50 UTC
(In reply to comment #6)
> Review of attachment 242893 [details] [review]:
> 
> ::: panels/user-accounts/um-realm-manager.c
> @@ +825,3 @@
> +        case KRB5_PROG_ETYPE_NOSUPP:
> +                g_simple_async_result_set_error (async, UM_REALM_ERROR,
> UM_REALM_ERROR_CANNOT_AUTH,
> +                                                 _("Cannot log in as %s at the
> %s domain"),
> 
> Is that going to be a user-visible error? If not, remove the string for
> gnome-3-8.

It's an exact copy of the string above. That should be fine as far as string freeze, no?
Comment 8 Bastien Nocera 2013-05-06 12:16:09 UTC
I didn't realise that. Looks good then.
Comment 9 Stef Walter 2013-05-06 12:31:17 UTC
Attachment 242893 [details] pushed as 2271a78 - user-accounts: When enterprise account disabled, join as admin
Comment 10 Stef Walter 2013-05-06 12:32:11 UTC
Pushed to master as well