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

Unified Diff: src/platform/pam_offline/authenticator.cc

Issue 591001: move enable_localaccount.sh, make pam_offline use it (Closed)
Patch Set: fix comment Created 10 years, 10 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 | « src/platform/pam_offline/SConstruct ('k') | src/platform/pam_offline/credentials.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/pam_offline/authenticator.cc
diff --git a/src/platform/pam_offline/authenticator.cc b/src/platform/pam_offline/authenticator.cc
index 084fa781bd36dd27c66e009799035968736aa929..5476520c8d10c1e5ca75457c1d0bfeb7d49542a3 100644
--- a/src/platform/pam_offline/authenticator.cc
+++ b/src/platform/pam_offline/authenticator.cc
@@ -171,6 +171,13 @@ bool Authenticator::TestOneMasterKey(const string &master_key_file,
}
bool Authenticator::TestAllMasterKeys(const Credentials &credentials) const {
+#ifdef CHROMEOS_PAM_LOCALACCOUNT
+ if (credentials.IsLocalAccount()) {
+ LOG(WARNING) << "Logging in with local account credentials.";
+ return true;
+ }
+#endif
+
if (system_salt_.empty()) {
LOG(ERROR) << "System salt not loaded.";
return false;
« no previous file with comments | « src/platform/pam_offline/SConstruct ('k') | src/platform/pam_offline/credentials.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698