compat mode with nss_ldap

Gordon Tetlow gordont at gnf.org
Thu Apr 24 14:46:26 PDT 2003


On Thu, Apr 24, 2003 at 04:25:40PM -0500, Jacques A. Vidrine wrote:
> On Thu, Apr 24, 2003 at 01:24:13PM -0700, Gordon Tetlow wrote:
> > 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
> 
> Ah yes, I need to define NSDB_PASSWD_COMPAT and NSDB_GROUP_COMPAT
> databases in the nss_ldap module for this to work.  It is an oversight
> on my part.  Try this patch and let me know how it works for you.

It doesn't like that. With the compat I get a segfault. unfortunately,
the corefile is not to helpful as I don't have a debug libc around.
Here's the bt anyway:

(gdb) bt
#0  0x280fd970 in nsdispatch () from /usr/lib/libc.so.5
#1  0x0804c80b in ?? ()
#2  0x00780073 in ?? ()

Kinda special. With the passwd: files ldap, it works fine.

-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/edf67da8/attachment.bin


More information about the freebsd-current mailing list