E-MailRelay

gpam_none.cpp
Go to the documentation of this file.
1//
2// Copyright (C) 2001-2024 Graeme Walker <graeme_walker@users.sourceforge.net>
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <http://www.gnu.org/licenses/>.
16// ===
17///
18/// \file gpam_none.cpp
19///
20
21#include "gdef.h"
22#include "gpam.h"
23#include <string>
24
25 class G::PamImp
26{
27} ;
28
29 G::Pam::Pam( const std::string & , const std::string & , bool )
30{
31}
32
33 G::Pam::~Pam()
34= default;
35
36 bool G::Pam::authenticate( bool )
37{
38 throw Error( "authenticate" , 0 ) ;
39}
40
41 void G::Pam::checkAccount( bool )
42{
43}
44
45 void G::Pam::establishCredentials()
46{
47}
48
49 void G::Pam::openSession()
50{
51}
52
53 void G::Pam::closeSession()
54{
55}
56
57 void G::Pam::deleteCredentials()
58{
59}
60
61 void G::Pam::reinitialiseCredentials()
62{
63}
64
65 void G::Pam::refreshCredentials()
66{
67}
68
69std::string G::Pam::name() const
70{
71 return std::string() ;
72}
73
G::Pam::deleteCredentials
void deleteCredentials()
Deletes credentials.
Definition: gpam_linux.cpp:402
G::Pam::checkAccount
void checkAccount(bool require_token)
Does "account management", checking that the authenticated user is currently allowed to use the syste...
Definition: gpam_linux.cpp:370
G::Pam::authenticate
bool authenticate(bool require_token)
Authenticates the user.
Definition: gpam_linux.cpp:363
G::Pam::Pam
Pam(const std::string &app, const std::string &user, bool silent)
Constructor.
Definition: gpam_linux.cpp:355
G::Pam::refreshCredentials
void refreshCredentials()
Refreshes credentials.
Definition: gpam_linux.cpp:416
G::Pam::openSession
void openSession()
Starts a session.
Definition: gpam_linux.cpp:386
G::Pam::reinitialiseCredentials
void reinitialiseCredentials()
Reinitialises credentials.
Definition: gpam_linux.cpp:409
G::Pam::~Pam
virtual ~Pam()
Destructor.
G::Pam::name
std::string name() const
Returns the authenticated user name.
Definition: gpam_linux.cpp:439
G::Pam::closeSession
void closeSession()
Closes a session.
Definition: gpam_linux.cpp:394
G::Pam::establishCredentials
void establishCredentials()
Embues the authenticated user with their credentials, such as "tickets" in the form of environment va...
Definition: gpam_linux.cpp:378
gpam.h