summaryrefslogtreecommitdiff
path: root/tests/scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf')
-rw-r--r--tests/scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf b/tests/scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf
new file mode 100644
index 00000000..efac51bc
--- /dev/null
+++ b/tests/scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf
@@ -0,0 +1,34 @@
+#
+# Check that a remote X server needs both XDM authentication and authorization
+#
+
+[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 with wrong authorization - daemon declines
+#?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA="0123456789ABCDEF" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1"
+#?XSERVER-98 GOT-DECLINE STATUS="No matching authorization, server requires XDM-AUTHORIZATION-1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1"
+
+# Clean up
+#?*STOP-DAEMON
+#?RUNNER DAEMON-EXIT STATUS=0