Changeset 310 in openpam for trunk


Ignore:
Timestamp:
Jun 10, 2005, 8:19:09 AM (14 years ago)
Author:
Dag-Erling Smørgrav
Message:

Return specific error codes for pam_sm_setcred() and pam_sm_chauthtok()
instead of the generic PAM_PERM_DENIED.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/pam_deny/pam_deny.c

    r251 r310  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/modules/pam_deny/pam_deny.c#9 $
     34 * $P4: //depot/projects/openpam/modules/pam_deny/pam_deny.c#10 $
    3535 */
    3636
     
    5656{
    5757
    58         return (PAM_PERM_DENIED);
     58        return (PAM_CRED_ERR);
    5959}
    6060
     
    8888{
    8989
    90         return (PAM_PERM_DENIED);
     90        return (PAM_AUTHTOK_ERR);
    9191}
    9292
Note: See TracChangeset for help on using the changeset viewer.