Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pam system-auth help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 123

PostPosted: Thu Apr 05, 2012 10:17 am    Post subject: pam system-auth help Reply with quote

I'm struggling with my pam configuration. I need to be able to use local or active directory logins but also want to use ecryptfs. Trouble is by specifying 'sufficient' for either pam_unix or pam_winbind causes pam to exit with a successful login and not run pam_ecryptfs after it. I've tried using 'optional' and tried pam_permit but that then means i can either not login at all or can login even with an invalid password. I can't seem to be able to get the correct configuration. Can anyone please help?

Code:

auth            required        pam_env.so
auth            sufficient       pam_unix.so try_first_pass likeauth nullok
auth            sufficient       pam_winbind.so try_first_pass                                         
auth            required        pam_ecryptfs.so unwrap
auth            required        pam_deny.so
Back to top
View user's profile Send private message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 123

PostPosted: Thu Apr 05, 2012 1:52 pm    Post subject: Reply with quote

I think i have solved this with the following:


Code:
## If pam_unix passes skip 2 positions over the pam_deny and then onto pam_ecryptfs.
## If pam_winbind passes skip 1 position over the pam_deny and then onto the pam_ecryptfs.
auth            [success=2 new_authtok_reqd=done default=ignore]        pam_unix.so try_first_pass likeauth nullok
auth            [success=1 new_authtok_reqd=done default=ignore]        pam_winbind.so try_first_pass
auth            required        pam_deny.so
auth            required        pam_ecryptfs.so unwrap
auth            required        pam_permit.so
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum