[Patch] [Kolab 2.4] kolab-saslauthd crash when no dirsrv
Chloé Desoutter
chloe.desoutter at atasta.net
Fri Feb 1 20:28:55 CET 2013
Dear List, hello again,
Le 01/02/2013 20:24, Chloé Desoutter a écrit :
> This issue has already been talked of in the kolab 2.4 - kolab-saslauthd
> service failed thread. We hope the users will appreciate this patch to
> the saslauthd/__init__.py program.
Please find attached my corrected patch, which removes the temporary
comment I had put in the code with our company's name. We don't want
your code to be encumbered with useless comments ;-).
Yours sincerely
--
Chloé Desoutter
ATASTANET
-------------- next part --------------
--- saslauthd/__init__.py 2013-02-01 20:13:30.047432454 +0100
+++ saslauthd2/__init__.py 2013-02-01 20:27:13.194433933 +0100
@@ -35,6 +35,7 @@
import pykolab
+from ldap import LDAPError
from pykolab.auth import Auth
from pykolab.constants import *
from pykolab.translate import _
@@ -96,6 +97,10 @@
exitcode = 1
traceback.print_exc()
log.error(_("Type Error: %s") % e)
+ except LDAPError, e:
+ log.error(_("dirsrv is not around... waiting"))
+ time.sleep(10)
+ self.run()
except:
exitcode = 2
traceback.print_exc()
More information about the users
mailing list