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

RE: Compiling pam_ldap w/ openldap



At 11:15 AM 4/16/99 -0500, Jay Christner wrote:
>I think I'm running into this problem still with pam_ldap-24 and OpenLDAP
>1.2.1.

>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
> pam_ldap.c:514: `LDAP_OPT_PROTOCOL_VERSION' undeclared

OpenLDAP 1.X is basically the same as the U-Mich API... 
ldap_set_option() is part of the IETF draft LDAP C API
and is being implemented in -devel.

I've posted (long ago) methods for detecting the API version
between various flavors to our -devel mailing...  these should
be available in the list's archive.

Kurt