summaryrefslogtreecommitdiff
path: root/tests/scripts/xdmcp-server-xdm-authentication.conf
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-11-19 15:45:31 +1300
committerRobert Ancell <robert.ancell@canonical.com>2015-11-19 15:45:31 +1300
commit2178138278219b3b97930bd28295408c570135e6 (patch)
treee207f620ed848bc30a613f3c2593fc81bca482ab /tests/scripts/xdmcp-server-xdm-authentication.conf
parent09c292be4c9cdecf0e2ab0d3fd169c4fd32dc760 (diff)
downloadlightdm-2178138278219b3b97930bd28295408c570135e6.tar.gz
Refactor XDMCP error handling and add many more XDMCP tests
Diffstat (limited to 'tests/scripts/xdmcp-server-xdm-authentication.conf')
-rw-r--r--tests/scripts/xdmcp-server-xdm-authentication.conf45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/scripts/xdmcp-server-xdm-authentication.conf b/tests/scripts/xdmcp-server-xdm-authentication.conf
new file mode 100644
index 00000000..aae66e44
--- /dev/null
+++ b/tests/scripts/xdmcp-server-xdm-authentication.conf
@@ -0,0 +1,45 @@
+#
+# Check that a remote X server can autologin via XDMCP using XDM authentication
+#
+
+[LightDM]
+start-default-seat=false
+
+[XDMCPServer]
+enabled=true
+key=test-key
+
+[Seat:*]
+user-session=default
+autologin-user=have-password1
+
+#?*START-DAEMON
+#?RUNNER DAEMON-START
+#?*WAIT
+
+# Start a remote X server to log in with XDMCP
+#?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix"
+#?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX
+
+# Request to connect with XDM authentication - daemon says OK
+#?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="XDM-AUTHENTICATION-1"
+#?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" HOSTNAME="" STATUS=""
+
+# Connect - daemon says OK
+#?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA="0123456789ABCDEF" AUTHORIZATION-NAMES="XDM-AUTHORIZATION-1"
+#?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]* AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHORIZATION-NAME="XDM-AUTHORIZATION-1"
+#?*XSERVER-98 SEND-MANAGE
+
+# LightDM connects to X server
+#?XSERVER-98 ACCEPT-CONNECT
+
+# 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=c0
+#?XSERVER-98 ACCEPT-CONNECT
+#?SESSION-X-127.0.0.1:98 CONNECT-XSERVER
+
+# Clean up
+#?*STOP-DAEMON
+#?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15
+#?RUNNER DAEMON-EXIT STATUS=0