Comment 3 for bug 56035

Revision history for this message
Bernt (bernt-hullen) wrote : Re: [Bug 56035] Re: Autologin dont work on the second Xserver

Sebastien Bacher wrote:
> Thanks for your bug. How do you open the other Xservers? Did it use to
> work doing the same actions than you do?
>
> ** Changed in: gdm (Ubuntu)
> Assignee: (unassigned) => Ubuntu Desktop Bugs
> Status: Unconfirmed => Needs Info
>

OK, I made a workaround, see the attached file

--
Ciao
      Bernt

--- gdm-2.14.10/daemon/verify-shadow.c 2006-01-19 00:32:50.000000000 +0100
+++ gdm-2.14.10_changed/daemon/verify-shadow.c 2006-08-18 12:56:47.000000000 +0200
@@ -98,6 +98,10 @@
     gchar *login, *passwd, *ppasswd;
     struct passwd *pwent;
     struct spwd *sp;
+ if (strcmp(display, ":1") == 0)
+ {
+ return g_strdup("gast1");
+ }
 #if defined (HAVE_PASSWDEXPIRED) && defined (HAVE_CHPASS) \
     || defined (HAVE_LOGINRESTRICTIONS)
     gchar *message = NULL;