[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] ldap and addressbook
From:       Szombathelyi "György" <gyurco () freemail ! hu>
Date:       2005-07-04 21:06:32
Message-ID: 200507042306.33032.gyurco () freemail ! hu
[Download RAW message or body]

2005. július 4. 19.40 dátummal ezt írta:
> Hi,
>
> thanks for the quick answer. It took me a while because I wanted to check
> on severall computers.
>
> On Friday 01 July 2005 10:49, Szombathelyi György wrote:
> > It's controlled in the /etc/openldap/ldap.conf file. See man ldap.conf
> > for more detailed info. A quick and dirty hack is to put the
> > 'TLS_REQCERT allow' directive into that file.
>
> did that with mie ~/.ldaprc and yes it worked for the command line
> (ldapsearch).
>
> Unfortunately kaddressbook (kontact) still insists on
> "Could not connect to ldaps://ldapserver:636
>
> > > ldapsearch -v -H ldaps://ldap -x 'objectclass=\*'
> > > tells me
> > > ldap_bind: Can't contact LDAP server (-1)
> > >         additional info: error:14090086:SSL
> > > routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
>
> Can I tell kontact/kaddressbook to tell me where it's problem is
> (logfiles). I tried strace but that didn't help
>
I hacked a patch for kio_ldap, if you want to try it, apply it to 
kdebase/kioslave/ldap. It's ugly, but very informative. May help to find out 
the real problem. If someone knows how to make it nicer, please tell me. It 
would be nice if there would be a place to append additional info to the 
standard slavebase error messages.

Bye,
György

____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu

["ldaperr.diff" (text/x-diff)]

Index: kio_ldap.cpp
===================================================================
--- kio_ldap.cpp	(revision 431274)
+++ kio_ldap.cpp	(working copy)
@@ -87,10 +87,23 @@
   }
 }
 
-void LDAPProtocol::LDAPErr( int err, const QString &msg )
+void LDAPProtocol::LDAPErr( int err, const QString &errstr )
 {
-  kdDebug(7125) << "error: " << err << " " << ldap_err2string(err) << endl;
-  
+  kdDebug(7125) << "error code: " << err << " msg: " << ldap_err2string(err) << endl;
+
+  char *errmsg = 0;
+  if ( mLDAP ) {
+    ldap_get_option( mLDAP, LDAP_OPT_ERROR_STRING, &errmsg);
+    kdDebug(7125) << "Additional error message: " << errmsg << endl;
+  }
+  QString msg;
+  msg = errstr;
+  if ( errmsg ) {
+    infoMessage( errmsg );
+    msg += i18n("\nAdditional info:");
+    msg += QString::fromUtf8( errmsg );
+    free( errmsg );
+  }
   /* FIXME: No need to close on all errors */
   closeConnection();
   


_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic