E-MailRelay

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
29 G::Pam::~Pam()
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
43 void G::Pam::establishCredentials()
44 {
45 }
46
47 void G::Pam::openSession()
48 {
49 }
50
51 void G::Pam::closeSession()
52 {
53 }
54
55 void G::Pam::deleteCredentials()
56 {
57 }
58
59 void G::Pam::reinitialiseCredentials()
60 {
61 }
62
63 void G::Pam::refreshCredentials()
64 {
65 }
66
67 std::string G::Pam::name() const
68 {
69 return std::string() ;
70 }
71
72 /// \file gpam_none.cpp
G::Pam::closeSession
void closeSession()
Closes a session.
Definition: gpam_linux.cpp:385
G::Pam::name
std::string name() const
Returns the authenticated user name.
Definition: gpam_linux.cpp:419
G::Pam::refreshCredentials
void refreshCredentials()
Refreshes credentials.
Definition: gpam_linux.cpp:401
gpam.h
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:367
G::Pam::reinitialiseCredentials
void reinitialiseCredentials()
Reinitialises credentials.
Definition: gpam_linux.cpp:396
G::Pam::openSession
void openSession()
Starts a session.
Definition: gpam_linux.cpp:379
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:373
G::Pam::authenticate
bool authenticate(bool require_token)
Authenticates the user.
Definition: gpam_linux.cpp:361
G::Pam::Pam
Pam(const std::string &app, const std::string &user, bool silent)
Constructor.
Definition: gpam_linux.cpp:351
G::Pam::~Pam
virtual ~Pam()
Destructor.
Definition: gpam_linux.cpp:356
G::Pam::deleteCredentials
void deleteCredentials()
Deletes credentials.
Definition: gpam_linux.cpp:391