[Kde-pim] KLDAP & LDAP Akonadi Resource

Matthew Leach matthew at theleachfamily.co.uk
Sat Sep 18 13:48:30 BST 2010


Hi everyone,

I finally got around to setting up my development environment a few days ago and delved into the KLDAP and LDAP Akonadi Resource code in playground. 

I thought I'd share my thoughts and experiences over the past few days and ask for suggestions to problems that I encountered.

I have a big LDAP server setup at work (approx 30,000 records are listed on it). So I thought it would be a good test of the resource as well as Akonadi its self (not to sure if there have been tests to that extreme yet).

* The default LDAP filter for retrieving records from LDAP is (objectClass=inetOrgPerson). ie, retrieve all objects from LDAP that are of type user. This is fine for an LDAP server of 100 users or less, however when an organisation has thousands of users this could take a very long time as well as eating up resources on the client. There seems to be an option "Size Limit", however the code for this option in KLDAP is simply:

bool LdapConnection::setSizeLimit( int sizelimit )
{
  kError() << "No LDAP support...";
  return false;
}

So it would appear that support is not implemented for an incremental LDAP traversal. I'm not even sure if this is supported in the C API. I'm at a loss as to how to proceed with this bug, many organisations have query size limits on their LDAP servers, so I don't think it's something that we can say "You need to turn it off for Akonadi to work". I also believe the binding as the Manager account will negate any size limits imposed by the servers - but do we really want users binding as the manager account for simple user queries? Any Thoughts?

* Currently the LDAP Akonadi agent won't be able to use Windows Active Directory. I don't think that it would be that difficult to implement it. All I can see changing is just the schema that is used. However I've not really used AD and was wondering if there where any people that have looked at this problem in the past and could give me some advice on how to tackle the problem.

Apologies for the large email but I think we're getting close to LDAP support in Akonadi which would be great! :)

Matt (aka matty3269).
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list