LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 06-02-2010, 03:05 PM   #1
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Rep: Reputation: 23
Ubuntu 10.04 LDAP authentication, can't login to gui


I'm having an odd problem with ubuntu 10.04.

I've got openldap running on the server (CentOS), and I can authenticate with any of my users from any of the desktops (running Ubuntu) from the command line.

The users don't show up in the login window, and when you login via the "other" selection, the user authenticates, and is booted out to the login screen immediately.

Any ideas how I can get this going?
 
Old 06-02-2010, 05:56 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,770

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
I can't answer your question; I can only make a suggestion.

Point your browser at www.google.com/linux, search for "ubuntu openldap login".

There are many articles/threads on the subject. On the first page of returns, I found a couple of how-to's for setting up the server and clients. One of them might help you solve your problem.
 
0 members found this post helpful.
Old 06-03-2010, 01:02 PM   #3
kschmitt
Member
 
Registered: Jul 2009
Location: Chicago Suburbs
Distribution: Crux, CentOS, RHEL, Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by bigrigdriver View Post
I can't answer your question; I can only make a suggestion.

Point your browser at www.google.com/linux, search for "ubuntu openldap login".

There are many articles/threads on the subject. On the first page of returns, I found a couple of howtos for setting up the server and clients. One of them might help you solve your problem.
Thanks for responding without really knowing anything about it. It didn't help.

Yes, I know there are tutorials, I've read many of them trying to get this to work __before posting here__. Most of those cover server configuration, not client. There is very little information specific to configuring ubuntu clients in those, and what there is is often for very old versions.

This may very well be a GDM specific issue, and not an ubuntu one, I'm not sure.

Hopefully someone who knows something about the subject will have some ideas?

--Kyle

Last edited by kschmitt; 06-03-2010 at 01:02 PM. Reason: grammar edit
 
Old 06-07-2010, 10:38 AM   #4
android_lou_webber
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
I don't know if this will help you or not, but here is how I configure LDAP client on Ubuntu.
Please note, I have had problems with 10.04, which I *did not* have in 9.10, so be aware that if it doesn't work, it's not necessarily your fault.

1) sudo apt-get install libpam-ldap nscd

Libpam-ldap allows you to use LDAP for logins.
Enter your LDAP base DN and server hostname/IP address when it asks. Set LDAP version 3, say No to "make local root database admin", and No to "Does the LDAP database require login".

2) edit your /etc/nsswitch.conf file and change the following entries, so ldap is after files:

passwd: files ldap
shadow: files ldap
group: files ldap
hosts: files dns ldap
ethers: files ldap

3) Reboot (I sometimes find it necessary, for unknown reason!)

I would normally log in using a local user, then do "id username" to test whether it can look up LDAP usernames. Once it does, you can log in at the graphical login screen.

4) I also set up pam to make a home directory if there isn't one already. You can do this by editing /etc/pam.d/common-session and add this line:

# and here are more per-package modules (the "Additional" block)
session required pam_mkhomedir.so skel=/etc/skel



Best o'luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10 - Enable Wireless at Login Screen for LDAP Authentication glarizza Linux - Networking 2 03-31-2009 07:44 AM
LDAP user cannot login with GUI desktop pazzport Linux - Desktop 0 09-11-2008 12:30 PM
PHP Login through LDAP Authentication?? ajeetraina Programming 2 05-12-2008 07:07 AM
LDAP Authentication - no Gnome login possible azrael808 Linux - Software 3 01-11-2007 05:43 AM
gui login authentication ilnli Slackware 2 06-03-2005 01:05 PM


All times are GMT -5. The time now is 03:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration