No reporting of failure on install with LDAP username collision
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.
Status changed to 'Confirmed' because the bug affects multiple users.