resolvconf cause nss_ldap connection failures while booting
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.
Status changed to 'Confirmed' because the bug affects multiple users.