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 587750 - GDM rewrite needs a configuration GUI panel similar to 2.20 (gdmsetup)
GDM rewrite needs a configuration GUI panel similar to 2.20 (gdmsetup)
Status: RESOLVED WONTFIX
Product: gdm
Classification: Core
Component: general
2.26.x
Other All
: Normal minor
: ---
Assigned To: GDM maintainers
GDM maintainers
: 553250 565150 588402 609483 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-07-04 15:09 UTC by Dean Loros
Modified: 2011-05-15 18:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
mockup of simple setting panel (21.93 KB, image/png)
2009-07-05 02:12 UTC, Dean Loros
  Details
Adds PolicyKit authorization to the org.gnome.DisplayManager.Settings D-Bus interface (8.62 KB, patch)
2009-07-29 08:32 UTC, Robert Ancell
needs-work Details | Review
Use PolicyKit for access to org.gnome.DisplayManager.Settings (10.10 KB, patch)
2009-07-31 08:46 UTC, Robert Ancell
needs-work Details | Review
Use PolicyKit for access to org.gnome.DisplayManager.Settings (11.99 KB, patch)
2009-08-07 10:02 UTC, Robert Ancell
none Details | Review
Provides a basic GDM setup tool able to configure the defalt user and a login delay (132.46 KB, patch)
2009-08-07 10:03 UTC, Robert Ancell
none Details | Review
rovides a basic GDM setup tool able to configure the defalt user and a login delay (132.62 KB, patch)
2009-08-07 14:33 UTC, Robert Ancell
none Details | Review
Provides a basic GDM setup tool able to configure the defalt user and a login delay (132.70 KB, patch)
2009-08-25 05:41 UTC, Robert Ancell
none Details | Review
Provides a basic GDM setup tool able to configure the defalt user and a login delay (133.02 KB, patch)
2009-08-25 06:35 UTC, Robert Ancell
none Details | Review
Provides a basic GDM setup tool able to configure the defalt user and a login delay (132.94 KB, patch)
2009-08-25 06:43 UTC, Robert Ancell
none Details | Review
Provides a basic GDM setup tool able to configure the defalt user and a login delay (132.94 KB, patch)
2009-09-21 03:32 UTC, Robert Ancell
none Details | Review
PolicyKit patch, improved (8.00 KB, patch)
2010-07-14 19:50 UTC, Josselin Mouette
none Details | Review
gdmsetup patch, cleaned up (31.49 KB, patch)
2010-07-14 19:54 UTC, Josselin Mouette
none Details | Review

Description Dean Loros 2009-07-04 15:09:48 UTC
Currently there is not a "friendly" way to config GDM similar to the older GDM. I realize that the new GDM is a "work in progress", but even a simple control panel for basic changes would be very helpful.

Other information:
Comment 1 Dean Loros 2009-07-04 15:19:32 UTC
Description: Ubuntu karmic (development branch)
Release: 9.10

gdm:
  Installed: 2.26.1-0ubuntu2
  Candidate: 2.26.1-0ubuntu2
  Version table:
 *** 2.26.1-0ubuntu2 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
Comment 2 Dean Loros 2009-07-04 23:43:42 UTC
I would "wish" for:

A very simple dialog that would allow lets say up to 30sec for time delay, choices as to who is default, autologin on/off (maybe a checkbox), facebrowser on/off (same comment) & maybe a background change (strictly a wish item)--
Comment 3 Dean Loros 2009-07-05 02:12:48 UTC
Created attachment 137866 [details]
mockup of simple setting panel

Wishlist mockup for basic setting modification for new GDM
Comment 4 Sebastien Bacher 2009-07-06 15:14:00 UTC
the Canonical Desktop Team is wanting to work on this issue for GNOME 2.28, has this dialog been discussed recently or does the upstream team has an opinion and what options should be there?
Comment 5 Dean Loros 2009-07-07 03:05:29 UTC
I talked with a few people this weekend--I hope that some momentum has been generated--it is very good to hear that the Canonical Desktop team wants to get involved...

I do understand that other distros have been using the new GDM (and I've run across a fairly large numbers of bug reports from them too)---but Ubuntu is after all touted as the first move to distro for ex-windows users---so we really need to make the experience as smooth as possible---it simply will not do to have users edit config files to get the functions that they want--most of us in Ubuntu testing don't have a problem with that..but I have a real problem with apps that have greatly reduced function compared to the prior version.
Comment 6 Brian Cameron 2009-07-28 15:04:40 UTC
*** Bug 553250 has been marked as a duplicate of this bug. ***
Comment 7 Brian Cameron 2009-07-28 15:05:18 UTC
Refer to bug #553250 for some additional information about this.
Comment 8 Robert Ancell 2009-07-29 08:32:50 UTC
Created attachment 139450 [details] [review]
Adds PolicyKit authorization to the org.gnome.DisplayManager.Settings D-Bus interface

This patch uses PolicyKit for authorizing access to the org.gnome.DisplayManager.Settings D-Bus interface.  This will allow user-space programs to access the configuration for default users and XDMCP settings in a safe manner.

Please review if you have a good knowledge of PolicyKit.
Comment 9 Robert Ancell 2009-07-31 08:46:42 UTC
Created attachment 139611 [details] [review]
Use PolicyKit for access to org.gnome.DisplayManager.Settings

Generated patch correctly.

Note that there is an issue exposing this interface as it contains various other configuration (e.g. the user that GDM runs as).  There may be a need to make a new interface for user-configuration.
Comment 10 Robert Ancell 2009-08-03 15:24:03 UTC
*** Bug 588402 has been marked as a duplicate of this bug. ***
Comment 11 Robert Ancell 2009-08-07 10:02:21 UTC
Created attachment 140097 [details] [review]
Use PolicyKit for access to org.gnome.DisplayManager.Settings

Updated patch adding an Unlock() method
Comment 12 Robert Ancell 2009-08-07 10:03:19 UTC
Created attachment 140098 [details] [review]
Provides a basic GDM setup tool able to configure the defalt user and a login delay
Comment 13 Robert Ancell 2009-08-07 14:33:24 UTC
Created attachment 140118 [details] [review]
rovides a basic GDM setup tool able to configure the defalt user and a login delay

Updated from the previous patch to look more similar to existing configuration dialogs (i.e. a mess :))
Comment 14 Brian Cameron 2009-08-08 04:54:18 UTC
Could you explain how this patch deals with file permission issues?  Obviously the configuration files are owned by root (for the /etc/gdm/custom.conf file) and the "gdm' user (in the "gdm" user's GConf settings).

Is the expectation that a normal user would launch the configuration program?  How does the setup program ensure that only authorized users are able to modify the GDM configuration?  It would obviously be a serious security issue if non-authorized users could change configuration options like turning on AutomaticLogin.

The old GDM required the end user to enter the root password to be able to launch the setup program.  Does the proposed patch do something similar or a different technique?

Although I did review the patch, it is quite large.  I didn't see any code to handle this sort of thing, but perhaps I just missed it on my first review?
Comment 15 Robert Ancell 2009-08-09 12:46:56 UTC
Yes, the configuration applet can be launched by a normal user.  The authorization is handled by PolicyKit which means that only users with system privileges can access this D-Bus interface and only if they enter their password when prompted.  PolicyKit means that a system administrator can control this access in fine detail too if required (i.e. only letting certain users/groups access to this information)

The changes are in two patches:
- The first adds PolicyKit support to the existing org.gnome.DisplayManager.Settings D-Bus interface.  This interface is provided by the GDM daemon and the daemon reads and writes /etc/gdm/custom.conf.
- The second patch is the GDM configuration applet (the big patch).  It just a standard GTK+ application that accesses the org.gnome.DisplayManager.Settings interface.
Comment 16 Marcus Carlson 2009-08-16 17:26:20 UTC
A tiny comment on the patch; could we have a title like "Login Screen" instead of gdmsetup?
Comment 17 abraham 2009-08-17 16:30:07 UTC
I think it should just have the necessary option, like: changing the background, login as, login after ... minutes, login automatically, and that should be it, not to much because it becomes in a low performance tool, things should just have what is necessary to have, I would not like to be able to change too much stuff like changing the colour of the login square and stuffs like that, which are pointless, so please don't be pointless, and we are going to be a very stable Operating System over any other.
Comment 18 Robert Ancell 2009-08-25 05:41:38 UTC
Created attachment 141608 [details] [review]
Provides a basic GDM setup tool able to configure the defalt user and a login delay

Updated to set the window icon and title as noticed by Marcus
Comment 19 Robert Ancell 2009-08-25 06:35:46 UTC
Created attachment 141611 [details] [review]
Provides a basic GDM setup tool able to configure the defalt user and a login delay

Fixes a crash if no automatic/timed users defined
Comment 20 Robert Ancell 2009-08-25 06:43:59 UTC
Created attachment 141612 [details] [review]
Provides a basic GDM setup tool able to configure the defalt user and a login delay

Removed some dead code
Comment 21 Robert Ancell 2009-09-21 03:32:45 UTC
Created attachment 143564 [details] [review]
Provides a basic GDM setup tool able to configure the defalt user and a login delay

Make window fixed size (i.e. not resizable)
Comment 22 Brian Cameron 2009-10-07 18:41:20 UTC
*** Bug 565150 has been marked as a duplicate of this bug. ***
Comment 23 Alex Lancaster 2009-11-20 07:36:53 UTC
(In reply to comment #21)
> Created an attachment (id=143564) [details] [review]
> Provides a basic GDM setup tool able to configure the defalt user and a login
> delay
> 
> Make window fixed size (i.e. not resizable)

Surely there must be at least one gdm developer who could review or at least make some kind of comment on this patch, it's been 2 months?  Having at least some user-level configuration tool would be better than none (which is what we have since it was removed in 2.26).
Comment 24 Jan "Yenya" Kasprzak 2009-11-20 08:07:16 UTC
Can it change GDM back to the login/password dialog instead of that user list? 

Because the basic property of the user list is, that gdm needs to read all the ~2200 local users from our LDAP, acessing (and thus automounting) the home directory for each of them to get their icon/photo, and only then allow the very patient user to log in :-(
Comment 25 Brian Cameron 2009-11-20 20:07:35 UTC
Also note that the latest version of GDM 2.29 supports debug/Enable, greeter/Include, greeter/Exclude, and greeter/IncludeAll.  It would be good if the configuration program supported these.  The greeter/Include, greeter/Exclude and greeter/IncludeAll options control how the Face Browser is shown.
Comment 26 Matthias Clasen 2010-01-14 18:03:04 UTC
I am looking at a similar problem for a new user account dialog that I am writing, which will also expose some login screen configuration. We want to allow configuring things like:

- language (of the login screen)
- autologin (yes/no, and which user)
- whether to show the user list
- whether to show the restart/shutdown/suspend actions
- whether to display password hints
- guest login

Some more details can be found here: 
https://fedoraproject.org/wiki/Features/UserAccountDialog


There are some fundamental issues here that just adding policykit support into the existing settings interface is not going to solve:

1) The configuration options that are interesting for these config tools are not all available via the gdm settings api, at least half of them live in the gconf database of the gdm user.

2) selinux prevents gdm from rewriting its own config file (and with some good reasons)
Comment 27 Brian Cameron 2010-02-11 01:05:34 UTC
*** Bug 609483 has been marked as a duplicate of this bug. ***
Comment 28 cimek 2010-03-29 18:44:32 UTC
In the autologin field ROOT should be available.
It should display some warnings and ask for confirmation but generally shouldn't be forbidden.
Comment 29 William Jon McCann 2010-06-11 08:54:32 UTC
I think migrating our settings to dconf and adding some settings controls to the account dialog is the way forward.
Comment 30 Josselin Mouette 2010-07-14 19:50:42 UTC
Created attachment 165913 [details] [review]
PolicyKit patch, improved

Luca Bruno did a bit of cleanup on the Ubuntu PolicyKit patch.

I think we should really move forward with this. Some of the settings need to be made configurable.
Comment 31 Josselin Mouette 2010-07-14 19:54:13 UTC
Created attachment 165914 [details] [review]
gdmsetup patch, cleaned up

Some cleanup work on the gdmsetup patch too:
 - Get rid of sessions, they're chosen in the greeter.
 - Get rid of sound and face browser, they are not gdm options.
 - Get rid of dbus, use GdmSettingsClient instead.
 - Use libgdmuser of simple-greeter instead of copying gdm-user* code.
 - Use PolkitLockButton.