search for: pam_service_name_append

Displaying 1 result from an estimated 1 matches for "pam_service_name_append".

2002 Nov 24
1
[PATCH] PamServiceNameAppend
...options; extern u_int utmp_len; const char *rhost; + char buf[1024]; debug("Starting up PAM with username \"%.200s\"", user); - pam_retval = pam_start(SSHD_PAM_SERVICE, user, &conv, &__pamh); + strlcpy(buf, SSHD_PAM_SERVICE, sizeof(buf)); + strlcat(buf, options.pam_service_name_append, sizeof(buf)); + pam_retval = pam_start(buf, user, &conv, &__pamh); if (pam_retval != PAM_SUCCESS) fatal("PAM initialisation failed[%d]: %.200s", Index: servconf.c =================================================================== RCS file: /cvs/openssh/servconf.c,v retrie...