Comment 2 for bug 2078967

Revision history for this message
Nate Simon (moniseat101) wrote :

From package "libnss-ldapd" - postinst:

nss_is_enabled()
{
  name="$1"
  grep -q '^[[:space:]]*'$name'[[:space:]]*:.*ldap.*' /etc/nsswitch.conf
}

In the above regex, the * match on the first space will make this function incorrectly indicate that "group: mineldap" has the "ldap" module enabled. It seems that if I had selected to enable the "group" nss entry, it would've incorrectly not enabled the ldap module.

Throughout the rest of the file, "[[:space:]]*$name" is used several more times, leading to my situation above.