From owner-freebsd-current@FreeBSD.ORG Thu Apr 24 13:24:17 2003 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 54DD937B401; Thu, 24 Apr 2003 13:24:17 -0700 (PDT) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54BAB43F93; Thu, 24 Apr 2003 13:24:14 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch01.lj.gnf.org [172.25.10.19]) by ns1.gnf.org (8.12.6p2/8.12.3) with ESMTP id h3OKOCZu010123; Thu, 24 Apr 2003 13:24:12 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Thu, 24 Apr 2003 13:24:14 -0700 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.9/8.12.9) with ESMTP id h3OKODZc091683; Thu, 24 Apr 2003 13:24:13 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.9/8.12.9/Submit) id h3OKODUr091682; Thu, 24 Apr 2003 13:24:13 -0700 (PDT) (envelope-from gtetlow) Date: Thu, 24 Apr 2003 13:24:13 -0700 From: Gordon Tetlow To: nectar@FreeBSD.org Message-ID: <20030424202413.GT9682@roark.gnf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bKO1kftFne8qVRsx" Content-Disposition: inline User-Agent: Mutt/1.4i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-OriginalArrivalTime: 24 Apr 2003 20:24:14.0729 (UTC) FILETIME=[79472790:01C30A9F] cc: current@FreeBSD.org Subject: compat mode with nss_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, 24 Apr 2003 20:24:17 -0000 --bKO1kftFne8qVRsx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm not sure if this is supposed to work, but if I try the following in my nsswitch.conf: hosts: files dns passwd: compat passwd_compat: ldap group: compat group_compat: ldap I get the following when running id : gtetlow@roark:~$ id id: : no such user I ran a truss on it and got the following open calls: gtetlow@roark:~$ grep ^open /tmp/foofoofoo=20 open("/var/run/ld-elf.so.hints",0x0,00) =3D 3 (0x3) open("/usr/lib/libc.so.5",0x0,027757773714) =3D 3 (0x3) open("/etc/nsswitch.conf",0x0,0666) =3D 3 (0x3) open("/usr/local/lib/nss_ldap.so.1",0x0,027757770550) =3D 4 (0x4) open("/usr/local/lib/libldap.so.2",0x0,027757770510) =3D 4 (0x4) open("/usr/local/lib/liblber.so.2",0x0,027757770510) =3D 4 (0x4) open("/usr/lib/libssl.so.3",0x0,027757770510) =3D 4 (0x4) open("/usr/lib/libcrypto.so.3",0x0,027757770510) =3D 4 (0x4) open("/etc/pwd.db",0x0,00) =3D 3 (0x3) open("/etc/localtime",0x0,00) =3D 4 (0x4) So it does seem to be getting the configuration from nsswitch.conf. But it never opens ldap.conf to get the configuration. A network sniff also indicates that there isn't any traffic going to the ldap server. Kinda odd. Works fine if my nsswitch.conf is: hosts: files dns passwd: files ldap group: files ldap open("/var/run/ld-elf.so.hints",0x0,00) =3D 3 (0x3) open("/usr/lib/libc.so.5",0x0,027757773714) =3D 3 (0x3) open("/etc/nsswitch.conf",0x0,0666) =3D 3 (0x3) open("/usr/local/lib/nss_ldap.so.1",0x0,027757770550) =3D 4 (0x4) open("/usr/local/lib/libldap.so.2",0x0,027757770510) =3D 4 (0x4) open("/usr/local/lib/liblber.so.2",0x0,027757770510) =3D 4 (0x4) open("/usr/lib/libssl.so.3",0x0,027757770510) =3D 4 (0x4) open("/usr/lib/libcrypto.so.3",0x0,027757770510) =3D 4 (0x4) open("/etc/pwd.db",0x0,00) =3D 3 (0x3) open("/etc/ldap.conf",0x0,0666) =3D 3 (0x3) open("/etc/resolv.conf",0x0,0666) =3D 3 (0x3) open("/etc/hosts",0x0,0666) =3D 3 (0x3) open("/usr/local/etc/openldap/ldap.conf",0x0,0666) =3D 3 (0x3) =2E.. -gordon --bKO1kftFne8qVRsx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+qEftRu2t9DV9ZfsRAk2OAJ91HKdYUHVKhMPTyyw2runw7CQkywCfcboW sT1mN3N622am/mq4JrGKBkw= =/zLX -----END PGP SIGNATURE----- --bKO1kftFne8qVRsx--