summaryrefslogtreecommitdiff
path: root/tests/scripts/xdmcp-server-keep-alive.conf
blob: cd52cfc03d5a441e11fda19fa1a65f0d41ca5ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Check that LightDM correctly responds to KeepAlive messages
#

[LightDM]
start-default-seat=false

[XDMCPServer]
enabled=true

[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 - daemon says OK
#?*XSERVER-98 SEND-QUERY
#?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="lightdm-test" STATUS=""

# Connect - daemon says OK
#?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1"
#?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="" AUTHENTICATION-DATA= AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" AUTHORIZATION-DATA=[0-9A-F]{32}
#?*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

# Check daemon is alive
#?*XSERVER-98 SEND-KEEP-ALIVE
#?XSERVER-98 GOT-ALIVE SESSION-RUNNING=TRUE SESSION-ID=[0-9]+

# Clean up
#?*STOP-DAEMON
#?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15
#?RUNNER DAEMON-EXIT STATUS=0