[PATCH] make pam service a settable option

Roumen Petrov openssh at roumenpetrov.info
Thu Jun 24 00:12:49 EST 2004


Jeff Layton wrote:

>On Wed, 2004-06-23 at 09:31, Flavien Lebarbe wrote:
>  
>
>>>This patch adds a config file option 'PAMService' that sets the PAM
>>>service sshd will use.
>>>      
>>>
>>You don't need that option. 
>>
>>ln -s sshd /usr/sbin/sshd_remote
>>
>>sshd will identify itself as _progname, which will be "sshd_remote".
>>
>>    
>>
>
>This won't work if you're using a version where SSHD_PAM_SERVICE is
>defined at compile-time. I think it worthy of being able to set at
>runtime regardless of how it was compiled, but I'll understand if others
>do not.
>
>  
>
What about in auth-pam.h code to be like following lines:
#ifdef SSHD_PAM_SERVICE
# undef SSHD_PAM_SERVICE
#endif
#define SSHD_PAM_SERVICE        __progname







More information about the openssh-unix-dev mailing list