summaryrefslogtreecommitdiff
path: root/tests/scripts/login-pam-config.conf
blob: bdc92426aab04a241275528c68aa2c7d892ea306 (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
64
65
66
67
68
69
70
#
# Check we can configure the PAM service for login
#

[SeatDefaults]
user-session=default
pam-service=lightdm-alternative
pam-greeter-service=lightdm-greeter-alternative

[test-pam]
log-events=true

#?*START-DAEMON
#?RUNNER DAEMON-START

# X server starts
#?XSERVER-0 START VT=7 SEAT=seat0

# Daemon connects when X server is ready
#?*XSERVER-0 INDICATE-READY
#?XSERVER-0 INDICATE-READY
#?XSERVER-0 ACCEPT-CONNECT

# Create PAM session for greeter
#?PAM-lightdm START SERVICE=lightdm-greeter-alternative USER=lightdm
#?PAM-lightdm SETCRED ESTABLISH_CRED
#?PAM-lightdm OPEN-SESSION

# Greeter starts
#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
#?LOGIN1 ACTIVATE-SESSION SESSION=c0
#?XSERVER-0 ACCEPT-CONNECT
#?GREETER-X-0 CONNECT-XSERVER
#?GREETER-X-0 CONNECT-TO-DAEMON
#?GREETER-X-0 CONNECTED-TO-DAEMON

# Greeter does authentication via PAM
#?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1
#?PAM-have-password1 START SERVICE=lightdm-alternative USER=have-password1
#?PAM-have-password1 AUTHENTICATE
#?GREETER-X-0 SHOW-PROMPT TEXT="Password:"
#?*GREETER-X-0 RESPOND TEXT="password"
#?PAM-have-password1 ACCT-MGMT
#?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE

# User session starts
#?*GREETER-X-0 START-SESSION
#?PAM-have-password1 SETCRED ESTABLISH_CRED
#?PAM-have-password1 OPEN-SESSION

# Greeter session stops
#?GREETER-X-0 TERMINATE SIGNAL=15
#?PAM-lightdm CLOSE-SESSION
#?PAM-lightdm SETCRED DELETE_CRED
#?PAM-lightdm END

# Session starts
#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1
#?LOGIN1 ACTIVATE-SESSION SESSION=c1
#?XSERVER-0 ACCEPT-CONNECT
#?SESSION-X-0 CONNECT-XSERVER

# Cleanup
#?*STOP-DAEMON
#?SESSION-X-0 TERMINATE SIGNAL=15
#?PAM-have-password1 CLOSE-SESSION
#?PAM-have-password1 SETCRED DELETE_CRED
#?PAM-have-password1 END
#?XSERVER-0 TERMINATE SIGNAL=15
#?RUNNER DAEMON-EXIT STATUS=0