1833589 Members
4236 Online
110061 Solutions
New Discussion

PAM Telnet

 
stefano_20
Occasional Contributor

PAM Telnet

I'm working with PAM framework on HP-UX 11.11 64-bit PA-RISC.
I have written custom PAM module and inside the module pam_sm_authenticate I call pam_get_item(pam_handle,PAM_SERVICE,(void**)&service). By telnet I required authentication to my PAM module. service value was "login". My question is: 1)Why its value was not "telnet"?
2)PAM framework work properly on HP-UX 11.11? Is it the same of Solaris?

Thanks in advance
1 REPLY 1
Trever Furnish
Regular Advisor

Re: PAM Telnet

With regards to your question number one: Telnetd runs the login program, so the service *is* login. See man telnetd and man login. The 'login:' prompt you get is actually coming from the stdout of the login command, which telnetd passes along to the network client. In other words, login is doing the authentication, not telnetd.

Sorry, no clue about 11.11.

HTH
Hockey PUX?