diff options
author | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 15:52:00 +0000 |
---|---|---|
committer | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 15:52:00 +0000 |
commit | baaf80940b221830d51faee6a110e4ca28775d35 (patch) | |
tree | 59d3dbbe5714c2462cfcc23d78e7842825fe601d /remoting/host/user_authenticator_fake.h | |
parent | 9d9b7f892057087b4f3fa6c2b80bc32a380d8d11 (diff) | |
download | chromium_src-baaf80940b221830d51faee6a110e4ca28775d35.zip chromium_src-baaf80940b221830d51faee6a110e4ca28775d35.tar.gz chromium_src-baaf80940b221830d51faee6a110e4ca28775d35.tar.bz2 |
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
Diffstat (limited to 'remoting/host/user_authenticator_fake.h')
-rw-r--r-- | remoting/host/user_authenticator_fake.h | 33 |
1 files changed, 33 insertions, 0 deletions
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 <string> + +#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_ |