[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Compiling pam_ldap w/ openldap



On Fri, Apr 16, 1999 at 11:15:27AM -0500, Jay Christner wrote:
> I think I'm running into this problem still with pam_ldap-24 and OpenLDAP
> 1.2.1.
>
> I started going through and uncommenting out some of the #ifndef's, and it
> seemed to help (no errors anyways), but it started getting ugly.  I have a
> feeling it's something as simple as defining it as a different API version
> when compiling OpenLDAP....   I'll do some looking, but someone will
> probably beat me to it as I have a million people trying to get my
> attention right now.
>
> make -f Makefile.linux gets....
>
> mkdir -p ./dynamic
> gcc -Wall -I/usr/local/openldap/include  -D_GNU_SOURCE -DLINUX -g -ansi
> -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-align
> -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
> -Winline -Wshadow -pedantic -D_REENTRANT -DLDAP_VERSION3_API  -fPIC   -c

Remove the -D_REENTRANT and -DLDAP_VERSION3_API from CFLAGS in
Make.defs.

Also make sure that

LDAPLIBS=-L$(LDAP_LIB_DIR) -lldap -llber -lpam -lnsl

The default is to use Netscape's ssl library, which OpenLDAP has
neither (currently) ssl nor full LDAPv3 support.

I'm am working on autoconf scripts for Luke to use in nss_ldap and
pam_ldap to make this a little easier to compile and setup. FYI, the
Debian GNU/Linux distribution has pam_ldap and nss_ldap packages along
with OpenLDAP in the unstable distribution, already compiled.

--
-----    -- - -------- --------- ----  -------  -----  - - ---   --------
Ben Collins <b.m.collins@larc.nasa.gov>                  Debian GNU/Linux
OpenLDAP Core - bcollins@openldap.org                 bcollins@debian.org
UnixGroup Admin - Jordan Systems         The Choice of the GNU Generation
------ -- ----- - - -------   ------- -- ---- - -------- - --- ---- -  --