diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-22 06:31:37 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-22 06:31:37 +0100 |
commit | 094cd2dbd5e79e8ad607286f8af2ebd27fd8ed7a (patch) | |
tree | ceda0607d4d3a8333f0d6b438965c9e27a847b56 /src/cerberus.c | |
parent | pam_acct_mgmt freezes (diff) | |
download | libpassphrase-094cd2dbd5e79e8ad607286f8af2ebd27fd8ed7a.tar.gz libpassphrase-094cd2dbd5e79e8ad607286f8af2ebd27fd8ed7a.tar.bz2 libpassphrase-094cd2dbd5e79e8ad607286f8af2ebd27fd8ed7a.tar.xz |
optionally use PAM
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/cerberus.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cerberus.c b/src/cerberus.c index 03a7a75..f20e600 100644 --- a/src/cerberus.c +++ b/src/cerberus.c @@ -67,7 +67,7 @@ int main(int argc, char** argv) chown_tty(0, tty_group, 0); /* Close login session */ - close_session_pam(); + close_login_session(); return 0; } @@ -215,8 +215,8 @@ void do_login(int argc, char** argv) /* Verify passphrase or other token, if -f has not been used */ - initialise_pam(hostname, username, read_passphrase); - if ((skip_auth == 0) && authenticate_pam()) + initialise_login(hostname, username, read_passphrase); + if ((skip_auth == 0) && authenticate_login()) printf("(auto-authenticated)\n"); /* Passphrase entered, turn off timeout */ @@ -236,7 +236,7 @@ void do_login(int argc, char** argv) /* Verify account, such as that it is enabled */ - verify_account_pam(); + verify_account(); /* Partial login */ @@ -244,7 +244,7 @@ void do_login(int argc, char** argv) chdir_home(entry); ensure_shell(entry); set_environ(entry, preserve_env); - open_session_pam(); + open_login_session(); /* Stop signal handling */ @@ -260,7 +260,7 @@ void do_login(int argc, char** argv) if (child_pid == -1) { perror("fork"); - close_session_pam(); + close_login_session(); sleep(ERROR_SLEEP); _exit(1); } |