Ok, it seems that unlike many posts across the web LDAP support must be compiled into kdebase and not into kdelibs and kdepim. Unfortunately compiling kdebase results in an error message. I thought that might be related to the OpenLDAP package from linuxpackages.net and therefore I compiled OpenLDAP myself using
Code:
./configure --prefix=/usr/local/openldap --localstatedir=/var/lib --sysconfdir=/etc --with-cyrus-sasl --with-tls --with-readline --with-threads --enable-debug --enable-syslog --enable-dynamic --enable-local --enable-proctitle --disable-ipv6 --disable-static --enable-shared --disable-slapd --disable-slurpd
make depend
make
checkinstall
That works fine so far. After that I tried to compile kdebase using
Code:
./configure --prefix=/opt/kde --with-shadow --with-xinerama --with-ldap=/usr/local/openldap --program-prefix="" --program-suffix=""
./configure works, but running make finally resuls in
Code:
Making all in ldap
make[3]: Entering directory `/home/lstolze/Downloads/kdebase-3.4.2/kioslave/ldap'
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include -I/usr/local/openldap/include -DQT_THREAD_SUPPORT -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -MT kio_ldap.lo -MD -MP -MF ".deps/kio_ldap.Tpo" -c -o kio_ldap.lo kio_ldap.cpp; \
then mv -f ".deps/kio_ldap.Tpo" ".deps/kio_ldap.Plo"; else rm -f ".deps/kio_ldap.Tpo"; exit 1; fi
In file included from kio_ldap.h:11,
from kio_ldap.cpp:33:
/usr/local/openldap/include/ldap.h:951:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:979:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1054:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1142:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1177:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1208:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1242:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1281:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1329:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1631:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1712:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1759:5: warning: "LDAP_DEPRECATED" is not defined
/usr/local/openldap/include/ldap.h:1813:5: warning: "LDAP_DEPRECATED" is not defined
kio_ldap.cpp: In member function `virtual void LDAPProtocol::openConnection()':
kio_ldap.cpp:707: error: `ldap_simple_bind_s' undeclared (first use this
function)
kio_ldap.cpp:707: error: (Each undeclared identifier is reported only once for
each function it appears in.)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::closeConnection()
':
kio_ldap.cpp:732: error: `ldap_unbind' undeclared (first use this function)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::stat(const KURL&)
':
kio_ldap.cpp:849: error: `ldap_abandon' undeclared (first use this function)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::del(const KURL&,
bool)':
kio_ldap.cpp:880: error: `ldap_delete_s' undeclared (first use this function)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::put(const KURL&,
int, bool, bool)':
kio_ldap.cpp:984: error: `ldap_delete_s' undeclared (first use this function)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::listDir(const
KURL&)':
kio_ldap.cpp:1137: error: `ldap_abandon' undeclared (first use this function)
make[3]: *** [kio_ldap.lo] Error 1
make[3]: Leaving directory `/home/lstolze/Downloads/kdebase-3.4.2/kioslave/ldap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lstolze/Downloads/kdebase-3.4.2/kioslave'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lstolze/Downloads/kdebase-3.4.2'
make: *** [all] Error 2
I don't know if there are any system variables I have to set. I thought setting the LDAP path should be enough. Maybe someone could point me to the right direction. Thanks again.
Lars