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
25class G::PamImp
26{
27} ;
28
29G::Pam::Pam( const std::string & , const std::string & , bool )
30{
31}
32
34= default;
35
36bool G::Pam::authenticate( bool )
37{
38 throw Error( "authenticate" , 0 ) ;
39}
40
41void G::Pam::checkAccount( bool )
42{
43}
44
46{
47}
48
50{
51}
52
54{
55}
56
58{
59}
60
62{
63}
64
66{
67}
68
69std::string G::Pam::name() const
70{
71 return std::string() ;
72}
73
void deleteCredentials()
Deletes credentials.
Definition: gpam_linux.cpp:402
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
bool authenticate(bool require_token)
Authenticates the user.
Definition: gpam_linux.cpp:363
Pam(const std::string &app, const std::string &user, bool silent)
Constructor.
Definition: gpam_linux.cpp:355
void refreshCredentials()
Refreshes credentials.
Definition: gpam_linux.cpp:416
void openSession()
Starts a session.
Definition: gpam_linux.cpp:386
void reinitialiseCredentials()
Reinitialises credentials.
Definition: gpam_linux.cpp:409
virtual ~Pam()
Destructor.
std::string name() const
Returns the authenticated user name.
Definition: gpam_linux.cpp:439
void closeSession()
Closes a session.
Definition: gpam_linux.cpp:394
void establishCredentials()
Embues the authenticated user with their credentials, such as "tickets" in the form of environment va...
Definition: gpam_linux.cpp:378