From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 16:46:51 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1FD916A41F for ; Wed, 11 Jan 2006 16:46:51 +0000 (GMT) (envelope-from subscriber@insignia.com) Received: from highland.isltd.insignia.com (highland.isltd.insignia.com [195.74.141.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2A6F43D5E for ; Wed, 11 Jan 2006 16:46:46 +0000 (GMT) (envelope-from subscriber@insignia.com) Received: from inchgower.internal.local (inchgower-e0.isltd.insignia.com [195.74.141.61]) by highland.isltd.insignia.com (8.12.6p3/8.12.6) with ESMTP id k0BGkiAl099616 for ; Wed, 11 Jan 2006 16:46:44 GMT (envelope-from subscriber@insignia.com) Received: from exchange-uk.internal.local (exchange-uk [172.16.64.9]) by inchgower.internal.local (8.12.11/8.12.11) with ESMTP id k0BGkiKY001898 for ; Wed, 11 Jan 2006 16:46:44 GMT (envelope-from subscriber@insignia.com) Received: from dylan.internal.local ([172.16.64.69]) by exchange-uk.internal.local with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id XFAHQH24; Wed, 11 Jan 2006 16:46:44 -0000 From: Jim Hatfield To: freebsd-questions@freebsd.org Date: Wed, 11 Jan 2006 16:46:44 +0000 Organization: Insignia Solutions Message-ID: <0bbas19t8e136ut633dfouketk4fevlo7i@4ax.com> X-Mailer: Forte Agent 3.1/32.783 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.53 on 195.74.141.1 Subject: amd doesn't like NIS maps from a Windows NIS server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2006 16:46:51 -0000 We've been using NIS-based automounter maps for ages, using a Solaris NIS server. Some of our machines use autofs type maps, and some use amd, notably the FreeBSD boxes. As part of a move to single sign-on I've implemented a NIS server using Microsoft's Services for Unix installed on an Active Directory domain controller, and (painfully) created the automounting maps. The autofs-using machines are OK, but amd just doesn't want to play. It seems to be OK about the top-level "master" map, but not the ones referenced by that. As an experiment I've mixed file-based and NIS maps. My rc.conf contains: >amd_enable=3D"YES" >amd_map_program=3D"cat /usr/local/etc/amd.master" >amd_flags=3D"-x all -D info -l syslog:local7" /usr/local/etc/amd.master contains: >/home amd.home >/mp /usr/local/etc/amd.mp >/net /usr/local/etc/amd.net >/users /usr/local/etc/amd.users When the machine starts I get: >Jan 11 11:52:30 speyburn amd[408]: /mp: disabling nfs congestion window >Jan 11 11:52:30 speyburn amd[410]: /users: disabling nfs congestion = window >Jan 11 11:52:30 speyburn amd[411]: /net: disabling nfs congestion window >Jan 11 11:52:30 speyburn amd[409]: /home: disabling nfs congestion = window >Jan 11 11:52:30 speyburn amd[407]: first time load of map = /usr/local/etc/amd.mp >succeeded >Jan 11 11:52:30 speyburn amd[407]: /usr/local/etc/amd.mp mounted fstype = toplvl o >n /mp >Jan 11 11:52:30 speyburn amd[407]: first time load of map = /usr/local/etc/amd.use >rs succeeded >Jan 11 11:52:30 speyburn amd[407]: /usr/local/etc/amd.users mounted = fstype toplv >l on /users >Jan 11 11:52:30 speyburn amd[407]: first time load of map = /usr/local/etc/amd.net > succeeded >Jan 11 11:52:30 speyburn amd[407]: /usr/local/etc/amd.net mounted fstype= toplvl >on /net >Jan 11 11:52:30 speyburn amd[407]: No source data for map amd.home >Jan 11 11:52:30 speyburn amd[407]: amd.home mounted fstype toplvl on = /home So the file-based ones work fine, but the single NIS map, amd.home, does not. And yet if I do a "ypcat -k amd.home" I get exactly the same as when I was talking to the Solaris NIS server - but it just doesn't work. If I replace it with a file with the same contents, it works fine. Aaargh! I've looked at the source of amd but my C experience is 15 years old now and I'm struggling a bit!