Commit graph

581 commits

Author SHA1 Message Date
Matthias Clasen
4bee148691 users: Handle real name being unset
When no real name is available, fall back to the user name.
https://bugzilla.gnome.org/show_bug.cgi?id=691173
2013-01-05 16:54:17 -05:00
Cosimo Cecchi
ce546523a5 user-accounts: don't install SVG icons
We only use the PNGs in the panel. Keep the SVGs under version control,
as they're used to generate the PNGs.

https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-04 20:34:38 +01:00
Cosimo Cecchi
3637447865 user-accounts: remove unused icons
These are not used anywhere, so don't install them and remove them from
version control.

https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-04 20:34:38 +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
Ray Strode
db97299e74 user-panel: add UmPasswordDialogMode enum instead of using numeric literals
The um-password-dialog combobox has a column in its model associated
with what password action to apply. Possible actions are:

- Normal password
- Set password at next login
- No password needed
- Lock account
- Unlock account

These actions are currently represented in the code with harded coded
numeric values (0-4).

This commit cleans up the hard coding to use a symbolic enumeration
instead.

https://bugzilla.gnome.org/show_bug.cgi?id=671858
2013-01-03 11:38:38 -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
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Jeremy Bicha
19fae9d966 user-accounts: Use the proper Unicode ellipsis (…) instead of three dots
https://bugzilla.gnome.org/show_bug.cgi?id=689497
2012-12-03 09:12:26 -05:00
Ondrej Holy
691a258232 user-accounts: Add last login field
https://bugzilla.gnome.org/show_bug.cgi?id=681772
2012-12-03 14:55:23 +01:00
Matthias Clasen
b0aecdd987 users: Fix resetting the avatar
This probably broke when the D-Bus code was ported to GDBus, as
passing NULL for a string into a GVariant constructor doesn't work.
Thankfully, passing an empty string has just the same effect.
https://bugzilla.gnome.org/show_bug.cgi?id=673841
2012-11-25 22:51:33 -05:00
Bastien Nocera
9656b4136d user-accounts: Fix comment about SHA-256 usage
As per crypt(3), ID 6 is:
6   | SHA-512 (since glibc 2.7)

Spotted by Florian Mülnner.
2012-11-23 11:56:26 +01:00
Thomas Wood
2e2cfce6e0 user-accounts: remove unused variables from the password dialog
https://bugzilla.gnome.org/show_bug.cgi?id=688401
2012-11-19 13:30:49 +00:00
Thomas Wood
33e360d4a7 user-accounts: show the password by default once generated
Make sure the user can see the newly generated password without having to
activate the show password check box.

https://bugzilla.gnome.org/show_bug.cgi?id=688401
2012-11-19 13:30:49 +00:00
Bastien Nocera
cb8c667962 user-accounts: Rename panel to Users
Online Accounts and User Accounts are very similar names.

https://bugzilla.gnome.org/show_bug.cgi?id=688003
2012-11-09 18:41:36 +01:00
Ondrej Holy
3ce73cb8b2 user-accounts: Use GtkGrid instead GtkTable
https://bugzilla.gnome.org/show_bug.cgi?id=681772
2012-10-22 14:29:11 +02:00
Ondrej Holy
9864297c71 user-accounts: fix wrong sensitivity of the autologin combo
https://bugzilla.gnome.org/show_bug.cgi?id=686383
2012-10-22 14:21:37 +02:00
Bastien Nocera
f6cc4a970a user-accounts: Require logind for session tracking
As is already used in gnome-settings-daemon.
2012-10-22 10:53:06 +02: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
11b5c87d26 user-accounts: Set timeouts on all realmd interface proxies
Without this, we can get timeout problems during joining a domain.

This is a regression from when we refactored UmRealmManager to
use GDBusObjectManagerClient. Make sure to call
g_dbus_proxy_set_default_timeout() on all realmd interface
proxies whenever they show up.

https://bugzilla.gnome.org/show_bug.cgi?id=686390
2012-10-19 10:26:01 +02:00
Stef Walter
074a495f97 user-accounts: Recognize that some kerberos domains cannot be joined
realmd supports discovering generic kerberos domains, which cannot
be joined. Add a usable error message in gnome-control-center in
this case.

https://bugzilla.gnome.org/show_bug.cgi?id=685618
2012-10-15 14:04:59 +02:00
Stef Walter
60e9ee0f07 user-accounts: Remove the realmd version check
The idea is that the realmd DBus API will remain stable
from now on, so remove the version check. It was broken anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=685616
2012-10-15 11:37:39 +02:00
Stef Walter
ee673b7389 user-accounts: Complete discover on failure
When realmd discovery doesn't return a domain, complete the discovery
appropriately. Previously we would never complete.

https://bugzilla.gnome.org/show_bug.cgi?id=685617
2012-10-09 10:36:55 -04:00
Ondrej Holy
bd26688df9 user-accounts: Logged in status identification
https://bugzilla.gnome.org/show_bug.cgi?id=681769
2012-10-09 10:52:40 +02:00
Stef Walter
d6f2d07ddb user-accounts: Remove the autologin checkmark
We want to use a checkmark to show the currently logged in status.

https://bugzilla.gnome.org/show_bug.cgi?id=681769
2012-10-09 10:51:19 +02:00
Cosimo Cecchi
7181ca7c95 user-panel: make the autologin cell renderer follow state
Since it renders a symbolic icon, let it follow the state, so
it takes the selected text color when the row is selected

https://bugzilla.gnome.org/show_bug.cgi?id=684828
2012-09-26 12:41:37 -04:00
Matthias Clasen
a80b3d75c5 users: Don't ask for the old password when none is set
This prevents passwordless users (common on live cd setups) from
setting a password.

https://bugzilla.gnome.org/show_bug.cgi?id=684492
2012-09-24 15:51:21 -04:00
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