Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60735 - LDAP KIO-slave is compiled without SASL support
Summary: LDAP KIO-slave is compiled without SASL support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-17 23:37 UTC by Moritz Uhlig
Modified: 2004-09-07 07:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Uhlig 2004-08-17 23:37:31 UTC
When using kaddressbook with an LDAP server that requires SASL authentication kde complains that the LDAP KIO-slave is compiled without SASL support.

The kdebase (and propably kdelibs?) ebuild should offer the sasl USE-flag to be set and then eventually compile in sasl support.

Reproducible: Always
Steps to Reproduce:
1. Emerge kdebase
2. Add a LDAP contact resource with SASL authentication and set it as default
3. Launch kaddressbook/kontact
Actual Results:  
Popup complaining about "SASL authentication not compiled into the ldap 
ioslave."
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-08-18 11:00:17 UTC
Good idea - any idea which sasl package(s) need to be dependend on?

dev-libs/cyrus-sasl
net-libs/gsasl
net-libs/libgsasl

are what shows up at sasl packages here
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-18 17:56:26 UTC
cyrus-sasl, but it is a (optional) dependency of openldap, which is a dependency of kdebase. I'm not sure, but it is very unlikely that this autentication stuff works w/o sasl support in openldap, isn't it?
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-08-19 05:46:17 UTC
The ldap kioslave in kdebase has a one line check for "sasl.h", but I can't see anywhere where it changes any settings based upon finding that file - so perhaps the SASL stuff is in openldap.
Comment 4 Moritz Uhlig 2004-08-20 04:44:53 UTC
Actually kdelibs checks for /usr/include/sasl.h and not /usr/include/sasl/sasl.h where the file is now. Linking sasl.h into /usr/include works peprfectly even if you do not configure kdelibs using --with-sasl.
I do not know if the position of the file changed in a recent version of cyrus-sasl or if it is only gentoo specific.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-21 15:48:48 UTC
fixed :)
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2004-08-26 08:44:23 UTC
This isn't the best fix, because configure can get recreated in the src_compile function via the kde.eclass if, for example, you're using unsermake.
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-26 09:02:09 UTC
O.k., I'll have a look at it.
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2004-08-26 09:26:49 UTC
I think you can fix it like this:

CPPFLAGS="$CPPFLAGS -I/usr/include/sasl" kde_src_compile myconf

or some variation like that.
Comment 9 William Davis 2004-09-06 16:46:29 UTC
I'm having the exact same problem.  I have openldap & perl-ldap compiled with USE=sasl (which gave me cyrus-sasl and perl-sasl).  With LDAP contact resource and SASL authentication, starting kaddressbook gives me SASL authentication not compiled into the ldap ioslave.

Based on above comments, I created a link to /usr/include/sasl/sasl.h in /usr/include (ln /usr/include/sasl/sasl.h /usr/include/sasl.h) and recompiled kdebase.  No effect.  I then recompiled kdelibs.  Again, no effect.

Grasping at straws, I then added myconf="$myconf --with-sasl" to both kdebase-3.3.0.ebuild and kdelibs-3.3.0.ebuild and recompiled them.  Once again, no effect.

# locate kdesasl
/usr/kde/3.3/lib/libkdesasl.so.1
/usr/kde/3.3/lib/libkdesasl.so.1.2.0
/usr/kde/3.3/lib/libkdesasl.la
/usr/kde/3.3/lib/libkdesasl.so
/usr/kde/3.3/include/kio/kdesasl.h

So, I'm not quite understanding what the problem is (not surprising, as I'm simply a user with very little knowledge of what goes on "under the hood.") Perhaps there are more kde components that need to be recompiled for this to work?

In anycase, hopefully I've provided some additional info that will help get this bug closed rather than simply adding spam to the report.
Comment 10 Gregorio Guidi (RETIRED) gentoo-dev 2004-09-07 03:39:33 UTC
Note that kde 3.3.1 will have these two patches:

http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kioslave/ldap/kio_ldap.cpp.diff?r1=1.41&r2=1.41.2.1
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kioslave/ldap/configure.in.in.diff?r1=1.18&r2=1.19

so both sasl/sasl.h and sasl.h will be searched
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-07 07:30:24 UTC
Thanks for the input Gregorio, committed the fix.