LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-18-2010, 11:11 AM   #1
JALITE
LQ Newbie
 
Registered: Jul 2006
Posts: 13

Rep: Reputation: 1
Ldap question


I am new to ldap. I've installed openldap server in a centos but yet to test it.
My question is how to force user to login to the system using ldap instead of non-ldap login?
For example, I created some users in the ldap server, these users are exist in /etc/passwd, when ssh login to server as user, it normally authenticates through /etc/passwd file without being forced to use ldap.

Last edited by JALITE; 09-18-2010 at 11:12 AM.
 
Old 09-18-2010, 12:09 PM   #2
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
You have to adjust the following files /etc/ldap.conf, /etc/openldap/ldap.conf and nsswitch.conf.
Probably it is easier to run authconfig and follow the wizard. This works well for the basics, but some things you still need to configure afterwards in the afore mentioned files.
 
Old 09-18-2010, 12:50 PM   #3
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by Blue_Ice View Post
You have to adjust the following files /etc/ldap.conf, /etc/openldap/ldap.conf and nsswitch.conf.
and the /etc/pam.d/login, /etc/pam.d/sshd.
 
Old 09-18-2010, 08:52 PM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
If you edit nsswitch.conf to only look at ldap then you will lose your ability to log in as local root. I would remove the local user accounts from /etc/passwd and use "files ldap" in nsswitch.conf.
 
  


Reply



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
ldap question cmontr Programming 3 05-28-2009 08:30 AM
Ldap question atzounis Linux - Newbie 3 12-14-2008 02:16 PM
Question on LDAP chickenjoy Linux - Server 1 06-12-2007 10:39 AM
LDAP question wslyhbb Linux - Server 3 02-10-2007 06:26 PM
LDAP question dominant Linux - General 3 03-30-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration