FreeBSD 4.3 LDAP Authentication BIND IRS

FreeBSD 4.3 LDAP Authentication BIND IRS

Post by Rory Sava » Sat, 22 Sep 2001 05:52:07



It appears that my last obsticle in getting nss_ldap working is FreeBSD's
BIND IRS & libc functionality.

Successful steps in getting FreeBSD LDAP Authentication,

        1. compiled OpenLDAP from source
        2. compiled pam_ldap from source
        3. made BIND 8 from FreeBSD's ports collection & source

        - and that's about it -

Attemping to build a working nss_ldap is still a problem.  When I try to
build nss_ldap as of now, I get these kind of errors,
gcc -DHAVE_CONFIG_H -I. -I. -I.   -DLDAP_REFERRALS -DPIC -D_REENTRANT  -g
-O2 -Wall -fPIC -c ldap-pwd.c
In file included from /usr/include/irs.h:31,
                 from irs-nss.h:32,
                 from ldap-nss.h:57,
                 from ldap-pwd.c:49:
/usr/include/resolv.h:104: field `nsaddr_list' has incomplete type
/usr/include/resolv.h:114: field `addr' has incomplete type
/usr/include/resolv.h:129: field `ina' has incomplete type
/usr/include/resolv.h:130: field `in6a' has incomplete type
In file included from irs-nss.h:32,
                 from ldap-nss.h:57,
                 from ldap-pwd.c:49:
/usr/include/irs.h:48: syntax error before `res_state'
/usr/include/irs.h:49: syntax error before `)'
/usr/include/irs.h:64: syntax error before `res_state'
/usr/include/irs.h:65: syntax error before `)'
/usr/include/irs.h:64: syntax error before `res_state'
/usr/include/irs.h:65: syntax error before `)'
/usr/include/irs.h:81: syntax error before `res_state'
/usr/include/irs.h:82: syntax error before `)'
/usr/include/irs.h:97: syntax error before `res_state'
/usr/include/irs.h:98: syntax error before `)'
/usr/include/irs.h:115: syntax error before `res_state'
/usr/include/irs.h:116: syntax error before `)'
/usr/include/irs.h:131: syntax error before `res_state'
/usr/include/irs.h:132: syntax error before `)'
/usr/include/irs.h:173: syntax error before `res_state'
/usr/include/irs.h:174: syntax error before `)'
ldap-pwd.c:21: warning: `rcsId' defined but not used
*** Error code 1

Stop in /usr/ldap/src/nss_ldap-172.

Now I was told that I may have to recompile libc, and get irs working.
How does one do this?  I mean, what portion of the libc source do I
modify, and include irs functionality?

--
Rory Savage