[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PAM awareness

From: Scott C. Lohr
Subject: PAM awareness
Date: Wed, 16 Jun 2004 17:08:35 -0700


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 

         * 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*/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]