RDEV-1648 change prompt type

This commit is contained in:
KRI 2020-03-24 09:20:49 +01:00
parent 50ebd99241
commit 59a91cea2a

View File

@ -282,7 +282,7 @@ int postInit(pam_handle_t *pamh, cJSON **availableMethods, struct ApplicationInf
char *curlResponse = curlHandler(pamh, jsonObj, url, secretKey);
if(curlResponse == NULL) {
pam_prompt(pamh, PAM_PROMPT_ECHO_OFF, NULL, "rublonApiServer is unreachable");
pam_prompt(pamh, PAM_TEXT_INFO, NULL, "rublonApiServer is unreachable");
if((strcmp(getConfigValue("offlineBypass"),"true") == 0))
return STATUS_BYPASS;
return CONNECTION_ERROR;
@ -345,7 +345,7 @@ int postMethod(pam_handle_t *pamh, char *secretKey, char *tId, char *selectedMet
asprintf(&url,"%s/api/transaction/methodSSH",rublonApiServer);
char *curlResponse = curlHandler(pamh, jsonObj, url, secretKey);
if(curlResponse == NULL) {
pam_prompt(pamh, PAM_PROMPT_ECHO_OFF, NULL, "rublonApiServer is unreachable");
pam_prompt(pamh, PAM_TEXT_INFO, NULL, "rublonApiServer is unreachable");
if((strcmp(getConfigValue("offlineBypass"),"true") == 0))
return STATUS_BYPASS;
return CONNECTION_ERROR;
@ -421,7 +421,7 @@ int postConfirmCode(pam_handle_t *pamh, char *secretKey, char *systemToken, char
asprintf(&url,"%s/api/transaction/confirmCode",rublonApiServer);
char *curlResponse = curlHandler(pamh, jsonObj, url, secretKey);
if(curlResponse == NULL) {
pam_prompt(pamh, PAM_PROMPT_ECHO_OFF, NULL, "rublonApiServer is unreachable");
pam_prompt(pamh, PAM_TEXT_INFO, NULL, "rublonApiServer is unreachable");
if((strcmp(getConfigValue("offlineBypass"),"true") == 0))
return STATUS_BYPASS;
return CONNECTION_ERROR;
@ -455,7 +455,7 @@ int postVerifySSH(pam_handle_t *pamh, char *secretKey, char *transactionId, char
asprintf(&url,"%s/api/transaction/verifySSH",rublonApiServer);
char *curlResponse = curlHandler(pamh, jsonObj, url, secretKey);
if(curlResponse == NULL) {
pam_prompt(pamh, PAM_PROMPT_ECHO_OFF, NULL, "rublonApiServer is unreachable");
pam_prompt(pamh, PAM_TEXT_INFO, NULL, "rublonApiServer is unreachable");
if((strcmp(getConfigValue("offlineBypass"),"true") == 0))
return STATUS_BYPASS;
return CONNECTION_ERROR;
@ -487,7 +487,7 @@ int postCredentials(pam_handle_t *pamh, char *systemToken, char *accessToken, ch
char *curlResponse = curlHandler(pamh, jsonObj, url, secretKey);
if(curlResponse == NULL) {
pam_prompt(pamh, PAM_PROMPT_ECHO_OFF, NULL, "rublonApiServer is unreachable");
pam_prompt(pamh, PAM_TEXT_INFO, NULL, "rublonApiServer is unreachable");
if((strcmp(getConfigValue("offlineBypass"),"true") == 0))
return STATUS_BYPASS;
return CONNECTION_ERROR;