From baaf80940b221830d51faee6a110e4ca28775d35 Mon Sep 17 00:00:00 2001 From: "lambroslambrou@chromium.org" Date: Fri, 25 Feb 2011 15:52:00 +0000 Subject: Use PAM auth on Linux, and stubs on other platforms. BUG=None TEST=Enter correct or incorrect user/password into Local Login prompt. Review URL: http://codereview.chromium.org/6566006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76050 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/user_authenticator_fake.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 remoting/host/user_authenticator_fake.h (limited to 'remoting/host/user_authenticator_fake.h') diff --git a/remoting/host/user_authenticator_fake.h b/remoting/host/user_authenticator_fake.h new file mode 100644 index 0000000..f351931 --- /dev/null +++ b/remoting/host/user_authenticator_fake.h @@ -0,0 +1,33 @@ +// Copyright (c) 2011 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_USER_AUTHENTICATOR_FAKE_H_ +#define REMOTING_HOST_USER_AUTHENTICATOR_FAKE_H_ + +#include + +#include "base/basictypes.h" +#include "remoting/host/user_authenticator.h" + +namespace remoting { + +// Temporary stub for platforms where this hasn't been implemented yet. + +// TODO(lambroslambrou): Implement properly on those platforms, then +// delete this stub when it's no longer needed. +class UserAuthenticatorFake : public UserAuthenticator { + public: + UserAuthenticatorFake(); + virtual ~UserAuthenticatorFake(); + + virtual bool Authenticate(const std::string& username, + const std::string& password); + + private: + DISALLOW_COPY_AND_ASSIGN(UserAuthenticatorFake); +}; + +} // namespace remoting + +#endif // REMOTING_HOST_USER_AUTHENTICATOR_FAKE_H_ -- cgit v1.1