Commit graph

52 commits

Author SHA1 Message Date
Ondrej Holy
60e1999618 user-accounts: add password generation to the add user dialog
https://bugzilla.gnome.org/show_bug.cgi?id=706067
2013-08-16 23:08:44 +02:00
Ondrej Holy
12da80928e user-accounts: let realmd prefil the DHCP domain if it's joinable
https://bugzilla.gnome.org/show_bug.cgi?id=704407
2013-08-16 22:47:18 +02:00
Ondrej Holy
cb056263fd user-accounts: Hint improvements when adding enterprise accounts
Add domain hint and change error messages.

https://bugzilla.gnome.org/show_bug.cgi?id=704407
2013-08-16 22:24:19 +02:00
Ondrej Holy
a4bac32271 user-accounts: move strength meter below in the add user dialog
Remove strength hint, add verify hint, change labels and replace domain spinner
by dialog spinner.

https://bugzilla.gnome.org/show_bug.cgi?id=704407
2013-08-16 22:24:05 +02:00
Stef Walter
7ae6814784 user-accounts: Validate dialog immediately when enter is pressed
This allows users to touch type passwords, press <ENTER> without
waiting for the pasword timeout to clear.

https://bugzilla.gnome.org/show_bug.cgi?id=702476
2013-08-16 21:56:29 +02:00
Stef Walter
7b3746af23 user-accounts: Don't disable the verify password entry
This completely breaks pressing <TAB> to get to the next
control in the dialog, especially when immediately typing
a password.

https://bugzilla.gnome.org/show_bug.cgi?id=702476
2013-08-16 21:56:29 +02:00
Ondrej Holy
af691e6122 user-accounts: add positive confirmation to the add user dialog
Add checkmarks, remove exclam icons and decrese timeout (by design).

https://bugzilla.gnome.org/show_bug.cgi?id=702476
2013-08-16 21:56:29 +02:00
Ondrej Holy
7f3f853fb3 user-accounts: username generation fix
https://bugzilla.gnome.org/show_bug.cgi?id=703748
2013-08-15 09:16:39 +02:00
Ondrej Holy
39e6b6d044 user-accounts: Info message when we are offline
https://bugzilla.gnome.org/show_bug.cgi?id=702477
2013-08-14 22:29:53 +02:00
Stef Walter
66893e9f40 user-accounts: Remove some unused code in UmAccountDialog
We don't use UmAccountDialog.mode_areas

https://bugzilla.gnome.org/show_bug.cgi?id=705990
2013-08-14 16:02:21 +02:00
Ondrej Holy
0510baa660 user-accounts: Remove a domain validation error icon
https://bugzilla.gnome.org/show_bug.cgi?id=702479
2013-08-07 18:37:38 +02:00
Jonh Wendell
7e62ec47ce user-accounts: really selects the newly-created user
complement to f438da7c3b

make sure to only return the newly created User object when
it is fully loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=704426
2013-07-30 09:47:23 -03:00
Ondrej Holy
8c43927d83 user-accounts: fix compilation warning and function name
https://bugzilla.gnome.org/show_bug.cgi?id=704741
2013-07-24 10:17:59 +02:00
Ondrej Holy
86e45a5c74 user-accounts: Add user account dialog redesign
https://bugzilla.gnome.org/show_bug.cgi?id=689344
2013-06-05 16:43:12 +01:00
Stef Walter
bd5ab94843 user-accounts: After the add account dialog is cancelled, discard results
When closing the dialog, we cancel the cancellable, but don't
wait for all the async calls to complete before closing the dialog
so discard results when they come in.

https://bugzilla.gnome.org/show_bug.cgi?id=700958
2013-06-04 11:28:50 +01:00
Stef Walter
5cf76cb0b6 user-accounts: Fix memory leak of realm proxy
https://bugzilla.gnome.org/show_bug.cgi?id=701060
2013-05-28 12:41:19 +02:00
Stef Walter
c5b24e57f2 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.

https://bugzilla.gnome.org/show_bug.cgi?id=699293
2013-05-06 14:31:49 +02:00
Stef Walter
a3d7891670 user-accounts: Make Enter work in the 'Add Account' dialogue
Fix various controls where pressing enter did nothing.

https://bugzilla.gnome.org/show_bug.cgi?id=698262
2013-04-24 08:59:50 +02:00
Stef Walter
e84bb4983c user-accounts: Reacquire permissions before adding account
If necessary, reacquire permissions before starting to add an
account.

https://bugzilla.gnome.org/show_bug.cgi?id=698276
2013-04-24 08:59:50 +02:00
Cosimo Cecchi
eb573a72e5 user-accounts: use a GResource for GtkBuilder UI definition and icons
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:23 +01:00
Ryan Lortie
d46a23a5a2 user-accounts: port to libaccountsservice
This removes a bunch of duplicated code, and also drops
a direct dependency on libsystemd-login.

https://bugzilla.gnome.org/show_bug.cgi?id=671858
2013-01-03 11:39:58 -05:00
Jasper St. Pierre
720c0d25cf user-accounts: Fix a few tiny error leaks
https://bugzilla.gnome.org/show_bug.cgi?id=690085
2012-12-12 12:49:48 +01:00
Stef Walter
48ae461991 user-accounts: Don't have domains twice in the drop down
If we discover domains again, don't add them twice to the drop
down and confuse the user. This is especially important if we
receive two realms from realmd for the same domain for use with
different clients (ie: sssd/winbind). We only want to offer the
first choice

https://bugzilla.gnome.org/show_bug.cgi?id=686397
2012-10-19 10:46:53 +02:00
Stef Walter
65aaaf9d04 user-accounts: Add debug messages to user creation and realm procedures
https://bugzilla.gnome.org/show_bug.cgi?id=684185
2012-09-17 14:27:06 +02:00
Matthias Clasen
a955ec4152 Switch files created by me to GPLv2+
This matches the rest of the control-center code base.
https://bugzilla.gnome.org/show_bug.cgi?id=683420
2012-09-06 19:07:09 -04:00
Stef Walter
3aab3eb358 user-accounts: Update for realmd DBus interface changes
* DBus interface was reviewed and there were several things added
   to make it more generic and useful for other realm types.
 * Use ObjectManager to track objects in realmd. This facilitates
   using realmd with the way it now uses multiple interfaces
   on objects.

https://bugzilla.gnome.org/show_bug.cgi?id=682185
2012-08-20 12:11:22 +02:00
Stef Walter
4e67ecc456 user-accounts: Cleanup GVariant usage
* Don't call g_variant_ref_sink() unnecessarily.
 * Don't call g_variant_new_variant() unnecessarily.

https://bugzilla.gnome.org/show_bug.cgi?id=680892
2012-08-08 14:24:19 +02:00
Matthias Clasen
9db6b3c5f5 Trivial: fix a typo 2012-08-07 09:58:29 -04:00
Stef Walter
1f4aeb1d05 user-panel: Update to new DBus interface for realmd 0.6
* In particular support of different credential methods and better
   hints for different owners of those credentials, so we can prompt
   more cleanly.
 * Less abstraction in the realmd interfaces

https://bugzilla.gnome.org/show_bug.cgi?id=680892
2012-08-06 19:13:34 +02:00
Stef Walter
fb6833e57a user-panel: Strip remote dbus error before showing error
* GDBus transfers dbus error codes in the error->message so strip that
   out before display

https://bugzilla.gnome.org/show_bug.cgi?id=680889
2012-08-02 10:06:19 +02:00
Rico Tzschichholz
f2df6d7fbb user-accounts: Fix build with -Werror=format-security 2012-07-03 13:54:38 +02:00
Stef Walter
973adfa43b user-accounts: Update the realmd dbus interface to latest
The changes in the realmd dbus interface are futureproofing to
support cancellation.

In addition during this time of interface flux, check the
daemon version number to make sure we can talk to it.

https://bugzilla.gnome.org/show_bug.cgi?id=678105
2012-06-22 16:29:51 +02:00
Stef Walter
2589fcfb19 user-accounts: Properly fill the join prompt dialog
When prompting users for administrative domain credentials,
correctly fill the dialog the first time the prompt is shown.

https://bugzilla.gnome.org/show_bug.cgi?id=677954
2012-06-13 13:06:55 +02:00
Stef Walter
4bb0739670 user-accounts: Implement enterprise logins in add dialog
* Use realmd for domain joining and lookup, runtime dependency
 * Validate join domain correctly
 * Add UmRealmManager for handling some stuff above the autogenerated
   realmd dbus code
 * Show a dialog if the user's credentials cannot be used to join
   the domain. Prompt for admin creds.
 * Register the user's login with the AccountsService
 * This depends on the CacheUser() method of AccountsService

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:31:48 +02:00
Stef Walter
228347e713 user-accounts: Add way to change modes
Add the buttons to switch between the local account and
enterprise modes.

The enterprise area just has a place holder widget for now.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:27:21 +02:00
Stef Walter
3a7ee1bff9 user-accounts: Cleaner validation and validate on open
Clean up the validation so we can plug in the enterprise
login stuff.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
67066255ba user-accounts: Separate local account stuff in accounts dialog
Separate the local account stuff a bit so when the enterprise
stuff comes in it's still readable.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
2e0623e7d5 user-accounts: Title of accounts dialog becomes "Add Account"
This title makes sense for both remote and local users. In the
case of remote users we're not creating accounts, we're just
adding them to the system.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
2a545187da user-accounts: Show a spinner during account dialog actions
During actions which can run a long time show a spinner
indicating that something is going on.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:29 +02:00
Stef Walter
2e228b9992 user-accounts: Cleaner interaction with UmAccountDialog actions
More clear scoping and interaction with running actions in
UmAccountDialog. In later 'enterprise login' patches we have long
running actions that's why this needs cleaning up.

In particular:

 * Show errors as children of the dialog.
 * Errors don't make the account dialog go away, user can correct
   problems.
 * Use more standard GAsyncResult style callbacks:
   um_account_dialog_perform() um_account_dialog_finish()
 * Disable controls while the operation is happening.
 * Allow the user to cancel long actions in UmAccountDialog by
   pressing the cancel button.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:03:27 +02:00
Stef Walter
5fbce5f8da user-accounts: UmAccountDialog shouldn't be valid when shown
The user needs to enter some data before the dialog's 'Create'
button can be clicked.

https://bugzilla.gnome.org/show_bug.cgi?id=677928
2012-06-12 10:35:45 +02:00
Stef Walter
5b022773b3 user-accounts: Fix memory leak of GtkBuilder in accounts dialog
https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 09:48:32 +02:00
Stef Walter
195e0137b2 user-accounts: Don't refer to UmAccountDialog as um
It's confusing to read; it reads as 'user manager'. Since this
is a GObject, just use self as customary.

Most of these lines change in later commits anyway, so this won't
really pollute the 'git blame'

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 09:30:04 +02:00
Stef Walter
6aff0f9a86 user-accounts: Make UmAccountDialog a GtkDialog
The dialog will get much more complex due to 'enterprise login'
work and we want a proper object here.

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 09:18:17 +02:00
Stef Walter
a5dc2b80cc user-accounts: Remove unused MAXNAMELEN definition
https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 08:51:49 +02:00
Matthias Clasen
aef79bbf79 Move username related utilities to um-utils.[hc]
This will make it easier to reuse them in gdm-initial-setup.
2011-05-18 21:20:39 -04:00
Bastien Nocera
21b79f3045 user-accounts: Fix uninstalled files location
Uninstalled .ui files aren't in ../data/ anymore, but in data/
2011-01-21 14:49:04 +00:00
Bastien Nocera
05dd38ce68 user-accounts: Remove all uses of exit()
We shouldn't use exit() in a panel plugin.
2011-01-21 13:59:30 +00:00
William Jon McCann
1700599844 Use the the full name without spaces as the default username 2010-10-30 20:03:33 -04:00
William Jon McCann
27dd815e8a Handle NULL usernames without crashing 2010-10-30 19:24:03 -04:00