aboutsummaryrefslogtreecommitdiff
path: root/tests/mock_pam.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-04-24 18:40:54 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-04-24 18:40:54 +0200
commitf0759d14ca2c258b42e1401c9a686da14ed4f06c (patch)
tree5c41789281c987cd133499073addcd393a58bc1c /tests/mock_pam.c
parent7e997b2c3497ad8be857072a9bfb5d77bfca2f8d (diff)
downloadlibpam-x2go-f0759d14ca2c258b42e1401c9a686da14ed4f06c.tar.gz
libpam-x2go-f0759d14ca2c258b42e1401c9a686da14ed4f06c.tar.bz2
libpam-x2go-f0759d14ca2c258b42e1401c9a686da14ed4f06c.zip
Adapt to changes in lightdm-remote-login-x2go (0.0.1.0). Expect a UCCS service that supports session type »x2go».
Diffstat (limited to 'tests/mock_pam.c')
-rw-r--r--tests/mock_pam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mock_pam.c b/tests/mock_pam.c
index 2da9963..64c503f 100644
--- a/tests/mock_pam.c
+++ b/tests/mock_pam.c
@@ -1,5 +1,5 @@
/*
- * Copyright © 2012 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.
+ * Copyright © 2012-2013 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.
* Copyright © 2012 Canonical Ltd. All rights reserved.
*
* Author(s): Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
@@ -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, "domain:") == 0)
- response->resp = strdup ("domain");
+ else if (strcmp((*msg)->msg, "sessiontype:") == 0)
+ response->resp = strdup ("sessiontype");
else
return PAM_SYMBOL_ERR; /* leaks... */