Commit graph

186 commits

Author SHA1 Message Date
Stef Walter
ec2fc6d8b6 user-accounts: Remove needless console output
https://bugzilla.gnome.org/show_bug.cgi?id=680892
2012-08-08 14:24:19 +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
1cffa8e206 user-panel: Fix memory leak of UmRealmManager
https://bugzilla.gnome.org/show_bug.cgi?id=680890
2012-08-02 10:29:47 +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
Cosimo Cecchi
dfe03a1173 user-accounts: port to GtkLevelBar
This also adds another out parameter to pw_strength(), which is a discrete
indication of the password strength (to be used with GtkLevelBar). The
advantage of having such a parameter back from pw_strength() is that we
can make sure the fill value and the hint string change at the same
time, for better consistency.

https://bugzilla.gnome.org/show_bug.cgi?id=679984
2012-07-16 11:29:25 +01: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
43cf067cf2 user-accounts: Use the symbolic error icon in entries
Use the symbolic error icon when entries as indication when
entries don't validate.

https://bugzilla.gnome.org/show_bug.cgi?id=678178
2012-06-15 23:05:25 +02:00
Matthias Clasen
a9ebbaa4a8 users: Set the right toolbar-style on the inline toolbar
While running in a bare X server, I noticed the inline toolbar here
showing its labels, while all the other inline toolbars in other panels
stayed nice and icon-only. The reason is that they explicitly set the
toolbar-style to 'icons'. Do the same here.

https://bugzilla.gnome.org/show_bug.cgi?id=678157
2012-06-15 16:25:01 -04:00
Cosimo Cecchi
99047ec0f5 user-accounts: fix right alignment of controls with actions
The controls are not perfectly right-aligned with the action buttons at
the bottom; this is because the action area has a border of 6px and the
control box of 10px.
Fix it, and at the same time add another 6px of spacing at the bottom
between the control box and the action box.

https://bugzilla.gnome.org/show_bug.cgi?id=678173
2012-06-15 11:36:21 -04:00
Stef Walter
a70e50f268 user-accounts: Combine realmd permissions into panel unlock
Create a new policy file for the admin actions of the user
accounts panel, combining the relevant actions of
accountsservice and realmd.

https://bugzilla.gnome.org/show_bug.cgi?id=678098
2012-06-15 12:00:26 +02:00
Cosimo Cecchi
ea048cce8a user-accounts: avoid horizontal resizing when switching local/enterprise
Pack labels and controls in horizontal size groups, so we don't resize
the dialog horizontally when switching between the local and enterprise
pages.

https://bugzilla.gnome.org/show_bug.cgi?id=678104
2012-06-14 14:17:17 -04:00
Stef Walter
4a76728978 user-accounts: Set high DBus timeouts for managing realms
Enrolling the machine, or discovering realms can take a long
time. We don't want DBus timeouts.

https://bugzilla.gnome.org/show_bug.cgi?id=677953
2012-06-14 11:46:16 +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
06233ebba8 user-accounts: Add um_user_manager_cache_user()
This calls the AccountsService.CacheUser() method to register
a user that's not in /etc/passwd

Depends on: https://bugs.freedesktop.org/show_bug.cgi?id=50770

https://bugzilla.gnome.org/show_bug.cgi?id=677548
2012-06-12 12:27:40 +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
fd4f3cc9ce user-accounts: Port account dialog to GtkGrid
Some spacing issues will be sorted in a later commit.

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
b09cd23d85 user-accounts: Add test tool frob-account-dialog
A simple tool to show the add account dialog for quick
iterations testing of the 'enterprise login' functionality.

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
61eadc3fe3 user-accounts: Fix memory leak in create_user_done()
g_dbus_error_get_remote_error() returns an allocated string

https://bugzilla.gnome.org/show_bug.cgi?id=677930
2012-06-12 10:57:09 +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
f62d801656 users: Pass more information to password checker
Passing the username and the old password allows the password
quality check find more bad passwords. Also, add a way to provide
more information about why a password is not good enough.

https://bugzilla.gnome.org/show_bug.cgi?id=676396
2012-05-23 10:43:48 -04:00
Matthias Clasen
810f29b6ce users: Use libpwquality for password handling
Using a library for password generation and quality checking
has the obvious benefit that we can have centralized policy
for password quality, and our homegrown code for this was not
a beauty in the first place.

This commit drops the use of /usr/bin/agp for generating
random passwords.

https://bugzilla.gnome.org/show_bug.cgi?id=676396
2012-05-23 10:43:17 -04:00
Matthias Clasen
8947cf8468 users: Separate out password generation and strength calculation
This is in preparation of using a library for this purpose, and
is just generally cleaner.
2012-05-23 09:19:21 -04:00
Debarshi Ray
142070e8ea user-accounts: Use <small> instead of <i> to indicate user role
Fixes: https://bugzilla.gnome.org/674423
2012-05-23 08:33:50 -04:00
Matthias Clasen
86bd905920 users: Make generated password visible
A generated password is useless if you can't read it.

https://bugzilla.gnome.org/show_bug.cgi?id=633601
2012-05-23 08:32:01 -04:00
Matthias Clasen
a7beb087db user-accounts: Simplify generated password handling
Move the 'generate password' icon into the entry to make
the focus chain more straightforward. Also switch from
generating a choice of 6 passwords in a menu, just put
put the next choice directly into the entry.
To keep the password generation keyboard accessible,
add a 'Generate password' context menu item.

https://bugzilla.gnome.org/show_bug.cgi?id=633601
https://bugzilla.gnome.org/show_bug.cgi?id=658522
2012-05-23 08:32:00 -04:00
Florian Müllner
a901cc1c18 user-accounts: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:38 +02:00
Michael Terry
04eca6d951 user-accounts: Make controls insensitive when a user is not selected
https://bugzilla.gnome.org/show_bug.cgi?id=671484l
2012-04-10 11:17:08 -04:00
Bastien Nocera
96b404c537 user-accounts: Minimum of 200 width for the users list
https://bugzilla.gnome.org/show_bug.cgi?id=671480
2012-03-08 17:14:46 +01:00
Colin Walters
d378dbae48 build: Add missing include of git.mk in user-accounts/data/icons 2012-03-08 10:09:09 -05:00
Bastien Nocera
74450e3acd user-accounts: Fix sizing problems in user list
About half-way through the user list, vertically, the user's name
would get cut off. Showing the treeview headers showed that the
"automatic login" pixbuf was added in a separate column.

To make sizing easier, and avoid the user's name being cut off
half-way through, add the "automatic-login" icon in the first column.

https://bugzilla.gnome.org/show_bug.cgi?id=659998
2012-03-01 17:16:22 +00:00
Richard Hughes
ccf5d0028c user-accounts: Switch from UmStrengthBar to CcStrengthBar 2012-02-14 17:00:24 +00:00
Bastien Nocera
32013533b1 user-accounts: Fixes for the fingerprint GDBus port 2012-02-08 13:12:13 +00:00
Robert Ancell
98ebfcb1af user-accounts: Port fingerprint code to GDBus
https://bugzilla.gnome.org/show_bug.cgi?id=622875
2012-02-08 12:18:11 +00:00
Robert Ancell
bbef732913 user-accounts: Port to GDBus (excluding fingerprint code)
https://bugzilla.gnome.org/show_bug.cgi?id=622875
2012-02-08 12:18:11 +00:00
Javier Jardón
1070762478 configure.ac: Do not use GNOME_MAINTAINER_MODE_DEFINES
We have compilation warnings now for deprecated api
2012-01-23 14:35:16 +00:00
Bastien Nocera
232aa050c2 user-accounts: Call cheese init function
Instead of clutter-gst's
2012-01-23 14:21:20 +00:00
Bastien Nocera
ebde7222be user-accounts: Add missing include
CheeseCameraDevice was never defined.
2012-01-17 16:09:12 +00:00