Hello,
This may have been modified already and I'm not the most savvy c programmer but
I was trying to get PAM working using the access.conf restrictions and out of
the box version cvs-1.12.9 didn't work just right. The following modifications
have done the trick in the server.c file.
I added the following to "check_system_password (char *username, char
*password)"
/*
* slohr Wed Jun 16 14:03:17 PDT 2004
*
* Modified to be even more "PAM Aware" since modules like
* pam_group and pam_time require the tty to be set and the
* username to be accessible. For some reason the username
* was not readily available so I've explicitly added the
* item.
*
*/
if (retval == PAM_SUCCESS)
{
retval = pam_set_item (pamh, PAM_TTY, "cvs");
}
if (retval == PAM_SUCCESS)
{
pam_set_item (pamh, PAM_USER, username);
}
/*end slohr changes*/
Thanks!
Scott