Commit graph

205 commits

Author SHA1 Message Date
Bastien Nocera
95fb453d87 user-accounts: Disable password changing for remote users
Works-around:
https://bugs.freedesktop.org/show_bug.cgi?id=55002
See also:
https://bugzilla.gnome.org/show_bug.cgi?id=681866#c11
2012-09-17 19:47:10 +02:00
Stef Walter
0721469d56 user-accounts: Default LocalAccount property to TRUE
When loading properties from the AccountsService we may encounter
an implementation that does not yet have the LocalAccount property,
so set the LocalAccount property to TRUE by default to make things
work correctly in the above case.

https://bugzilla.gnome.org/show_bug.cgi?id=684207
2012-09-17 19:24:34 +02:00
Stef Walter
31a293bc08 user-accounts: Fix memory leak of realm list
https://bugzilla.gnome.org/show_bug.cgi?id=684188
2012-09-17 14:28:07 +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
Stef Walter
09e62d679c user-accounts: Relicense UmRealmManager to GPLv2+
And update the 'Written By' of UmRealmManager

https://bugzilla.gnome.org/show_bug.cgi?id=683420
2012-09-17 13:08:35 +01:00
Matthias Clasen
bfca71076d users: Fix a typo
One translatable string contained the typo 'enterpise logins',
where it should have said 'enterprise logins'. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=684122

This commit updates the msgid in all .po files, so translations
should not be negatively affected by this string change.
2012-09-16 16:15:22 -04: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
Zan Dobersek
570bafaf6b user-accounts: Fix match icon not updating in some cases
Check the new password matching after focusing out either entries.

Validate the content of the verify password entry after
focusing out either the new password entry or the verify entry.

Previously the user could mistype his new password in the new
password entry, but when it was corrected, the verify entry
would still be indicating that the confirmation password did not
match when it did.

https://bugzilla.gnome.org/show_bug.cgi?id=668844
2012-08-23 11:08:38 +01:00
Bastien Nocera
af8a644075 user-accounts: Fix login keyring password not getting updated
By passing the environment down to passwed rather than an empty one.
This means that passwd's PAM modules will be able to access the session
D-Bus, for the gnome-keyring PAM module to change the keyring password
for example.

https://bugzilla.gnome.org/show_bug.cgi?id=616703
2012-08-22 16:31:59 +01:00
Jasper St. Pierre
eaef6e5d50 um-user: Use GdkCairo operations to draw on the pixbuf
Remove a bunch of bit twiddling code.

https://bugzilla.gnome.org/show_bug.cgi?id=682391
2012-08-22 03:35:54 -03:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
Ray Strode
a416243050 user-accounts: fix crash for incompatible realmd version
The version property may not be available if realmd is
version 0.1 (which lacked the property) or if other
properties changed signatures (causing gdbus to fail to load
cache any property)

This commit fixes a crash where property is NULL in those cases.
2012-08-20 14:04:30 -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
f217fa286a user-accounts: Change behavior/display of panel for remote accounts
* Hide the automatic-login and fingerprint widgets
 * Insensitive account type and real name widgets

https://bugzilla.gnome.org/show_bug.cgi?id=681770
2012-08-18 19:14:03 +01:00
Stef Walter
251a189cfc user-accounts: Add um_user_is_local_account() method
* Use new LocalAccount property in accountsservice to
   add the um_user_is_local_account() method.

https://bugzilla.gnome.org/show_bug.cgi?id=681770
2012-08-18 19:14:02 +01:00
Stef Walter
a2149736cd user-accounts: Display the username in list
* By displaying the username we get the unix user name for
   local accounts, and the full login name for remote accounts.
 * Can now differentiate between accounts with the same display
   'real' name.
 * Can see the full login identity of remote accounts.

https://bugzilla.gnome.org/show_bug.cgi?id=681767
2012-08-18 19:11:01 +01:00
Bastien Nocera
923f27950a user-accounts: Fix crash on startup
Due to badly installed PolicyKit files.

https://bugzilla.gnome.org/show_bug.cgi?id=681763
2012-08-18 18:32:34 +01:00
Stef Walter
3f76a97915 user-accounts: Create the add account dialog on demand
* Creating the add account dialog as the panel gets created
   means that realmd is invoked, network discovery is done
   and so on. Not optimal.
 * We also don't really need to cache the account dialog,
   and can create a new one for each [+] click.

https://bugzilla.gnome.org/show_bug.cgi?id=681852
2012-08-18 18:16:32 +01:00
Stef Walter
36fa8bf9b7 user-accounts: Consistent capitalization of 'Account Type'
https://bugzilla.gnome.org/show_bug.cgi?id=681771
2012-08-18 18:12:38 +01:00
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