summaryrefslogtreecommitdiff
path: root/tests/scripts/xdmcp-server-double-login.conf
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-04-22 12:02:01 +1200
committerRobert Ancell <robert.ancell@canonical.com>2014-04-22 12:02:01 +1200
commit6ead7b7acb857dd3f61f157447aa58f570a76667 (patch)
tree6cf58b56dc31130d63a9f013f32254e1d33165b3 /tests/scripts/xdmcp-server-double-login.conf
parente939378ba1890c747db75c9cd22018b8d9f99d92 (diff)
downloadlightdm-6ead7b7acb857dd3f61f157447aa58f570a76667.tar.gz
Add tests for XDMCP autologin and multiple connections
Diffstat (limited to 'tests/scripts/xdmcp-server-double-login.conf')
-rw-r--r--tests/scripts/xdmcp-server-double-login.conf101
1 files changed, 101 insertions, 0 deletions
diff --git a/tests/scripts/xdmcp-server-double-login.conf b/tests/scripts/xdmcp-server-double-login.conf
new file mode 100644
index 00000000..68f24f5a
--- /dev/null
+++ b/tests/scripts/xdmcp-server-double-login.conf
@@ -0,0 +1,101 @@
+#
+# Check that two remote X servers can login via XDMCP
+#
+
+[LightDM]
+start-default-seat=false
+
+[XDMCPServer]
+enabled=true
+port=9999
+
+[SeatDefaults]
+user-session=default
+
+#?*START-DAEMON
+#?RUNNER DAEMON-START
+#?*WAIT
+
+# Start a remote X server to log in with XDMCP
+#?*START-XSERVER ARGS=":98 -query localhost -port 9999 -nolisten unix"
+#?XSERVER-98 START
+
+# Start sending XDMCP queries
+#?*XSERVER-98 START-XDMCP
+#?XSERVER-98 SEND-QUERY
+
+# Negotiate with daemon
+#?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS=""
+#?XSERVER-98 SEND-REQUEST DISPLAY-NUMBER=98 AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" MFID="TEST XSERVER"
+#?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]* AUTHENTICATION-NAME="" AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1"
+#?XSERVER-98 SEND-MANAGE SESSION-ID=[0-9]* DISPLAY-NUMBER=98 DISPLAY-CLASS="DISPLAY CLASS"
+
+# LightDM connects to X server
+#?XSERVER-98 ACCEPT-CONNECT
+
+# Greeter starts and connects to remote X server
+#?GREETER-X-127.0.0.1:98 START XDG_SESSION_CLASS=greeter
+#?LOGIN1 ACTIVATE-SESSION SESSION=c0
+#?XSERVER-98 ACCEPT-CONNECT
+#?GREETER-X-127.0.0.1:98 CONNECT-XSERVER
+#?GREETER-X-127.0.0.1:98 CONNECT-TO-DAEMON
+#?GREETER-X-127.0.0.1:98 CONNECTED-TO-DAEMON
+
+# Log in
+#?*GREETER-X-127.0.0.1:98 AUTHENTICATE USERNAME=have-password1
+#?GREETER-X-127.0.0.1:98 SHOW-PROMPT TEXT="Password:"
+#?*GREETER-X-127.0.0.1:98 RESPOND TEXT="password"
+#?GREETER-X-127.0.0.1:98 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE
+#?*GREETER-X-127.0.0.1:98 START-SESSION
+#?GREETER-X-127.0.0.1:98 TERMINATE SIGNAL=15
+
+# Session starts
+#?SESSION-X-127.0.0.1:98 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1
+#?LOGIN1 ACTIVATE-SESSION SESSION=c1
+#?XSERVER-98 ACCEPT-CONNECT
+#?SESSION-X-127.0.0.1:98 CONNECT-XSERVER
+
+# Start a second remote X server to log in with XDMCP
+#?*START-XSERVER ARGS=":99 -query localhost -port 9999 -nolisten unix"
+#?XSERVER-99 START
+
+# Start sending XDMCP queries
+#?*XSERVER-99 START-XDMCP
+#?XSERVER-99 SEND-QUERY
+
+# Negotiate with daemon
+#?XSERVER-99 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS=""
+#?XSERVER-99 SEND-REQUEST DISPLAY-NUMBER=99 AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" MFID="TEST XSERVER"
+#?XSERVER-99 GOT-ACCEPT SESSION-ID=[0-9]* AUTHENTICATION-NAME="" AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1"
+#?XSERVER-99 SEND-MANAGE SESSION-ID=[0-9]* DISPLAY-NUMBER=99 DISPLAY-CLASS="DISPLAY CLASS"
+
+# LightDM connects to X server
+#?XSERVER-99 ACCEPT-CONNECT
+
+# Greeter starts and connects to remote X server
+#?GREETER-X-127.0.0.1:99 START XDG_SESSION_CLASS=greeter
+#?LOGIN1 ACTIVATE-SESSION SESSION=c2
+#?XSERVER-99 ACCEPT-CONNECT
+#?GREETER-X-127.0.0.1:99 CONNECT-XSERVER
+#?GREETER-X-127.0.0.1:99 CONNECT-TO-DAEMON
+#?GREETER-X-127.0.0.1:99 CONNECTED-TO-DAEMON
+
+# Log in
+#?*GREETER-X-127.0.0.1:99 AUTHENTICATE USERNAME=have-password1
+#?GREETER-X-127.0.0.1:99 SHOW-PROMPT TEXT="Password:"
+#?*GREETER-X-127.0.0.1:99 RESPOND TEXT="password"
+#?GREETER-X-127.0.0.1:99 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE
+#?*GREETER-X-127.0.0.1:99 START-SESSION
+#?GREETER-X-127.0.0.1:99 TERMINATE SIGNAL=15
+
+# Session starts
+#?SESSION-X-127.0.0.1:99 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1
+#?LOGIN1 ACTIVATE-SESSION SESSION=c3
+#?XSERVER-99 ACCEPT-CONNECT
+#?SESSION-X-127.0.0.1:99 CONNECT-XSERVER
+
+# Clean up
+#?*STOP-DAEMON
+#?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15
+#?SESSION-X-127.0.0.1:99 TERMINATE SIGNAL=15
+#?RUNNER DAEMON-EXIT STATUS=0