Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(709)

Unified Diff: remoting/host/pam_authorization_factory_posix.h

Issue 11276040: Implemented local login check for PAM (only enabled on Linux for now). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer comments. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/pam_authorization_factory_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/pam_authorization_factory_posix.h
diff --git a/remoting/host/pam_authorization_factory_posix.h b/remoting/host/pam_authorization_factory_posix.h
new file mode 100644
index 0000000000000000000000000000000000000000..7219698b58e6a9c011f18fe7215a42283aad085f
--- /dev/null
+++ b/remoting/host/pam_authorization_factory_posix.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_
+#define REMOTING_HOST_PAM_AUTHORIZATION_FACTORY_POSIX_H_
+
+#include "remoting/protocol/authenticator.h"
+
+#include "base/memory/scoped_ptr.h"
+
+// PamAuthorizationFactory abuses the AuthenticatorFactory interface to apply
+// PAM-based authorization on top of some underlying authentication scheme.
+
+namespace remoting {
+
+class PamAuthorizationFactory : public protocol::AuthenticatorFactory {
+ public:
+ PamAuthorizationFactory(
+ scoped_ptr<protocol::AuthenticatorFactory> underlying);
+ virtual ~PamAuthorizationFactory();
+
+ virtual scoped_ptr<protocol::Authenticator> CreateAuthenticator(
+ const std::string& local_jid,
+ const std::string& remote_jid,
+ const buzz::XmlElement* first_message) OVERRIDE;
+
+ private:
+ scoped_ptr<protocol::AuthenticatorFactory> underlying_;
+};
+
+} // namespace remoting
+
+#endif
« no previous file with comments | « no previous file | remoting/host/pam_authorization_factory_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698