Merge lp:~vagrantc/ltsp/ltsp-pam-examples into lp:~sbalneav/ltsp/ltsp-pam-examples

Proposed by Vagrant Cascadian
Status: Needs review
Proposed branch: lp:~vagrantc/ltsp/ltsp-pam-examples
Merge into: lp:~sbalneav/ltsp/ltsp-pam-examples
Diff against target: 223 lines (+142/-9)
13 files modified
debian/changelog (+42/-0)
debian/compat (+1/-0)
debian/control (+22/-0)
debian/copyright (+27/-0)
debian/ltsp-pam.install (+12/-0)
debian/ltsp-pam.links (+1/-0)
debian/rules (+10/-0)
debian/source/format (+1/-0)
ltsp-pam/50-display-manager-pam (+9/-8)
ltsp-pam/ltsp_config.d/50-display-manager-pam (+4/-0)
ltsp-pam/open_session/00-sshfs (+5/-0)
ltsp-pam/screen.d/null (+4/-0)
ltsp-pam/xsession (+4/-1)
To merge this branch: bzr merge lp:~vagrantc/ltsp/ltsp-pam-examples
Reviewer Review Type Date Requested Status
Alkis Georgopoulos (community) Disapprove
Scott Balneaves Pending
Review via email: mp+193820@code.launchpad.net

Description of the change

debian packaging
support for sshfs homedirs
support for localapps

To post a comment you must log in.
lp:~vagrantc/ltsp/ltsp-pam-examples updated
20. By Vagrant Cascadian

Add versioned dependency on ltsp-client-core >= 5.4.6~ to ensure needed
patches in ltsp-localappsd.

21. By Vagrant Cascadian

new uploaded version.

22. By Vagrant Cascadian

Write stdout/stderr to user's .xsession-errors file.

23. By Vagrant Cascadian

Remove cruft from debian/rules.

24. By Vagrant Cascadian

Reorganize dependency lines.

25. By Vagrant Cascadian

Add dependency on net-tools, as xsession uses netstat.

26. By Vagrant Cascadian

Workaround empty close_session dir, by creating in debian/rules.

27. By Vagrant Cascadian

ltsp-pam 0.1~20141007~1-1

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

I'm setting the state of old merge requests that have been stale for years, to rejected; if someone wants, he can do another merge request in git format, since now ltsp uses git.

review: Disapprove

Unmerged revisions

27. By Vagrant Cascadian

ltsp-pam 0.1~20141007~1-1

26. By Vagrant Cascadian

Workaround empty close_session dir, by creating in debian/rules.

25. By Vagrant Cascadian

Add dependency on net-tools, as xsession uses netstat.

24. By Vagrant Cascadian

Reorganize dependency lines.

23. By Vagrant Cascadian

Remove cruft from debian/rules.

22. By Vagrant Cascadian

Write stdout/stderr to user's .xsession-errors file.

21. By Vagrant Cascadian

new uploaded version.

20. By Vagrant Cascadian

Add versioned dependency on ltsp-client-core >= 5.4.6~ to ensure needed
patches in ltsp-localappsd.

19. By Vagrant Cascadian

remove debian patch to set the default xsession.

18. By Vagrant Cascadian

Switch xsession to use x-session-manager alternative instead of mate-session.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'debian'
2=== added file 'debian/changelog'
3--- debian/changelog 1970-01-01 00:00:00 +0000
4+++ debian/changelog 2014-10-07 19:11:26 +0000
5@@ -0,0 +1,42 @@
6+ltsp-pam (0.1~20141007~1-1) UNRELEASED; urgency=medium
7+
8+ * Workaround empty close_session dir, by creating in debian/rules.
9+ * Write stdout/stderr to user's .xsession-errors file.
10+ * Remove cruft from debian/rules.
11+ * Reorganize dependency lines.
12+ * Add dependency on net-tools, as xsession uses netstat.
13+ * Workaround empty close_session dir, by creating in debian/rules.
14+
15+ -- Vagrant Cascadian <vagrant@debian.org> Tue, 07 Oct 2014 10:36:08 -0700
16+
17+ltsp-pam (0.1~20131105~1-1) UNRELEASED; urgency=low
18+
19+ * Remove debian patch to set the default xsession, applied upstream.
20+ * Start ltsp-localappsd from xsession wrapper.
21+ - Add versioned dependency on ltsp-client-core >= 5.4.6~
22+ * Add hook to open_session to mount homedir over sshfs.
23+
24+ -- Vagrant Cascadian <vagrant@debian.org> Tue, 05 Nov 2013 16:46:06 -0500
25+
26+ltsp-pam (0.1~20130325~1-1) UNRELEASED; urgency=low
27+
28+ * New upstream version:
29+ - Changed lightdm hooks to be more display manager independent.
30+ * Allow gdm3 or any package providing x-display-manager in dependencies.
31+
32+ -- Vagrant Cascadian <vagrant@debian.org> Mon, 25 Mar 2013 14:37:12 -0700
33+
34+ltsp-pam (0.1~20130324~1-3) unreleased; urgency=low
35+
36+ * Install xsession script in the correct place.
37+ * Patch xsession script to use x-session-manager instead of harding MATE.
38+ * Install ltsp-cleanup.sh in examples dir, since it's meant to be run from
39+ the server.
40+
41+ -- Vagrant Cascadian <vagrant@debian.org> Sun, 24 Mar 2013 11:28:58 -0700
42+
43+ltsp-pam (0.1~20130324~1-1) unstable; urgency=low
44+
45+ * Initial release.
46+
47+ -- Vagrant Cascadian <vagrant@debian.org> Sun, 24 Mar 2013 08:01:44 -0700
48
49=== added file 'debian/compat'
50--- debian/compat 1970-01-01 00:00:00 +0000
51+++ debian/compat 2014-10-07 19:11:26 +0000
52@@ -0,0 +1,1 @@
53+8
54
55=== added file 'debian/control'
56--- debian/control 1970-01-01 00:00:00 +0000
57+++ debian/control 2014-10-07 19:11:26 +0000
58@@ -0,0 +1,22 @@
59+Source: ltsp-pam
60+Section: misc
61+Priority: extra
62+Maintainer: Vagrant Cascadian <vagrant@debian.org>
63+Build-Depends: debhelper (>= 8.0.0)
64+Standards-Version: 3.9.3
65+Homepage: https://code.launchpad.net/~sbalneav/ltsp/ltsp-pam-examples
66+#Vcs-Git: git://git.debian.org/collab-maint/ltsp-pam.git
67+#Vcs-Browser: http://git.debian.org/?p=collab-maint/ltsp-pam.git;a=summary
68+
69+Package: ltsp-pam
70+Architecture: all
71+Depends: ${shlibs:Depends}, ${misc:Depends},
72+ daemon,
73+ libnss-extrausers,
74+ libpam-sshauth (>= 0.3),
75+ lightdm | gdm3 | x-display-manager,
76+ ltsp-client-core (>= 5.4.6~),
77+ net-tools,
78+Description: proof of concept scripts to enable LTSP pam support
79+ Proof of concept support for using libpam-sshauth and lightdm to replace the
80+ core functionality of LDM.
81
82=== added file 'debian/copyright'
83--- debian/copyright 1970-01-01 00:00:00 +0000
84+++ debian/copyright 2014-10-07 19:11:26 +0000
85@@ -0,0 +1,27 @@
86+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
87+Upstream-Name: ltsp-pam
88+Source: https://code.launchpad.net/~sbalneav/ltsp/ltsp-pam-examples
89+
90+Files: *
91+Copyright: 2013 Scott Balneaves <sbalneav@ltsp.org>
92+License: sbalneav
93+ Scotty is usually pretty permissive.
94+
95+Files: debian/*
96+Copyright: 2013 Vagrant Cascadian <vagrant@debian.org>
97+License: GPL-2+
98+ This package is free software; you can redistribute it and/or modify
99+ it under the terms of the GNU General Public License as published by
100+ the Free Software Foundation; either version 2 of the License, or
101+ (at your option) any later version.
102+ .
103+ This package is distributed in the hope that it will be useful,
104+ but WITHOUT ANY WARRANTY; without even the implied warranty of
105+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
106+ GNU General Public License for more details.
107+ .
108+ You should have received a copy of the GNU General Public License
109+ along with this program. If not, see <http://www.gnu.org/licenses/>
110+ .
111+ On Debian systems, the complete text of the GNU General
112+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
113
114=== added file 'debian/ltsp-pam.install'
115--- debian/ltsp-pam.install 1970-01-01 00:00:00 +0000
116+++ debian/ltsp-pam.install 2014-10-07 19:11:26 +0000
117@@ -0,0 +1,12 @@
118+ltsp-pam/auth /usr/share/ltsp-pam/
119+ltsp-pam/cleanup /usr/share/ltsp-pam/
120+ltsp-pam/close_session /usr/share/ltsp-pam/
121+ltsp-pam/ltsp.desktop /usr/share/xsessions/
122+ltsp-pam/ltsp-session /usr/share/ltsp-pam/
123+ltsp-pam/open_session /usr/share/ltsp-pam/
124+ltsp-pam/50-display-manager-pam /usr/share/ltsp/init-ltsp.d/
125+ltsp-pam/50-update-nss /usr/share/ltsp/init-ltsp.d/
126+ltsp-pam/ltsp-cleanup.sh /usr/share/doc/ltsp-pam/examples/
127+ltsp-pam/ltsp_config.d/ /usr/share/ltsp/
128+ltsp-pam/screen.d/ /usr/share/ltsp/
129+ltsp-pam/xsession /etc/ltsp-pam/
130
131=== added file 'debian/ltsp-pam.links'
132--- debian/ltsp-pam.links 1970-01-01 00:00:00 +0000
133+++ debian/ltsp-pam.links 2014-10-07 19:11:26 +0000
134@@ -0,0 +1,1 @@
135+/etc/ltsp-pam/xsession /usr/share/ltsp-pam/xsession
136
137=== added file 'debian/rules'
138--- debian/rules 1970-01-01 00:00:00 +0000
139+++ debian/rules 2014-10-07 19:11:26 +0000
140@@ -0,0 +1,10 @@
141+#!/usr/bin/make -f
142+# -*- makefile -*-
143+
144+%:
145+ dh $@
146+
147+override_dh_install:
148+ # workaround empty close_session dir.
149+ mkdir -p debian/tmp/ltsp-pam/close_session
150+ dh_install
151
152=== added directory 'debian/source'
153=== added file 'debian/source/format'
154--- debian/source/format 1970-01-01 00:00:00 +0000
155+++ debian/source/format 2014-10-07 19:11:26 +0000
156@@ -0,0 +1,1 @@
157+3.0 (quilt)
158
159=== renamed file 'ltsp-pam/50-lightdm-pam' => 'ltsp-pam/50-display-manager-pam'
160--- ltsp-pam/50-lightdm-pam 2013-03-13 00:43:40 +0000
161+++ ltsp-pam/50-display-manager-pam 2014-10-07 19:11:26 +0000
162@@ -1,8 +1,9 @@
163-echo "auth required pam_sshauth.so debug host=server nostrict shm_askpass" > /etc/pam.d/lightdm
164-echo "auth required pam_exec.so debug /usr/share/ltsp-pam/ltsp-session" >> /etc/pam.d/lightdm
165-echo "account required pam_permit.so" >> /etc/pam.d/lightdm
166-echo "session required pam_sshauth.so debug host=server nostrict shm_askpass" >> /etc/pam.d/lightdm
167-echo "session required pam_exec.so debug /usr/share/ltsp-pam/ltsp-session" >> /etc/pam.d/lightdm
168-echo "session required pam_mkhomedir.so" >> /etc/pam.d/lightdm
169-echo "session optional pam_ck_connector.so nox11" >> /etc/pam.d/lightdm
170-echo "password required pam_permit.so" >> /etc/pam.d/lightdm
171+pamdm=/etc/pam.d/$(basename ${DEFAULT_DISPLAY_MANAGER:-"lightdm"})
172+echo "auth required pam_sshauth.so debug host=server nostrict shm_askpass" > "$pamdm"
173+echo "auth required pam_exec.so debug /usr/share/ltsp-pam/ltsp-session" >> "$pamdm"
174+echo "account required pam_permit.so" >> "$pamdm"
175+echo "session required pam_sshauth.so debug host=server nostrict shm_askpass" >> "$pamdm"
176+echo "session required pam_exec.so debug /usr/share/ltsp-pam/ltsp-session" >> "$pamdm"
177+echo "session required pam_mkhomedir.so" >> "$pamdm"
178+echo "session optional pam_ck_connector.so nox11" >> "$pamdm"
179+echo "password required pam_permit.so" >> "$pamdm"
180
181=== added directory 'ltsp-pam/ltsp_config.d'
182=== added file 'ltsp-pam/ltsp_config.d/50-display-manager-pam'
183--- ltsp-pam/ltsp_config.d/50-display-manager-pam 1970-01-01 00:00:00 +0000
184+++ ltsp-pam/ltsp_config.d/50-display-manager-pam 2014-10-07 19:11:26 +0000
185@@ -0,0 +1,4 @@
186+if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
187+ # Override removal of display manager init script
188+ set_lts_var KEEP_SYSTEM_SERVICES "$KEEP_SYSTEM_SERVICES $(basename $DEFAULT_DISPLAY_MANAGER)"
189+fi
190
191=== added file 'ltsp-pam/open_session/00-sshfs'
192--- ltsp-pam/open_session/00-sshfs 1970-01-01 00:00:00 +0000
193+++ ltsp-pam/open_session/00-sshfs 2014-10-07 19:11:26 +0000
194@@ -0,0 +1,5 @@
195+# mount homedir with sshfs.
196+# requires user_allow_other in fuse.conf
197+rm -rf /home/${PAM_USER}
198+mkdir -p /home/${PAM_USER}
199+sshfs -o "allow_other,ControlPath=${SOCKET}" ${PAM_SSHAUTH_HOST}:/home/${PAM_USER} /home/${PAM_USER}
200
201=== added directory 'ltsp-pam/screen.d'
202=== added file 'ltsp-pam/screen.d/null'
203--- ltsp-pam/screen.d/null 1970-01-01 00:00:00 +0000
204+++ ltsp-pam/screen.d/null 2014-10-07 19:11:26 +0000
205@@ -0,0 +1,4 @@
206+#!/bin/sh
207+
208+# Do nothing but sleep *all* day.
209+exec sleep $((60*60*24))
210
211=== modified file 'ltsp-pam/xsession'
212--- ltsp-pam/xsession 2013-03-13 00:00:27 +0000
213+++ ltsp-pam/xsession 2014-10-07 19:11:26 +0000
214@@ -30,5 +30,8 @@
215 "while read K; do xauth add \${SSH_CLIENT%% *}:0 . \$K; done"
216 ssh -S ${SKT} -Y ${HST} "DISPLAY=\${SSH_CLIENT%% *}:0 twm"
217 else
218- ssh -S ${SKT} -Y ${HST} "mate-session;ltsp-cleanup.sh"
219+ # start localapps daemon, which requires ltsp-localappsd to not use su,
220+ # since it's already running as the user.
221+ LDM_USERNAME=${USER} ltsp-localappsd &
222+ ssh -S ${SKT} -Y ${HST} "x-session-manager >> .xsession-errors 2>&1 ; ltsp-cleanup.sh"
223 fi

Subscribers

People subscribed via source and target branches