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

Re: ldapsearch's bind fails due to getaddrinfo



Probably the getaddrinfo() function is broken in your version of glibc. If you can't upgrade your glibc, then you should just keep using the workaround you've posted here.

Bernhard Erdmann wrote:

Hi,

if I build OpenLDAP using "ac_cv_func_getaddrinfo=no", the hostname lookup is done:

# 03.09.04
# openldap-2.2.15
#
CPPFLAGS="-I/opt/db42/include -I/opt/openssl/include -I/opt/sasl/include" \
LDFLAGS="-L/opt/db42/lib -L/opt/openssl/lib -L/opt/sasl/lib" \
ac_cv_func_getaddrinfo=no \
./configure \
--prefix=/opt/openldap \
--sysconfdir=/etc \
--localstatedir=/var/lib/ldap \
--with-cyrus-sasl \
--disable-ipv6



$ ldapsearch -x -H ldap://localhost -b dc=berdmann,dc=de '(sn=erdman)' # extended LDIF # # LDAPv3 # base <dc=berdmann,dc=de> with scope sub # filter: (sn=erdman) # requesting: ALL #

# search result
search: 2
result: 0 Success

# numResponses: 1





--
 -- Howard Chu
 Chief Architect, Symas Corp.       Director, Highland Sun
 http://www.symas.com               http://highlandsun.com/hyc
 Symas: Premier OpenSource Development and Support