[Samba] Linux desktop setup with authentication against Samba AD DC

Rowland Penny rpenny at samba.org
Tue Dec 3 18:52:30 UTC 2024


On Tue, 3 Dec 2024 18:59:59 +0100
Peter Milesson via samba <samba at lists.samba.org> wrote:

> 
> 
> 
> On 03.12.2024 17:22, Rowland Penny via samba wrote:
> > On Mon, 2 Dec 2024 10:29:22 +0100
> > Peter Milesson via samba <samba at lists.samba.org> wrote:
> >
> >>>> Peter
> >>> So, it works with Gnome.
> >>> It appears that, provided all the required packages can be
> >>> installed, it will probably work on any distro, I cannot test them
> >>> all ;-)
> >>>
> >>> Rowland
> >>>
> >>>
> >>>
> >> Oh, c'mon Rowland (^_^)
> >>
> >> I'm going to start duplicating from a master image. Let's see what
> >> surprises I get from UEFI...
> >>
> >> Peter
> > I looked into Rocky Linux a bit further and found a repo for hxtools
> > and set pam_mount up on Rocky and it works, just like on Debian.
> >
> > To date, I have working examples on Debian Gnome, XCFE and MATE.
> > However the MATE version has problems with the panels, they keep
> > segfaulting but the user gets logged in and the home directory
> > share is mounted, so it looks like pam-mount is working. I have
> > also have working examples on LMDE6 with the Cinnamon desktop and
> > on Rocky Linux 9 with the Gnome desktop.
> >
> > It appears that you just need 3 things:
> >
> > A Samba AD DC to create users on.
> >
> > A Samba Unix domain member to share the users home directory from.
> >
> > A Samba Unix domain member to act as the client, with pam_mount,
> > hxtools and cifs-utils installed and configured correctly.
> >
> > The only real downside I can see is, because of the various
> > different configuration files that the different desktops use, it
> > is very probably limited to one desktop per domain.
> >
> > Rowland
> >
> >
> Hi Rowland,
> 
> You can add Archlinux also.
> 
> I'm not really sure what you mean by one desktop per domain.
> 
> Let's say you configure user home directories for a large group of
> users.
> 
> Then you can create one master with LXDE on Debian, another master
> Gnome on Archlinux, another master with Fluxbox on Rocky Linux ...
> 
> There are no centrally stored machine profiles. There are only user 
> profiles stored on a common server. When the user logs on for the
> first time, the profile is created with all folders and default
> settings, according to what's defined in the distribution's defaults.
> Let's say PCs with different distributions are not mixed between
> different locations, then I don't really see any problems. If OTOH
> there's a mix of PCs with different distributions available on one
> site, then you probably hit a brick wall with incompatibilities. Then
> the concept is not viable without extensive administration.
> 
> My intention was setting up one type of PC with a specific Linux 
> distribution, with a specific desktop. If you're the modern sort of 
> sysadmin, you could let the users have vote on it first. But when the 
> decision is made, it must be set in concrete.
> 
> Administration must be dead simple, deploying new PCs in a snap, 
> otherwise the whole concept defeats its purpose, and you could as
> well jump onto the Azure bandwagon. This concept is probably best
> suited for limited work groups with common requirements.
> 
> For those deploying many Linux PCs, it's probably useful to set up
> some kind of central management for updates, and other tasks. But
> that's another beast.
> 
> Best regards,
> 
> Peter

What I was referring to, and what I have tested, is a Unix user mounting
their home directory from another Unix domain member. This should mean
that the user should be able to log into any Unix domain member and get
their home directory. However this does mean that the clients would all
have to run the same Desktop, I haven't tested using Gnome on one
client, logging out and then logging into another client using XFCE (for
instance) as the same user, I feel this is likely to be a recipe for
disaster.

Rowland





More information about the samba mailing list