sshd and pam , conversation

yack yaccck at yahoo.com
Thu Apr 10 11:38:34 EST 2003


I have setup openssh with hostbased 
authentication on linux (redhat).

I want to allow/deny users based on a 
listfile, so i have a PAM module that 
does that, and it runs in the "account" 
section (oposed to pam_listfile.so, 
that uses the "auth"  section - it wouldt 
work because with hostbased authentication 
openssh ignores the "auth" section).

It's working perfectly, but i also want to
display a message to those users that are 
denied login, so i modified pam_motd to work
in "account"  section, but i can't get the
message to be printed.

I can't make pam_motd to work in the "session"
section either.

There's a section:
message.msg_style=PAM_TEXT_INFO;
message.msg="blahblah..";
pam_get_item(pamh,PAM_CONV,&conversation);
conversation->conv(1,&pmessage,&resp,conversation->appdata_ptr);
etc.

but apparently its ignored by PAM, any ideas?




__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com




More information about the openssh-unix-dev mailing list