compat mode with nss_ldap
Gordon Tetlow
gordont at gnf.org
Thu Apr 24 13:24:17 PDT 2003
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 at roark:~$ id <username>
id: <username>: no such user
I ran a truss on it and got the following open calls:
gtetlow at roark:~$ grep ^open /tmp/foofoofoo
open("/var/run/ld-elf.so.hints",0x0,00) = 3 (0x3)
open("/usr/lib/libc.so.5",0x0,027757773714) = 3 (0x3)
open("/etc/nsswitch.conf",0x0,0666) = 3 (0x3)
open("/usr/local/lib/nss_ldap.so.1",0x0,027757770550) = 4 (0x4)
open("/usr/local/lib/libldap.so.2",0x0,027757770510) = 4 (0x4)
open("/usr/local/lib/liblber.so.2",0x0,027757770510) = 4 (0x4)
open("/usr/lib/libssl.so.3",0x0,027757770510) = 4 (0x4)
open("/usr/lib/libcrypto.so.3",0x0,027757770510) = 4 (0x4)
open("/etc/pwd.db",0x0,00) = 3 (0x3)
open("/etc/localtime",0x0,00) = 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) = 3 (0x3)
open("/usr/lib/libc.so.5",0x0,027757773714) = 3 (0x3)
open("/etc/nsswitch.conf",0x0,0666) = 3 (0x3)
open("/usr/local/lib/nss_ldap.so.1",0x0,027757770550) = 4 (0x4)
open("/usr/local/lib/libldap.so.2",0x0,027757770510) = 4 (0x4)
open("/usr/local/lib/liblber.so.2",0x0,027757770510) = 4 (0x4)
open("/usr/lib/libssl.so.3",0x0,027757770510) = 4 (0x4)
open("/usr/lib/libcrypto.so.3",0x0,027757770510) = 4 (0x4)
open("/etc/pwd.db",0x0,00) = 3 (0x3)
open("/etc/ldap.conf",0x0,0666) = 3 (0x3)
open("/etc/resolv.conf",0x0,0666) = 3 (0x3)
open("/etc/hosts",0x0,0666) = 3 (0x3)
open("/usr/local/etc/openldap/ldap.conf",0x0,0666) = 3 (0x3)
...
-gordon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030424/abfcea9f/attachment.bin
More information about the freebsd-current
mailing list