[getting a bit OT for Sun Ray, but the thread started here so...]

Okay, I remember now why I didn't use an executable map to begin with; I
can't figure out how to call it for our setup.

Our home directories live on an NFS server, as individual per-user ZFS
filesystems, and we use the automounter to mount the shares.  So we
already have entries in auto_master which look something like:

  /nfs/path/to/home0    /etc/auto.nfs.map       -nobrowse

Those homes don't exist on the server by default; the plan is to create
them the first time a user logs in, export them, and then let the
automounter do its usual thing.  We have the logic for that all worked
out, and we want to call the script which triggers the home
create-and-export process on the server during user login.

The examples I've found for executable maps seem to assume that
either we mount the directory from nfs, OR we create it locally; I don't
see any use cases where we would both call an executable map and manage
a directory using the automounter.  Would I just add the executable map
alongside the existing map?  Say, alter the above to the following?

  /nfs/path/to/home0    /etc/auto_home_create.sh
  /nfs/path/to/home0    /etc/auto.nfs.map       -nobrowse

This seems ambiguous.

Also, how do I pass an argument to my executable map to tell the server
which directory to create?  In PAM, we have tokens like "%u" which
expand to the user name being authenticated; is there some similar
facility in the automounter?  In the example Meik linked, I see:

  hdir=$(echo ~$1)

This implies that the executable map is called with the authenticating
user name as $1, is that the case?

I hope this makes sense...


On Thu, May 06, 2010 at 11:36:02PM +0200, Meik Hellmund wrote:
> On Thu, 6 May 2010 14:46:04 -0500
> Michael Jinks <[email protected]> wrote:
> 
> > I'm pretty sure the answer to this is "ha ha ha ha ha" but I have to
> > ask...
> > 
> > I have a legacy system running Sun Ray on an UltraSPARC server (Fire
> > V220, FWIW).  Due to time constraints and other issues I don't have
> > the option of replacing that machine, but I need to have a modernized
> > Sun Ray setup deployed in about a week.  Our target setup requires the
> > pam_exec module, which exists in Linux but not in Solaris, which means
> > I'm looking at Sun Ray on RHEL.
> 
> Do you need the pam_exec module for the on-the-fly creation of
> homes? Is the following a possible alternative for you?
> <http://bugs.opensolaris.org/view_bug.do?bug_id=6211761>
> (create the homes by using autofs and an executable auto_home map)
> 
> 
> > 
> > After a quick Google search it looks like there are projects to build
> > Fedora for SPARC, but I'm betting that the Sun Ray binaries aren't
> > available for that processor/OS combo.  Any chance I might get lucky?
> > 
> 
> SRSS for Linux is i386 only. And it is *not* mostly java. It includes 
> a lot of other binaries, for example its own X server.  
> 
> - Meik
> 
> -- 
> Meik Hellmund
> Mathematisches Institut, Uni Leipzig
> e-mail: [email protected]
> http://www.math.uni-leipzig.de/~hellmund
> _______________________________________________
> SunRay-Users mailing list
> [email protected]
> http://www.filibeto.org/mailman/listinfo/sunray-users
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to