LinuxQuestions.org
Review your favorite Linux distribution.
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 01-30-2013, 10:41 PM   #1
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Adding kerberos authentication to existing network with LDAP already deployed


Hi All,

I have a bit of a dilemma. We have have a fairly large network (several hundred machines) with several file servers that are accessed via NFS. We're considering moving from NFSv3 to NFSv4, mostly to gain improved security (some users have root on their local workstations, and although all filesystems are exported root_squash, it's easy for a malicious user to su to some other account and access files their own account does not have privileges on). Local root access is only given out to trusted end users, but I'd still like to tighten this down (if for no other reason than to allow me sleep a bit better at night). My understanding is that NFSv4 can use GSSAPI with kerberos to verify which user is actually making a request on a file rather than taking the client's word on the UID and GID of the request. Therefore, I'm considering deploying Kerberos, but there are a few constraints/issues:

1. Currently, we have an LDAP directory set up and functioning that handles all user authentication and authorization.

2. Some critical pieces of network/software infrastructure (proprietary kit) only support LDAP authentication and can't authenticate against Kerberos.

3. I'd like to have a consistent user password, so I'd like the hypothetical new Kerberos password and the LDAP password to be kept in synch.

4. It looks like there's a way to do #3 (as per this thread, however it only seems to work if the Heimdal implementation of Kerberos is used.

5. A number of the Red Hat and Ubuntu boxes authenticate against LDAP using Red Hat's sssd (pam_sssd, so sssd does the talking to LDAP, rather than using pam_ldap). I've found this to work better than using pam_ldap (which seemed to fail randomly in strange ways). However, sssd only seems to be able to talk to MIT krb5 and not Heimdal.

At this point, I'm a bit stuck, and I'm not sure if there's a good way to do what I want. So, my questions are as follows:

- Is it possible to have users authenticate against both LDAP and get a Kerberos TGT from the MIT krb5 KDC using the same password that is kept in sync somehow?

- Assuming this is possible, how do I make sure that users are given the right Kerberos tickets upon login so that they can access their NFS home directories (all systems that have NFS mounted home directories can use Kerberos for authentication -- the ones that can only use LDAP are specialized systems with local home directories).

- Am I totally barking up the wrong tree with this? I'd rather not limit users' ability to gain root via sudo on their workstations, but I could probably lock this down if I absolutely had to. It seems like NFSv4 will do what I want it to do, if only I can get the Kerberos bits & pieces set up the way I want them.
 
Old 01-31-2013, 02:50 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
I had a (similar...though not exact) situation.

Have you looked at IPA? http://freeipa.org

It has a built in LDAP migrating tool that was REALLY simple and easy to use - https://docs.fedoraproject.org/en-US...igrate-ds.html

FreeIPA worked well for us because

1) Those applications that can use Kerberos was configured to do so
2) Those applications still ONLY using LDAP; can continue doing so

Take a quick glance at the documentation - https://docs.fedoraproject.org/en-US...ide/index.html - it answers most of your questions (regarding NFS and such)

If you don't want to use Fedora (we didn't) - FreeIPA is included in the CentOS repos for EL 6.x

HTH

--C
 
1 members found this post helpful.
Old 01-31-2013, 08:39 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Original Poster
Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I will check out the UPA links you provided, thank you very much!
 
  


Reply

Tags
kerberos ldap nfs nfsv4



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
Kerberos +(ldap/nslcd) authentication to Active Directory grzeslaw Linux - Server 3 01-16-2013 05:32 AM
LDAP/Kerberos authentication to Windows Active Directory Shad0wguy Linux - Enterprise 7 02-15-2012 12:04 PM
Kerberos/LDAP Desktop Login - Authentication failure erick.brown Linux - Server 3 06-27-2011 11:09 AM
Linux LDAP vs. Kerberos Authentication with Microsoft ActiveDirectory geek.ksa Linux - Security 4 11-22-2009 04:29 PM
Kerberos, LDAP, THEN Local authentication? cckid Linux - Server 2 10-20-2009 01:41 PM

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

All times are GMT -5. The time now is 03:39 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