Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jul 1996 14:16:02 -0400
From:      Branson Matheson <branson@widomaker.com>
To:        "Daniel M. Eischen" <deischen@iworks.InterWorks.org>
Cc:        freebsd-questions@Freebsd.org
Subject:   Re: YP/NIS and AMD 
Message-ID:  <199607081816.OAA10863@garion.hq.ferg.com>
In-Reply-To: Your message of "Mon, 08 Jul 1996 11:10:32 CDT." <9607081610.AA23712@iworks.InterWorks.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
--------

"Daniel M. Eischen" uttered with conviction:
>
> Hi,
>
> I'm trying to get both AMD and YP/NIS set up on a Fre eBSD
> 2.1-stable machine can log in with their user IDs and passwords,
> from a Sun SparcStation 20 (Solaris 2.5).  I also want their hom e
> directories (using auto mounted homes) on the Sun to be automount
> ed.  The Sun is running NIS+ in NIS compatibility mode.

 i have done this... lets look at things one at a time. 

> Excerpts from /etc/sysconfig ---------------------------- # Set to
> the name of your host - this is pretty impor tant! 
> hostname="clc_rtr.clc.gdeb.com"
>
> # Set to the NIS domainname of your host, or NO if no ne
> defaultdomainname="clc.gdeb.com"
>
> # Set to appropriate flags if you want to use AMD amdflags=NO

 Here you should be able to start amd. I use flags like this:

 amdflags="-r -n -y ferguson -l syslog /ump amd.ump"
 
 where -y sets your domain -l sets the type of logging and most
 importantly... amd.ump sets the file. DO NOT put a leading / on that
 filename and amd will use the yp version of the map.

> #nis_clientflags="-s -S clc.gdeb.com,vfr" 
> nis_clientflags="NO"

 You should be able to start yp here.  If you are having to comment it
 out ...  that is a YP issue that I have not run into...  I tend to
 use -ypsetme so that I am hard bound to a specific server.  I do that
 because generally the NFS server is the YP server and if they loose
 the primary YP server, they have lost either home or /usr/local/ in
 any case. 

> /defaults type:=nfs eghk rhost:=vfr;rfs:=/export/home;sublink:=eghk ebst 
> rhost:=vfr;rfs:=/export/home;sublink:=ebst ebhy
> rhost:=vfr;rfs:=/export/home;sublink:=ebhy ebj

 Interesting map.. I do somthing a bit more falmboyant but this reads
 a bit easier. I also use somthing called /ump which is Universal
 Mount Point which was introduced at NASA Langely. 

 (http://ice-www.larc.nasa.gov/LCUC/papers/ump.ps)

defaults        opts:=rw,soft,time0=10,retrans=5
# Defaults for HQ Home Directories

hq              type:=auto;fs:=${map};pref:=${key}/

# Home Directories for HQ

hq/home                 type:=auto;fs:=${map};pref:=${key}/

# Defaults for garion

# Terry Chapman
hq/home/terry   \
  host==garion;type:=link;fs=/home/terry || \
  host!=garion;type:=nfs;rhost:=garion;rfs:=/home/terry;fs:=${autodir}/${key}

# Branson Matheson
hq/home/branson \
  host==garion;type:=link;fs=/home/branson || \
  host!=garion;type:=nfs;rhost:=garion;rfs:=/home/branson;fs:=${autodir}/${key}


# /usr/local
hq/local \       
arch==hp9000s800;type:=nfs;rhost:=polgara;rfs:=/usr/local;fs:=${autodir}/${key}  
|| \
arch==i386;type:=nfs;rhost:=garion;rfs:=/usr/local;fs:=${autodir}/${key}

 I have some scripts that can convert this to a ypmap if you are
interested and also allow you to keep this in a hierarchial format and
compile the final amd.ump. 

 -branson

=============================================================================
 Branson Matheson       | Ferguson Enterprises  | If Pete and Repeat were 
 System Administrator   | W: (804) 874-7795     | sittin on a fence and Pete
 Unix, Perl, WWW        | branson@widomaker.com | fell off, who is left?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607081816.OAA10863>