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; |