Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Security
Reload this Page Kerberos PAM issue
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Security Discussion about keeping your machines secure, and the crackers out.

Reply
 
Thread Tools Display Modes
Old 07-08-2003   #1 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
Kerberos PAM issue

Hi all!
I'm currently in the process of upgrading my home security to using Kerberos. It was previously done with NIS, but now I've mangled the passwords in the NIS maps.
I'm having a slight problem, though, which I'm not sure how to solve in a nice way. I want to have PAM support for both pam_unix and pam_krb5, so that root can log in with his locally stored password in case the network goes down for any reason. And here's the problem: account management. Here's what I have now in my PAM config regarding account management:
Code:
account sufficient pam_unix.so
account sufficient pam_krb5.so
account required pam_deny.so
As you can see, that lets a user through if he has either a valid UNIX account OR a valid Kerberos account, and naturally that's not what I want. I want the account to be invalid if the Kerberos account is explicitly invalid, but the UNIX account to be checked if the user doesn't have a Kerberos principal (is with root). So what I'd like is something like this:
Code:
account ultimate pam_krb5.so ignore_nonexistant
account required pam_unix.so
The ignore_nonexistant option would imply that the pam_krb5 module should return PAM_IGNORE if the user doesn't have a Kerberos principal. The control flag ultimate would imply that the stack returns immediately with the result returned by pam_krb5 as long as it is not PAM_IGNORE.

However, as far as I know, neither 'ultimate' nor 'ignore_nonexistant' exist. Does anyone know of a way to work around this, or do I have to rewrite both my PAM and pam_krb5?
Dolda2000 is offline   Reply With Quote
Old 07-08-2003   #2 (permalink)
Linux Engineer
 
Join Date: Jan 2003
Location: Lebanon, pa
Posts: 994
I don't see a problem with how that works. If you have a user with a unix account that you don't want them to login, why not just userdel? With the way you want to do it, wouldn't that return PAM_IGNORE everytime you try to login with root?
genlee is offline   Reply With Quote
Old 07-08-2003   #3 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
The thing is that I want to manage the accounting through Kerberos, ie. account expiration, password aging, and so on. I don't want to userdel someone just to temporarily disable their account.
Yes, it would return PAM_IGNORE everytime I try to log in as root, and that's the purpose. Since root doesn't have a Kerberos account, I want it to fall back on UNIX accounting for him.
As it is now, I would have to synchronize Kerberos and UNIX accountings for it to be effective, and that's not very appealing to me.
Dolda2000 is offline   Reply With Quote
Old 07-08-2003   #4 (permalink)
Linux Engineer
 
Join Date: Jan 2003
Location: Lebanon, pa
Posts: 994
I did a little bit of searching and found this pam module option for krb5. Try ignore_unknown_upn. That should return PAM_IGNORE if PAM_USER has no account. Somthing like this should work:

auth required pam_krb5.so ignore_unknown_upn
auth sufficient pam_unix.so use_first_pass
genlee is offline   Reply With Quote
Old 07-08-2003   #5 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
Strange... When I search for ignore_unknown_upn on google, it finds a lot on it, but it's not supported by my version, and not the latest version available from rpmfind.net, and it doesn't seem to be supported even by the latest CVS version on the linux-pam project on sourceforge.
Thank you very much for the pointer, though. I'll continue to search for it.
Dolda2000 is offline   Reply With Quote
Old 07-09-2003   #6 (permalink)
Linux Engineer
 
Join Date: Apr 2003
Location: Sweden
Posts: 796
Did you find any solution on this Dolda?? i´m also in the steps of trying out kerberos on an enterprise solution..

Regards
__________________
Regards

Andutt
andutt is offline   Reply With Quote
Old 07-09-2003   #7 (permalink)
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
Sorry, not yet. I guess the worst outcome is that I'll have to add support for it myself, though. I checked the source for pam_krb5, and it seems really clean, so it wouldn't be hard.
Dolda2000 is offline   Reply With Quote
Old 07-12-2003   #8 (permalink)
Linux Engineer
 
Join Date: Apr 2003
Location: Sweden
Posts: 796
OK, keep me posted on your progress..

Ha en bra sommar!! on english Have a good summer!!

Regards
__________________
Regards

Andutt
andutt is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 10:25 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0