summaryrefslogtreecommitdiffabout
path: root/kabc/plugins/ldap
authorulf69 <ulf69>2004-06-29 03:37:25 (UTC)
committer ulf69 <ulf69>2004-06-29 03:37:25 (UTC)
commitb0a92f38dc4dfb2685581d17b72a69e30bfabedc (patch) (side-by-side diff)
treed04ca7535f36f7043c909d6df7d624503af02b8c /kabc/plugins/ldap
parent82fec00bb1355affe8093f0f92922827f0357632 (diff)
downloadkdepimpi-b0a92f38dc4dfb2685581d17b72a69e30bfabedc.zip
kdepimpi-b0a92f38dc4dfb2685581d17b72a69e30bfabedc.tar.gz
kdepimpi-b0a92f38dc4dfb2685581d17b72a69e30bfabedc.tar.bz2
enable dynamic loading
Diffstat (limited to 'kabc/plugins/ldap') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/plugins/ldap/resourceldap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kabc/plugins/ldap/resourceldap.cpp b/kabc/plugins/ldap/resourceldap.cpp
index 1c54f63..55c43af 100644
--- a/kabc/plugins/ldap/resourceldap.cpp
+++ b/kabc/plugins/ldap/resourceldap.cpp
@@ -28,36 +28,36 @@ $Id$
#include <kdebug.h>
#include <kglobal.h>
#include <klineedit.h>
#include <klocale.h>
#include <kconfig.h>
#include <kstringhandler.h>
#include <stdlib.h>
#include "resourceldap.h"
#include "resourceldapconfig.h"
using namespace KABC;
extern "C"
{
- void *init_kabc_ldap()
+//US void *init_kabc_ldap()
+ void *init_microkabc_ldap()
{
- qDebug("resourceldap.cpp : init_kabc_ldap has to be changed");
-//US return new KRES::PluginFactory<ResourceLDAP,ResourceLDAPConfig>();
+ return new KRES::PluginFactory<ResourceLDAP,ResourceLDAPConfig>();
}
}
void addModOp( LDAPMod ***pmods, const QString &attr, const QString &value );
ResourceLDAP::ResourceLDAP( const KConfig *config )
: Resource( config ), mPort( 389 ), mLdap( 0 )
{
KConfig *cfg = (KConfig *)config;
if ( cfg ) {
mUser = cfg->readEntry( "LdapUser" );
mPassword = KStringHandler::obscure( cfg->readEntry( "LdapPassword" ) );
mDn = cfg->readEntry( "LdapDn" );
mHost = cfg->readEntry( "LdapHost" );
mPort = cfg->readNumEntry( "LdapPort", 389 );