Bug 45055 - Failing ldap-group-to-file.py spams mail
Failing ldap-group-to-file.py spams mail
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: PAM
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-21 17:50 CEST by Philipp Hahn
Modified: 2020-07-03 20:55 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.017
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2017-07-21 17:50:39 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 ***
Comment 1 Ingo Steuwer univentionstaff 2020-07-03 20:55:46 CEST
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.