resolvconf cause nss_ldap connection failures while booting

Bug #1700472 reported by Tobias Mark
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
resolvconf (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 16.04.2 LTS
resolvconf: 1.78ubuntu4

If the server is configured to use a remote ldap during boot a bunch of this messages appears:

  sh nss_ldap: could not connect to any LDAP server as [..] - Can't contact LDAP server

This appears to be cause by /sbin/resolvconf:

        case "$IFACE" in
          */*) report_iface_err "Slash" ; exit 1 ;;
          *" "*) report_iface_err "Space" ; exit 1 ;;
          .*) report_iface_err "Initial dot" ; exit 1 ;;
          -*) report_iface_err "Initial hyphen" ; exit 1 ;;
          ~*) report_iface_err "Initial tilde" ; exit 1 ;;
        esac

Proposed patch:
- ~*) report_iface_err "Initial tilde" ; exit 1 ;;
+ "~"*) report_iface_err "Initial tilde" ; exit 1 ;;

The shell will try to expand ~* to the home directory of user '*'. This is probably not intended and cause the error because during ifup the ldap can't be reached.

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

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

Changed in resolvconf (Ubuntu):
status: New → Confirmed
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.