Univention Bugzilla – Bug 45055
Failing ldap-group-to-file.py spams mail
Last modified: 2020-07-03 20:55:46 CEST
I have 132 mails for the failed cron job, because the LDAP server is not available: # postcat /var/spool/postfix/deferred/B/B671888036B *** ENVELOPE RECORDS /var/spool/postfix/deferred/B/B671888036B *** message_size: 2031 277 1 0 2031 content_filter: smtp-amavis:[127.0.0.1]:10024 message_arrival_time: Fri Jul 21 02:00:01 2017 create_time: Fri Jul 21 02:00:01 2017 named_attribute: rewrite_context=local sender_fullname: CronDaemon sender: root2@knut.univention.de named_attribute: encoding=8bit original_recipient: root recipient: root@in8-jenkins2.knut.univention.de *** MESSAGE CONTENTS /var/spool/postfix/deferred/B/B671888036B *** Received: by in8-jenkins2.knut.univention.de (Postfix, from userid 0) id B671888036B; Fri, 21 Jul 2017 02:00:01 +0200 (CEST) From: root@in8-jenkins2.knut.univention.de (Cron Daemon) To: root@in8-jenkins2.knut.univention.de Subject: Cron <root@in8-jenkins2> [ -x /usr/lib/univention-pam/ldap-group-to-file.py ] && /usr/lib/univention-pam/ldap-group-to-file.py --check_member MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Cron-Env: <PATH=/usr/sbin:/usr/bin:/sbin:/bin> X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/root> X-Cron-Env: <LOGNAME=root> Message-Id: <20170721000001.B671888036B@in8-jenkins2.knut.univention.de> Date: Fri, 21 Jul 2017 02:00:01 +0200 (CEST) Traceback (most recent call last): File "/usr/lib/univention-pam/ldap-group-to-file.py", line 110, in <module> lo = univention.uldap.getMachineConnection(ldap_master=False) File "/usr/lib/pymodules/python2.7/univention/uldap.py", line 91, in getMachineConnection return access(host=ucr['ldap/server/name'], port=port, base=ucr['ldap/base'], binddn=ucr['ldap/hostdn'], bindpw=bindpw, start_tls=start_tls, decode_ignorelist=decode_ignorelist, reconnect=reconnect) File "/usr/lib/pymodules/python2.7/univention/uldap.py", line 152, in __init__ self.__open(ca_certfile) File "/usr/lib/pymodules/python2.7/univention/uldap.py", line 202, in __open self.lo.start_tls_s() File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 884, in start_tls_s res = self._apply_method_s(SimpleLDAPObject.start_tls_s,*args,**kwargs) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 860, in _apply_method_s return func(self,*args,**kwargs) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 571, in start_tls_s return self._ldap_call(self._l.start_tls_s) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call result = func(*args,**kwargs) ldap.CONNECT_ERROR: {'desc': 'Connect error'} *** HEADER EXTRACTED /var/spool/postfix/deferred/B/B671888036B *** named_attribute: encoding=8bit *** MESSAGE FILE END /var/spool/postfix/deferred/B/B671888036B ***
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.