Discussion:
[Ltsp-discuss] altering some things in ltsp...
Johan Kragsterman
2015-09-18 09:02:28 UTC
Permalink
Hi!


I would like to use ltsp fat clients(which I presently do, and have done for quite a few yrs), but free them from the "influence" of the LTSP server.

I have mailed about this subject before, but I believe I haven't made myself understood...perhaps I haven't been clear myself about what I want as well...

Now, though, I believe I know what I want, at least as a first step.

I want fat clients that boots the normal PXE/TFTP/initrd way.

BUT: I do not want the /home directory to be mounted to the LTSP server, but to another (nfs) server. And I do not want users from the LTSP server, but from LDAP. I only want an admin user in the chroot/image as a root user, all other users should be picked up from ldap.

I believe, to achieve this, I need to alter some(many?) scripts, and the questions are which? I would think LDM scripts, for picking users...? Mount scripts for /home...? Of coarse I need to install some PAM modules in the chroot, and change nsswitch.conf.

Any opinions and thought about this is wellcome...

Is this something someone seen before? I believe I seen something similar from Ivan mincik?

(As a second step in this project, I'd like the whole image to be installed in a ram drive on the client, but that is something I can discuss in later stages)


Best regards from/Med vänliga hälsningar från

Johan Kragsterman

Capvert
andrea biancalana
2015-09-18 16:07:33 UTC
Permalink
il giorno Fri, 18 Sep 2015 11:02:28 +0200 Johan Kragsterman <***@capvert.se> ha scritto:

> BUT: I do not want the /home directory to be mounted to the LTSP server, but to another (nfs) server. And I do not want users from the LTSP server, but from LDAP. I only want an admin user in the chroot/image as a root user, all other users should be picked up from ldap.

I have users from an LTSP server which is client of an LDAP server
Johan Kragsterman
2015-09-18 17:11:33 UTC
Permalink
Hi!


-----andrea biancalana <***@gmail.com> skrev: -----
Till: ltsp-***@lists.sourceforge.net
Från: andrea biancalana <***@gmail.com>
Datum: 2015-09-18 18:08
Ärende: Re: [Ltsp-discuss] altering some things in ltsp...

il giorno Fri, 18 Sep 2015 11:02:28 +0200  Johan Kragsterman <***@capvert.se> ha scritto:

> BUT: I do not want the /home directory to be mounted to the LTSP server, but to another (nfs) server. And I do not want users from the LTSP server, but from LDAP. I only want an admin user in the chroot/image as a root user, all other users should be picked up from ldap.

I have users from an LTSP server which is client of an LDAP server




But then I guess you provide the users to the LTSP server, right? And when you boot the clients, LDM finds them as users on the server?

I DO NOT WANT the users of my fat clients to be present on the server, I want them ONLY to be users in the fat client, DIRECTLY provided by LDAP.

Rgrds Johan

------------------------------------------------------------------------------
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net
andrea biancalana
2015-09-18 17:32:07 UTC
Permalink
il giorno Fri, 18 Sep 2015 19:11:33 +0200 Johan Kragsterman <***@capvert.se> ha scritto:

>
> But then I guess you provide the users to the LTSP server, right? And when you boot the clients, LDM finds them as users on the server?

Yes: and my LDAP server and LTSP server must be both up

> I DO NOT WANT the users of my fat clients to be present on the server, I want them ONLY to be users in the fat client, DIRECTLY provided by LDAP.
Ok: now I understand, but do not understand why...
Vagrant Cascadian
2015-09-18 18:50:12 UTC
Permalink
On 2015-09-18, Johan Kragsterman wrote:
> I want fat clients that boots the normal PXE/TFTP/initrd way.

> BUT: I do not want the /home directory to be mounted to the LTSP
> server, but to another (nfs) server.

Specify NFS_HOME=ip.of.server:/path/to/homedir in lts.conf.


> And I do not want users from the LTSP server, but from LDAP.

To add support to LDM you would basically need to rewrite it, as the
only authentication method uses ssh to the server (well, I guess it also
has an RDP plugin, so maybe you could write another plugin).

Instead, you'd want to switch to LightDM, GDM or KDM, and configure PAM
to authenticate against LDAP. Supporting a standard display manager by
using PAM is in the plans for LTSP6... but development on that is
largely stalled at the moment; hope to stir up some activity on that
soon.

On Debian/Ubuntu, Currently, you pretty much need some hackish
workarounds in lts.conf to support an alternate display manager:

KEEP_SYSTEM_SERVICES=lightdm
DEFAULT_DISPLAY_MANAGER=/usr/sbin/lightdm
SCREEN_06=noaction

And you need a simple script that does nothing on the client.
/etc/ltsp/screen.d/noaction:

#!/bin/sh
echo pausing
read pause


> Of coarse I need to install some PAM modules in the chroot, and change
> nsswitch.conf.

Yup. Since LDAP implementations vary greatly, just find documentation on
how to autenticate against LDAP for standalone disked workstations, and
mimic the instructions on your fat client installation. It should work
the same once you've gotten rid of LDM.


> (As a second step in this project, I'd like the whole image to be
> installed in a ram drive on the client, but that is something I can
> discuss in later stages)

That's trivial. I implemented a proof of concept in the Debian/Ubuntu's
ltsp initramfs-tools init-bottom/ltsp hook. The variable to set is
LTSP_NBD_TO_RAM=true. I don't think it can be set from lts.conf; might
need to hard-code it in the initramfs-tools configuration. It could use
some cleanup...


live well,
vagrant
Johan Kragsterman
2015-09-20 10:10:53 UTC
Permalink
Hi!

-----Vagrant Cascadian <***@debian.org> skrev: -----
Till: ltsp-***@lists.sourceforge.net
Från: Vagrant Cascadian <***@debian.org>
Datum: 2015-09-18 20:51
Ärende: Re: [Ltsp-discuss] altering some things in ltsp...

On 2015-09-18, Johan Kragsterman wrote:
> I want fat clients that boots the normal PXE/TFTP/initrd way.

> BUT: I do not want the /home directory to be mounted to the LTSP
> server, but to another (nfs) server.

Specify NFS_HOME=ip.of.server:/path/to/homedir in lts.conf.


> And I do not want users from the LTSP server, but from LDAP.

To add support to LDM you would basically need to rewrite it, as the
only authentication method uses ssh to the server (well, I guess it also
has an RDP plugin, so maybe you could write another plugin).

Instead, you'd want to switch to LightDM, GDM or KDM, and configure PAM
to authenticate against LDAP. Supporting a standard display manager by
using PAM is in the plans for LTSP6... but development on that is
largely stalled at the moment; hope to stir up some activity on that
soon.

On Debian/Ubuntu, Currently, you pretty much need some hackish
workarounds in lts.conf to support an alternate display manager:

 KEEP_SYSTEM_SERVICES=lightdm
 DEFAULT_DISPLAY_MANAGER=/usr/sbin/lightdm
 SCREEN_06=noaction

And you need a simple script that does nothing on the client.
/etc/ltsp/screen.d/noaction:

 #!/bin/sh
 echo pausing
 read pause


> Of coarse I need to install some PAM modules in the chroot, and change
> nsswitch.conf.

Yup. Since LDAP implementations vary greatly, just find documentation on
how to autenticate against LDAP for standalone disked workstations, and
mimic the instructions on your fat client installation. It should work
the same once you've gotten rid of LDM.


> (As a second step in this project, I'd like the whole image to be
> installed in a ram drive on the client, but that is something I can
> discuss in later stages)

That's trivial. I implemented a proof of concept in the Debian/Ubuntu's
ltsp initramfs-tools init-bottom/ltsp hook. The variable to set is
LTSP_NBD_TO_RAM=true. I don't think it can be set from lts.conf; might
need to hard-code it in the initramfs-tools configuration. It could use
some cleanup...


live well,
  vagrant



Thanks, Vagrant, that's EXACTLY what I wanted and needed to know!

Regards Johan
------------------------------------------------------------------------------
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


[bilagan "signature.asc" borttagen av Johan Kragsterman/Capvert]
Loading...