LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-12-2009, 03:02 PM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
Multiple ssh authentication (kerberos, unix) to display different 'password:'


I am using pam to have an optional kerberos authentication in order to auto init a ticket when the user logs in. The problem I run into is if the user has a separate password for the local account (shadow) and the kerberos account. In this case, the user will ssh in, and be prompted for the password twice, with no notification of which its looking for, for example:

[root@kdc01 ~]# ssh red@localhost
Password:
Password:
Last login: Thu Mar 12 19:59:39 2009 from 68.87.101.10
[red@kdc01 ~]$


Where my pam system-auth stack auth looks like:
auth required pam_env.so
auth required pam_tally.so onerr=fail deny=5
auth optional pam_krb5.so
auth sufficient pam_unix.so nullok #try_first_pass
auth requisite pam_succeed_if.so uid >= 500 quiet
auth required pam_deny.so


I would like something like:
[root@kdc01 ~]# ssh red@localhost
Kerberos Password:
Local Password:


Thanks.
 
  


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
pam_mount Authentication and SSH Password-Less Login MailleMan Linux - Software 3 07-22-2009 04:06 PM
kerberos authentication for multiple realms sakshale Linux - Security 2 11-20-2008 12:02 PM
LXer: sshpass - Non-interactive ssh password authentication LXer Syndicated Linux News 0 05-04-2008 04:50 PM
Private/Public key vs. Password authentication w/ SSH MykeV Linux - Security 5 11-25-2007 11:49 AM
ssh with password authentication Nyarlathotep Linux - Security 4 10-06-2003 12:13 PM

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

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