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

RE: Compiling pam_ldap w/ openldap



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
pam_ldap.c -o dynamic/pam_ldap.o
pam_ldap.c: In function `_open_session':
pam_ldap.c:514: warning: implicit declaration of function
`ldap_set_option'
pam_ldap.c:514: `LDAP_OPT_PROTOCOL_VERSION' undeclared (first use this
function)
pam_ldap.c:514: (Each undeclared identifier is reported only once
pam_ldap.c:514: for each function it appears in.)
pam_ldap.c:515: warning: passing arg 2 of `ldap_set_rebind_proc' from
incompatible pointer type
pam_ldap.c:515: too many arguments to function `ldap_set_rebind_proc'
pam_ldap.c: In function `_connect_as_user':
pam_ldap.c:610: `PLDAPControl' undeclared (first use this function)
pam_ldap.c:610: `controls' undeclared (first use this function)
pam_ldap.c:610: warning: statement with no effect
pam_ldap.c:611: parse error before `int'
pam_ldap.c:648: `zerotime' undeclared (first use this function)
pam_ldap.c:650: `msgid' undeclared (first use this function)
pam_ldap.c:653: warning: implicit declaration of function
`ldap_get_lderrno'
pam_ldap.c:657: `finished' undeclared (first use this function)
pam_ldap.c:658: `result' undeclared (first use this function)
pam_ldap.c:663: warning: function `ldap_get_lderrno' was previously
declared within a block
pam_ldap.c:672: `parserc' undeclared (first use this function)
pam_ldap.c:672: warning: implicit declaration of function
`ldap_parse_result'
pam_ldap.c:693: `ctlp' undeclared (first use this function)
pam_ldap.c:693: warning: statement with no effect
pam_ldap.c:705: warning: implicit declaration of function
`ldap_controls_free'
pam_ldap.c: In function `_get_salt':
pam_ldap.c:849: warning: implicit declaration of function `time'
pam_ldap.c: In function `_get_user_info':
pam_ldap.c:886: warning: function `ldap_set_option' was previously
declared within a block
pam_ldap.c:886: `LDAP_OPT_SIZELIMIT' undeclared (first use this function)
pam_ldap.c: In function `_get_password_policy':
pam_ldap.c:1065: warning: function `ldap_set_option' was previously
declared within a block
pam_ldap.c:1065: `LDAP_OPT_SIZELIMIT' undeclared (first use this function)
pam_ldap.c:1078: warning: passing arg 2 of `ldap_search_s' discards
`const' from pointer target type
pam_ldap.c:1078: warning: passing arg 4 of `ldap_search_s' discards
`const' from pointer target type
pam_ldap.c: In function `pam_sm_chauthtok':
pam_ldap.c:1583: warning: function `ldap_get_lderrno' was previously
declared within a block
pam_ldap.c: At top level:
pam_ldap.c:131: warning: `rcsid' defined but not used
make: *** [dynamic/pam_ldap.o] Error 1



On Sat, 17 Apr 1999 lukeh@xedoc.com.au wrote:

> 
> > Yes, it is. The problem is that OpenLDAP is v2 compliant, but defines
> > LDAP_VER3 or something like that. Now, pam_ldap merely checks
> > for the existence of LDAP_VER3 flag (or whatever stands for
> > it, I don't
> > have the source code here), and not for the current version.
> 
> Which pam_ldap are you using? This issue was resolved in pam_ldap-23. We're
> now up to pam_ldap-24. These can be downloaded from www.padl.com.
> 
> 
> -- Luke
> 

-----------------------------------------------------------------------------
Jay Christner
Information Technology Services
Goshen College
Goshen, IN 46526
-----------------------------------------------------------------------------