GDM login hangs when using ldap

Bug #20994 reported by Stian Jordet
32
Affects Status Importance Assigned to Milestone
gdm
Fix Released
Medium
gdm (Ubuntu)
Fix Released
High
Ubuntu Desktop Bugs

Bug Description

GDM in Breezy is at least 9 out of 10 times hanging after I enter the password.
I know this is a lousy bug report, but I really don't know what to write. It
worked fine with Hoary. I'm using LDAP authentication, but I have removed every
trace of it, and it's stille the same. I have purged gdm and deleted every
conf-file, after reinstallation the problem is the same.

The (weirdest) thing is that when gdm hangs, if I switch to a console, I can't
login, it does the same, just hangs after I write the password. If I'm already
logged in to a console, that console works just fine. This _never_ happens if I
shut down gdm first, and then log in from console.

Please tell me what info I should give you to diagnose this problem.

Best regards,
Stian

http://bugzilla.gnome.org/show_bug.cgi?id=315846: http://bugzilla.gnome.org/show_bug.cgi?id=315846

Revision history for this message
Sebastien Bacher (seb128) wrote :

*** Bug 21259 has been marked as a duplicate of this bug. ***

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. I'm not sure of what could causes that and I've no ldap
setup to play with that. I've forwarded your issue upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=315846

Revision history for this message
Sebastien Bacher (seb128) wrote :

*** Bug 21548 has been marked as a duplicate of this bug. ***

Revision history for this message
Sebastien Bacher (seb128) wrote :

The upstream bug has 2 comments, could one of you reply to the question asked,
it's not likely to be fixed without that ...

Revision history for this message
Dave Hall (skwashd) wrote :

I had this same problem.

The only way I could fix it was to change the boot order. I moved it from 13 to
21 and that seemed to fix it. The downside is that it makes usplash useless as
it jumps out of usplash too quickly (while hotplug is still initializing).

Revision history for this message
Gregory Oschwald (osch0001) wrote :

I justed upgraded from Hoary to Breezy, and I am experiencing this problem on
one of my machines. My other machine is a powerpc and it seems to be working
fine in this regard. Unfortunately, I don't have another x86 to test this on.

Greg

Revision history for this message
Gregory Oschwald (osch0001) wrote :

Downgrading to hoary's gdm does not fix the problem for me. It is probably safe
to assume that the problem lies in another package or is due to misconfiguration.

Greg

Revision history for this message
Dave Hall (skwashd) wrote :

I have just upgraded about half the office to breezy after the testing went
pretty well. I found this bug was still present, and I found that there is too
parts to it.

The first half is pretty well covered in the discussion here. The other half of
the problem is caused by poor packaging, see
https://launchpad.net/distros/ubuntu/+source/libnss-ldap/+bug/3688 for more info.

The end result is moving from hoary to breezy is a lot more time consuming than
it needs to be just because a common office environment config hasn't been tested.

I checked that making only one of the changes would fix the problem, but I found
both changes needed to be made in order for gdm to work. Obviously libnss-ldap
being fubar'd means logins won't work.

Console logins work fine when libnss-ldap is properly configured, so IMHO this
is a problem with when gdm is started

</rant>

Revision history for this message
John Moser (nigelenki) wrote :

I have an ldap server separate from the laptop where I'm having problems, the server is up at all times, the laptop hangs at GDM but console log-in still works.

Revision history for this message
John Moser (nigelenki) wrote :

I moved gdm down to S21gdm in /etc/rc2.d/ and the issue persists. My network is as follows:

[ROUTER] 192.168.1.1
   |
[Switch]--[LDAP-svr] 192.168.1.40
 |--[Laptop] DHCP
 |--[Desktop] 192.168.1.51

I have attached current configurations for pam and nss. There is a README in there to get you started . This should be quite enough to clone my setup.

Revision history for this message
John Moser (nigelenki) wrote : Relavent ldap client configuration files

If you need any more information add a comment. This should be enough information to work out an LDAP server/client auth.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for the work on that. Is there anybody with a ldap setup wanting to work with upstream on that?

Changed in gdm:
assignee: seb128 → desktop-bugs
Revision history for this message
Dave Hall (skwashd) wrote :

I forgot to update this, but in dapper as of a few weeks ago this now seems to be fixed. In gnome 2.14 there seems to be some better error handling.

I will list some gotcha here for google to find and hopefully help others:

* you must use TLS/SSL or gdm will refuse to use ldap auth - double check that is using tls/ssl
* Double check your user permissions in ~/ - chmod go-wx ~/.dmrc and chmod go-x ~/ (minimum)

I also found it seems to be a little faster with nscd (in universe and little broken) and "files ldap" in my nsswitch instead of "ldap files" which I suspect because the queries are cached the system accounts/groups are not failing ldap lookup before being checked in files.

I still have a spare box I can throw breezy on if it will help, but I am pretty confident it is fixed in dapper.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Stian, John, could you try with dapper?

Revision history for this message
Stian Jordet (stian-web) wrote :

Ohh, I had totally forgot about this bug. As you can see in the upstream bugreport, I found a workaround for this bug. And now, with Dapper, I can't even reproduce it at all. So at least for me, this bug can be closed :) Sorry for not telling about it earlier.

Revision history for this message
Sebastien Bacher (seb128) wrote :

No problem, closing as fixed. Feel free to reopen if you get the issue again

Changed in gdm:
status: Unconfirmed → Fix Released
Changed in gdm:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.