LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-16-2007, 12:42 PM   #1
flv7a
LQ Newbie
 
Registered: Apr 2003
Posts: 20

Rep: Reputation: 0
Centralized authentication - two hurdles


I'm currently evaluating the feasibility of going towards a centralized authentication/authorization model for a lab of about 200 machines. The basics of setting up a Directory Server (ldap) and pointing the various machines to it for authentication are easy, but there are two particular intricacies that I don't know how to overcome...my hope is that someone else may have some ideas.

First, some of the machines in the lab are laptops, and thus continuous network connectivity to the directory server cannot be assumed. However, with my current pam config, if the directory server isn't available it kicks down to local accounts. Is it possible in somewhat to cache the credentials of users who have logged into that system in the past in order to authenticate them in an offline condition? The caching would obviously need to remember their UID/GUID/home dir/shell/etc as well.

Secondly, most centralized authentication setups are associated with centralized (NFS) home directories. For various reasons (including the laptop scenario above), we need to employ locally based home directories. However, since home directory creation is a function of account creation on a linux box, the home directories aren't there (because there are obviously no local accounts). The only way I've thought about overcoming this would be to make a wrapper shell for bash that would create the home dir if it didn't exist, but that is far from an optimal solution for a variety of reasons.

So those are the problems in a nutshell, if anyone has any suggestions or things to look at it would be appreciated.

Thanks.
 
Old 07-17-2007, 08:26 AM   #2
flv7a
LQ Newbie
 
Registered: Apr 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Anybody? Surely someone has encountered these issues before...
 
Old 07-17-2007, 09:00 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
I can't help you here, but if your post hasn't been answered, did you realise that it'll automatically be promoted for (3?) days in a row? Many users search for threads with zero replies, so your question will actually get better exposure (and be read by more people who might know the answer) if you don't bump it yourself!
 
Old 07-17-2007, 04:45 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
Secondly, most centralized authentication setups are associated with centralized (NFS) home directories.
I don't think that is required. When creating the user, create the home directory on the host instead of a server share.

I think your PAM solution is better then editing nsswitch.conf with the line:
passwd: ldap files But I think that the pam module will read the nsswitch.conf file.
I think it would be a better idea to update both ldap entries and /etc/shadow when users change their passwords. I'm not a PAM expert, but I think that you can modify the PAM configuration so PAM's password configuration will do both. You might also look into using certificates for authentication. They could be local or online. See man pam_pkcs11. Sorry I couldn't be more help. Someone else with more experience may respond. Also read through your distro's documentation. You never know, but it may be covered by the laptop's distro's configuration setup.

Last edited by jschiwal; 07-18-2007 at 05:22 AM.
 
Old 07-25-2007, 01:40 PM   #5
flv7a
LQ Newbie
 
Registered: Apr 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal
I don't think that is required. When creating the user, create the home directory on the host instead of a server share.
Unfortunately these are exactly the types of things I want to avoid...When I add a new user, I don't want to have to create a home directory for that user on 200+ machines, instead I'd like a local home dir to be created on first login as /home/$USER. (I realize the natural solution would be nfs mounted home dirs, but that simply won't work in my environment, the home dirs have to be local to each box)

Quote:
Originally Posted by jschiwal
I think your PAM solution is better then editing nsswitch.conf with the line:
passwd: ldap files But I think that the pam module will read the nsswitch.conf file.
I think it would be a better idea to update both ldap entries and /etc/shadow when users change their passwords. I'm not a PAM expert, but I think that you can modify the PAM configuration so PAM's password configuration will do both. You might also look into using certificates for authentication. They could be local or online. See man pam_pkcs11. Sorry I couldn't be more help. Someone else with more experience may respond. Also read through your distro's documentation. You never know, but it may be covered by the laptop's distro's configuration setup.
Again, getting a box to authenticate against ldap is pretty trivial, however, I haven't found any documentation that will cache credentials in order to do this offline...
 
Old 08-03-2007, 11:48 AM   #6
arcanex
Member
 
Registered: Mar 2007
Posts: 41

Rep: Reputation: 15
Quote:
Originally Posted by flv7a
Unfortunately these are exactly the types of things I want to avoid...When I add a new user, I don't want to have to create a home directory for that user on 200+ machines, instead I'd like a local home dir to be created on first login as /home/$USER. (I realize the natural solution would be nfs mounted home dirs, but that simply won't work in my environment, the home dirs have to be local to each box)
Not sure if you've already resolved this, but I think 'pam_mkhomedir.so' will also work locally (ie, with each user's laptop). Just add that somewhere in each machine's pam configuration.

Your problem now, I guess, is just to authenticate locally. There is some kind of cache daemon called 'nscd', but I'm not sure if that will do what youwant.
 
  


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
LXer: Chinese Growth Hurdles toward a New Great Wall LXer Syndicated Linux News 0 07-27-2006 08:21 AM
centralized authentication - OS? setup? jantman Linux - Networking 1 07-13-2006 07:31 AM
Centralized Authentication banzai_slr Linux - Security 0 05-05-2005 03:45 AM
Centralized networked stuff tcaptain Linux - Networking 2 02-27-2003 11:55 AM
userdatabase....centralized sudo Linux - Networking 5 12-09-2002 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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