Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2003 13:24:13 -0700
From:      Gordon Tetlow <gordont@gnf.org>
To:        nectar@FreeBSD.org
Cc:        current@FreeBSD.org
Subject:   compat mode with nss_ldap
Message-ID:  <20030424202413.GT9682@roark.gnf.org>

next in thread | raw e-mail | index | archive | help

--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 <username>:

gtetlow@roark:~$ id <username>
id: <username>: 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--



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