Bug#806942: ldap2zone: leaving ldap2zone unconfigured will make cron send an email each hour

IOhannes m zmölnig (Debian/GNU) umlaeute at debian.org
Thu Dec 3 08:47:51 UTC 2015


Package: ldap2zone
Version: 0.2-6
Severity: normal

Dear Maintainer,

   * What led up to the situation?

I installed ldap2zone for testing purposes (not for production).
Since i installed it, the administrator gets an email every hour with the
content:
> Subject: Cron <bind at HOSTNAME>  /usr/sbin/ldap2bind
>> ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
>> No domains configured. Exiting...

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I did not configure ldap2zone.
Esp. i did not modify (or even create) a file /etc/defaults/ldap2zone.
I also do not remember being told to craete (or modify) such a file during the
installation process.

   * What was the outcome of this action?

ldap2zone sets up a cronjob to run /usr/sbin/ldap2bind each hour, and ldap2bind
generates a (non-descript) error because of the missing /etc/defaults/ldap2zone.
flooding the admin's mailbox.

   * What outcome did you expect instead?

i *expected* to not get an error-message each hour simply because i installed a
package.
i think the proper procedure would be:
- during installation, tell the administrator that they need to create/configure
  a file "/etc/defaults/ldap2zone" in order to use that service.
AND
- skip the cron-job if that file is not present.

something like the following

    $ cat /etc/cron.d/ldap2zone 
    PATH=/sbin:/bin:/usr/sbin:/usr/bin

    @reboot   bind  test -x /usr/sbin/ldap2bind && test -e /etc/defaults/ldap2zone && /usr/sbin/ldap2bind
    @hourly   bind  test -x /usr/sbin/ldap2bind && test -e /etc/defaults/ldap2zone && /usr/sbin/ldap2bind



*** End of the template - remove these template lines ***


-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_AT.utf8, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ldap2zone depends on:
ii  bind9          1:9.9.5.dfsg-12+b1
ii  libc6          2.19-22
ii  libldap-2.4-2  2.4.42+dfsg-2

ldap2zone recommends no packages.

ldap2zone suggests no packages.

-- no debconf information



More information about the Debian-edu-pkg-team mailing list