Hi Jari,

On Thursday 17 May 2007 16:01, Jari Takkala wrote:
> I am having some trouble getting Busybox to authenticate against LDAP.
> I do not see Busybox calling glibc's getpwnam() when I do an ltrace,
> and consequently I don't see /etc/nsswitch.conf being opened.
> I only see an open and read of /etc/passwd.   
> 
> This is Busybox 1.4.0 with glibc 2.5, the relevant config options are:
> 
> CONFIG_FEATURE_SHADOWPASSWDS=y
> # CONFIG_USE_BB_SHADOW is not set
> # CONFIG_USE_BB_PWD_GRP is not set

Huh, indeed... does attached patch help?

> I passed the LDFLAG of -lnsl to Busybox, don't know if that is required

I don't think it's necessary.

--
vda
diff -d -urpN busybox.7/libpwdgrp/Kbuild busybox.8/libpwdgrp/Kbuild
--- busybox.7/libpwdgrp/Kbuild	2007-05-09 23:43:29.000000000 +0200
+++ busybox.8/libpwdgrp/Kbuild	2007-05-18 01:43:11.000000000 +0200
@@ -4,4 +4,6 @@
 #
 # Licensed under the GPL v2, see the file LICENSE in this tarball.
 
-lib-y:=pwd_grp.o uidgid_get.o
+lib-y := uidgid_get.o
+
+lib-$(CONFIG_USE_BB_PWD_GRP) += pwd_grp.o
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to