sbuild  1.6.10
sbuild-auth-null.h
1 /* Copyright © 2005-2007 Roger Leigh <rleigh@debian.org>
2  *
3  * schroot is free software: you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * schroot is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see
15  * <http://www.gnu.org/licenses/>.
16  *
17  *********************************************************************/
18 
19 #ifndef SBUILD_AUTH_NULL_H
20 #define SBUILD_AUTH_NULL_H
21 
22 #include <sbuild/sbuild-auth.h>
23 
24 namespace sbuild
25 {
26 
34  class auth_null : public auth
35  {
36  private:
45  auth_null (std::string const& service_name);
46 
47  public:
51  virtual ~auth_null ();
52 
62  static auth::ptr
63  create (std::string const& service_name);
64 
71  virtual environment
72  get_auth_environment () const;
73 
74  virtual void
75  start ();
76 
77  virtual void
78  stop ();
79 
80  virtual void
81  authenticate (status auth_status);
82 
83  virtual bool
84  is_initialised () const;
85 
86  protected:
91  };
92 
93 }
94 
95 #endif /* SBUILD_AUTH_NULL_H */
96 
97 /*
98  * Local Variables:
99  * mode:C++
100  * End:
101  */
Debian source builder components.
Definition: sbuild-auth-null.h:24
virtual ~auth_null()
The destructor.
Definition: sbuild-auth-null.cc:45
static auth::ptr create(std::string const &service_name)
Create an auth_null object.
Definition: sbuild-auth-null.cc:59
Authentication handler.
Definition: sbuild-auth.h:69
Container of environment variables.
Definition: sbuild-environment.h:38
virtual environment get_auth_environment() const
Get the PAM environment.
Definition: sbuild-auth-null.cc:65
Null Authentication handler.
Definition: sbuild-auth-null.h:34
virtual bool is_initialised() const
Check if PAM is initialised (i.e.
Definition: sbuild-auth-null.cc:133
environment auth_environment
Minimal environment.
Definition: sbuild-auth-null.h:90
virtual void authenticate(status auth_status)
Perform PAM authentication.
Definition: sbuild-auth-null.cc:92
bool initialised
Is the serive initialised?
Definition: sbuild-auth-null.h:88
status
Authentication status.
Definition: sbuild-auth.h:73
std::shared_ptr< auth > ptr
A shared_ptr to a auth object.
Definition: sbuild-auth.h:97
virtual void stop()
Stop the PAM system.
Definition: sbuild-auth-null.cc:86
auth_null(std::string const &service_name)
The constructor.
Definition: sbuild-auth-null.cc:39
virtual void start()
Start the PAM system.
Definition: sbuild-auth-null.cc:71