Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problems combining pam_ccreds and pam_unix/pam_krb5

Reply
Thread Tools Display Modes

Problems combining pam_ccreds and pam_unix/pam_krb5

 
 
Michael F Gordon
Guest
Posts: n/a

 
      05-25-2006, 05:03 PM
I'm configuring a laptop and trying to combine pam_ccreds, pam_unix and
pam_krb5 to use Kerberos or NIS passwords if they're available - i.e. the
laptop's plugged into the network - and cached credentials from a previously
successful network authentication if not. The home directory should be
different for the two logins as well - an NFS home when on the network and a
directory on the local disk when disconnected.

I have "passwd: compat" in /etc/nsswitch.conf and

+@
mfg:x:12345:12345:Michael Gordon:/localdisk/home/mfg:/bin/bash

in /etc/passwd so that it uses the NIS passwd entry if it's available and
the /etc/passwd one otherwise.

The problem is that I can't work out the right combination of modules and
actions in /etc/pam.d/system_auth to get this to work. The logic I want
is basically

If pam_unix succeeds
write credentials into pam_ccred's database
jump to DONE
if pam_krb5 succeeds
write credentials into pam_ccred's database
jump to DONE
if pam_ccred succeeds
jump to DONE
Login fails
DONE:
Any other modules that PAM needs

I've tried various combinations, with results including logins being refused
entirely, printing "You have been logged on using cached credentials"
and dropping back to the login prompt, and any password being accepted.


Michael
--
Quidquid latine dictum sit, altum viditur.
 
Reply With Quote
 
 
 
Reply

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining 2 broadband connections Eeyore Broadband 6 03-16-2007 11:07 AM
Combining 802.11 B + G on same SSID? Lars Kellogg-Stedman Wireless Internet 1 12-02-2005 10:04 AM
Combining networks David Home Networking 5 09-08-2005 09:17 AM
Combining networks David Network Routers 5 09-08-2005 09:17 AM
duaL ADSL COMBINING atec77>> Linux Networking 1 10-09-2003 10:20 PM



1 2 3 4 5 6 7 8 9 10 11