aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-03 10:27:10 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-03 10:27:10 +0200
commitfae5b91f36e94c6959fb72130d5d4de5f9669e30 (patch)
tree3853fdfa45ca22f50bfe01f9069c2c5968e329d4
parentb2bcfc0f277c369bcf9eecfaa7fea648b6caa80d (diff)
downloadlibpam-x2go-fae5b91f36e94c6959fb72130d5d4de5f9669e30.tar.gz
libpam-x2go-fae5b91f36e94c6959fb72130d5d4de5f9669e30.tar.bz2
libpam-x2go-fae5b91f36e94c6959fb72130d5d4de5f9669e30.zip
PAM prompt: rename from "x2gosession" to "remote command".
-rw-r--r--src/pam-x2go.c2
-rw-r--r--tests/mock_pam.c4
-rw-r--r--tests/test-x2go-auth.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/pam-x2go.c b/src/pam-x2go.c
index 552cb3c..180ec0a 100644
--- a/src/pam-x2go.c
+++ b/src/pam-x2go.c
@@ -106,7 +106,7 @@ get_item (pam_handle_t * pamh, int type)
message.msg_style = PAM_PROMPT_ECHO_OFF;
break;
case PAM_TYPE_X2GO_COMMAND:
- message.msg = "x2gosession:";
+ message.msg = "remote command:";
break;
default:
return NULL;
diff --git a/tests/mock_pam.c b/tests/mock_pam.c
index 64c503f..a07c9af 100644
--- a/tests/mock_pam.c
+++ b/tests/mock_pam.c
@@ -39,8 +39,8 @@ int fake_conv (int num_msg, const struct pam_message **msg,
response->resp = strdup ("protocol://rhost/dummy");
else if (strcmp((*msg)->msg, "password:") == 0)
response->resp = strdup ("password");
- else if (strcmp((*msg)->msg, "sessiontype:") == 0)
- response->resp = strdup ("sessiontype");
+ else if (strcmp((*msg)->msg, "remote command:") == 0)
+ response->resp = strdup ("rcommand");
else
return PAM_SYMBOL_ERR; /* leaks... */
diff --git a/tests/test-x2go-auth.c b/tests/test-x2go-auth.c
index 592f0c7..affacd7 100644
--- a/tests/test-x2go-auth.c
+++ b/tests/test-x2go-auth.c
@@ -46,7 +46,7 @@ main (int argc, char * argv[])
}
/* Check session type */
- if (strcmp(argv[3], "sessiontype")) {
+ if (strcmp(argv[3], "rcommand")) {
return -1;
}