Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Nov 2001 16:41:25 -0800 (PST)
From:      Will Froning <wfroning@angui.sh>
To:        <freebsd-questions@freebsd.org>
Cc:        <wfroning@angui.sh>
Subject:   amd_map_program in rc.conf
Message-ID:  <20011107162010.P92860-100000@angui.sh>

next in thread | raw e-mail | index | archive | help
OS: FreeBSD 4.3

I noticed the option in rc.conf to have amd pull it's config file from
NIS.  I'd like to implement that options, but I've run into a small
problem.

When I add the map to NIS it doesn't convert the file correctly.  It drops
about 1/3 of the lines in the file.  I've attached the file and the
output of ypcat -k amd.master.

I gues the real question would be what sed/awk options do I need to pass
to yp_mkdb and how do I make yp accept that each of the yp "keys" are
unique.

Thanks,
Will

Please reply to me as well.  I'm not on the list.

****OUTPUT****
cd1# cat amd.conf
# GLOBAL OPTIONS SECTION
[ global ]
normalize_hostnames =	no
print_pid =		no
restart_mounts =	yes
auto_dir =		/.amd_mnt
log_options =		all
plock =			no
selectors_on_default =	yes
map_type =		file
search_path =		/etc:/etc/amdmaps
browsable_dirs =	no

# DEFINE AMD MOUNT POINTS
[ /net ]
map_name =		amd.map
map_type =		file

[ /host ]
map_name =		amd.map
map_type =		file

[ /home ]
map_name =		amd.home
map_type =		nis

[ /devel ]
map_name =		amd.home
map_type =		nis

[ /scotty ]
map_name =		amd.scotty
map_type =		nis

[ /testing_grounds ]
map_name =		amd.lab
map_type =		nis
map_options =		type:=direct

[ /svnlogs ]
map_name =		amd.lab
map_type =		nis
map_options =		type:=direct

[ /svnlogs2 ]
map_name =		amd.lab
map_type =		nis
map_options =		type:=direct

cd1# yp_mkdb amd.conf amd.master
yp_mkdb: bad input -- no white space:
yp_mkdb: duplicate key '#' - skipping
yp_mkdb: duplicate key '[' - skipping
yp_mkdb: duplicate key 'map_type' - skipping
yp_mkdb: bad input -- no white space:
yp_mkdb: duplicate key '[' - skipping
yp_mkdb: duplicate key 'map_name' - skipping
yp_mkdb: duplicate key 'map_type' - skipping
yp_mkdb: bad input -- no white space:
yp_mkdb: duplicate key '[' - skipping
yp_mkdb: duplicate key 'map_name' - skipping
yp_mkdb: duplicate key 'map_type' - skipping
yp_mkdb: bad input -- no white space:
yp_mkdb: duplicate key '[' - skipping
yp_mkdb: duplicate key 'map_name' - skipping
yp_mkdb: duplicate key 'map_type' - skipping
yp_mkdb: bad input -- no white space:
yp_mkdb: duplicate key '[' - skipping
yp_mkdb: duplicate key 'map_name' - skipping
yp_mkdb: duplicate key 'map_type' - skipping
yp_mkdb: bad input -- no white space:
yp_mkdb: duplicate key '[' - skipping
yp_mkdb: duplicate key 'map_name' - skipping
yp_mkdb: duplicate key 'map_type' - skipping
yp_mkdb: bad input -- no white space:
yp_mkdb: duplicate key '[' - skipping
yp_mkdb: duplicate key 'map_name' - skipping
yp_mkdb: duplicate key 'map_type' - skipping
yp_mkdb: duplicate key 'map_options' - skipping
yp_mkdb: bad input -- no white space:
yp_mkdb: duplicate key '[' - skipping
yp_mkdb: duplicate key 'map_name' - skipping
yp_mkdb: duplicate key 'map_type' - skipping
yp_mkdb: duplicate key 'map_options' - skipping

cd1# yp_mkdb -u amd.master
print_pid =		no
plock =			no
map_options =		type:=direct
normalize_hostnames =	no
restart_mounts =	yes
search_path =		/etc:/etc/amdmaps
browsable_dirs =	no
# GLOBAL OPTIONS SECTION
[ global ]
YP_MASTER_NAME cd1.corp124.com
YP_LAST_MODIFIED 1005179813
selectors_on_default =	yes
log_options =		all
map_name =		amd.map
auto_dir =		/.amd_mnt
map_type =		file


-- 
Will Froning
Unix Sys. Admin.
wfroning@angui.sh


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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