E-MailRelay
gpam_none.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2001-2018 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 // gpam_none.cpp
19 //
20 
21 #include "gdef.h"
22 #include "gpam.h"
23 #include <string>
24 
25 G::Pam::Pam( const std::string & , const std::string & , bool )
26 {
27 }
28 
30 {
31 }
32 
33 bool G::Pam::authenticate( bool )
34 {
35  throw PamError( "authenticate" , 0 ) ;
36  return false ;
37 }
38 
39 void G::Pam::checkAccount( bool )
40 {
41 }
42 
44 {
45 }
46 
48 {
49 }
50 
52 {
53 }
54 
56 {
57 }
58 
60 {
61 }
62 
64 {
65 }
66 
67 std::string G::Pam::name() const
68 {
69  return std::string() ;
70 }
71 
72 /// \file gpam_none.cpp
void closeSession()
Closes a session.
Definition: gpam_linux.cpp:385
std::string name() const
Returns the authenticated user name.
Definition: gpam_linux.cpp:419
void refreshCredentials()
Refreshes credentials.
Definition: gpam_linux.cpp:401
void checkAccount(bool require_token)
Does "account management", checking that the authenticated user is currently allowed to use the syste...
Definition: gpam_linux.cpp:367
void reinitialiseCredentials()
Reinitialises credentials.
Definition: gpam_linux.cpp:396
void openSession()
Starts a session.
Definition: gpam_linux.cpp:379
void establishCredentials()
Embues the authenticated user with their credentials, such as "tickets" in the form of environment va...
Definition: gpam_linux.cpp:373
bool authenticate(bool require_token)
Authenticates the user.
Definition: gpam_linux.cpp:361
Pam(const std::string &app, const std::string &user, bool silent)
Constructor.
Definition: gpam_linux.cpp:351
virtual ~Pam()
Destructor.
Definition: gpam_linux.cpp:356
void deleteCredentials()
Deletes credentials.
Definition: gpam_linux.cpp:391