From owner-freebsd-current@FreeBSD.ORG Thu Sep 30 05:00:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C490316A4D1 for ; Thu, 30 Sep 2004 05:00:47 +0000 (GMT) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8AE043D1F for ; Thu, 30 Sep 2004 05:00:47 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 4FBCAF1A8A for ; Wed, 29 Sep 2004 22:00:47 -0700 (PDT) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00653-05 for ; Wed, 29 Sep 2004 22:00:46 -0700 (PDT) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id EE618F18BB for ; Wed, 29 Sep 2004 22:00:45 -0700 (PDT) From: Sean McNeil To: freebsd-current@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-2xlW5LaNJ3TL8kaLWpEa" Message-Id: <1096520445.1386.8.camel@server> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 29 Sep 2004 22:00:45 -0700 X-Virus-Scanned: by amavisd-new at mcneil.com Subject: Careful with bind9 and ldap X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2004 05:00:47 -0000 --=-2xlW5LaNJ3TL8kaLWpEa Content-Type: text/plain Content-Transfer-Encoding: quoted-printable My system has openldap setup with nsswitch.conf having group looking in "files ldap". This can cause a lockup with the named if you try to restart it after openldap is up and running and if your hostname isn't in /etc/hosts but served up by named. It is along the same lines as the long pause attempting to start openldap. What is happening is that initgroups is being called by these programs.=20 This will cause, for my setup, all groups in files (i.e. /etc/group) and in ldap to be read. When starting ldap it causes it to loop back on itself and wait for a timeout. When restarting named it causes a lookup of the hostname. If the hostname isn't available in files then it checks dns. This causes the lockup. The solution for me was to place my hostname in /etc/hosts. No more lockups. Cheers, Sean --=-2xlW5LaNJ3TL8kaLWpEa Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBW5L9yQsGN30uGE4RAo63AJ4xy1TaNX7n7goyA6jIrnR7nA1XcwCfTEo/ XflFpKpwvO+EuxNN8I4R/as= =5NFn -----END PGP SIGNATURE----- --=-2xlW5LaNJ3TL8kaLWpEa--