No reporting of failure on install with LDAP username collision

Bug #1339245 reported by houstonbofh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nagios-nrpe (Ubuntu)
Opinion
Undecided
Unassigned

Bug Description

Ubuntu 12.04.2
nagios-nrpe-server 2.12-5ubuntu1.2

This is an edge case, but it took me a while to solve, and I could find nothing on it with Google...

If...
You have samba, winbind and kerbos as part of an AD domain, (May also be a problem in NIS)
and you have an AD user 'nagios',
and you install the nagios-nrpe-server package...

Everything installs just fine with no errors, but the service will not run. Eventually, you will find an error in syslog, "Warning: Could not get group entry for 'nagios'" and "Error: NRPE daemon cannot be run as user/group root!" which gives you a hint. There is no 'nagios' user or group. But when using 'useradd' it will fail to add 'nagios' saying "useradd: user 'nagios' already exists" in spite of not finding it in the /etc/passwd or /etc/group files... Eventually, you find an old account in AD from a prior admin's aborted attempt to install nagios under Windows... You remove the AD account, add the local account, and everything works.

The problem is the lack of reporting of any issues on install. It should either use the AD account to run, or report that it can not create the local account.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nagios-nrpe (Ubuntu):
status: New → Confirmed
Revision history for this message
Bas Couwenberg (sebastic) wrote :

Fix external AD issues is not the responsibility of the nagios-nrpe package.

Changed in nagios-nrpe (Ubuntu):
status: Confirmed → Opinion
Revision history for this message
houstonbofh (leesharp) wrote :

But good error reporting is.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.