summaryrefslogtreecommitdiff
path: root/tests/scripts/xdmcp-server-open-file-descriptors.conf
blob: a6511f8d064d41e258b875831743d3e452f558c4 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Check that an XDMCP session doesn't have any unknown file descriptors
#

[LightDM]
start-default-seat=false

[XDMCPServer]
enabled=true

[Seat:*]
user-session=default

#?*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="" 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

# 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

# Check file descriptors
#?*SESSION-X-127.0.0.1:98 LIST-UNKNOWN-FILE-DESCRIPTORS
#?SESSION-X-127.0.0.1:98 LIST-UNKNOWN-FILE-DESCRIPTORS FDS=

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