summaryrefslogtreecommitdiffstats
path: root/libpam/pam_account.c
blob: 3a4fb1fc8c049783346a185c0bcfc7af4b4c1b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* pam_account.c - PAM Account Management */

#include "pam_private.h"

#include <stdio.h>

int pam_acct_mgmt(pam_handle_t *pamh, int flags)
{
    int retval;

    D(("called"));

    IF_NO_PAMH("pam_acct_mgmt", pamh, PAM_SYSTEM_ERR);

    if (__PAM_FROM_MODULE(pamh)) {
	D(("called from module!?"));
	return PAM_SYSTEM_ERR;
    }

    retval = _pam_dispatch(pamh, flags, PAM_ACCOUNT);

    return retval;
}