Ok, I've got it: autofs format != amd format and the former is not supported on OpenBSD
On Tue, Nov 11, 2008 at 2:55 PM, Alexander Farber <[EMAIL PROTECTED]> wrote: > I'm trying to automount home dirs from an OpenBSD 4.4: > > # amq -v > amd 1.1.1.1 of 1995/10/18 08:47:13 bsd44. > # uname -a > OpenBSD ablvpn01.internal.novero.com 4.4 GENERIC#1021 i386 > > And have the problem that the amd doesn't seem to understand the > NIS format here in our RHEL 3,4,5 + Solaris 10 + HP-UX environment: > > [EMAIL PROTECTED]:root# amd -l /dev/stderr -x all -p -a /tmp_mnt /home > auto.home 27633 > Nov 11 15:37:12 ablvpn01 amd[27633]/info: file server localhost type local > starts up > Nov 11 15:37:12 ablvpn01 amd[27633]/map: Trying mount of auto.home on /home > fstype toplvl > Nov 11 15:37:12 ablvpn01 amd[844]/info: defeating nfs window computation Nov 11 15:37:12 ablvpn01 amd[27633]/info: auto.home mounted fstype toplvl on /home > Nov 11 15:37:29 ablvpn01 amd[27633]/user: key afarber: No value component in > "ablnas02:/vol/ablhom01/home/&" > Nov 11 15:37:29 ablvpn01 amd[27633]/user: No fs type specified (key = > "afarber", map = "auto.home") > Nov 11 15:37:29 ablvpn01 amd[27633]/map: Map entry > ablnas02:/vol/ablhom01/home/& for /home/afarber failed to match > > # amq > / root "root" ablvpn01:(pid27633) > /home toplvl auto.home /home > /home/afarber error . //nil// > > When I look at the auto.home served by our NIS server (at RHEL 5): > > [EMAIL PROTECTED]:root# ypcat -k auto.home > * ablnas02:/vol/ablhom01/home/& > > and then compare it to the function eval_opts() in the > http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/amd/amd/opts.c > > then it seems to me that amd looks for an equal sign "=", > i.e. probably some amd-specific format. > > Has anybody managed to find a way to let > OpenBSD's amd understand the Linux autofs format? > > While searching I only found Mr. Bensend having same problem: > http://openbsd.monkey.org/misc/200405/msg00610.html > > PS: Here are my config files (and BTW hardmounting > ablnas02:/vol/ablhom01/home/afarber to /mnt works ok): > > # cat /etc/rc.conf.local > rdate_flags=NO > httpd_flags=NO > amd=YES > pf=NO > portmap=YES > check_quotas=YES > yppasswdd_flags=NO > lockd=YES > > # tail -1 /etc/group > +:*:: > > # tail -1 /etc/passwd > +:*:0:0:::

