File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/cpp/server_core/system Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2020
2121#include < core/Log.hpp>
2222#include < core/system/System.hpp>
23+ #include < shared_core/system/SyslogDestination.hpp>
2324
2425namespace rstudio {
2526namespace core {
@@ -187,22 +188,22 @@ int PAM::login(const std::string& username,
187188 &pamh_);
188189 if (status_ != PAM_SUCCESS)
189190 {
190- LOG_ERROR_MESSAGE ( " pam_start failed: " + lastError ());
191+ safeLogToSyslog ( " pam-login " , log::LogLevel::ERR, " pam_start failed: " + lastError ());
191192 return status_;
192193 }
193194
194195 status_ = ::pam_authenticate (pamh_, defaultFlags_);
195196 if (status_ != PAM_SUCCESS)
196197 {
197198 if (status_ != PAM_AUTH_ERR)
198- LOG_ERROR_MESSAGE ( " pam_authenticate failed: " + lastError ());
199+ safeLogToSyslog ( " pam-login " , log::LogLevel::ERR, " pam_authenticate failed: " + lastError ());
199200 return status_;
200201 }
201202
202203 status_ = ::pam_acct_mgmt (pamh_, defaultFlags_);
203204 if (status_ != PAM_SUCCESS)
204205 {
205- LOG_ERROR_MESSAGE ( " pam_acct_mgmt failed: " + lastError ());
206+ safeLogToSyslog ( " pam-login " , log::LogLevel::ERR, " pam_acct_mgmt failed: " + lastError ());
206207 return status_;
207208 }
208209
You can’t perform that action at this time.
0 commit comments