nslcd upgrade breaks existing nslcd.conf
Bug #1029062 reported by
Stephen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nss-pam-ldapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When upgrading nslcd to 0.8.4ubuntu.0.1 the "base" entry in /etc/nslcd.conf was overritten. From reading nslcd.postinst the script rebuilds nslcd.conf from debconf. The values in debconf are incorrect. It is unclear where the values in debconf came from. When nslcd restarted it failed due to a missing base entry and the system became unuseable.
nslcd.postinst should not replace a working /etc/nslcd.conf with a broken on.
Related branches
To post a comment you must log in.
The debconf entries apear to come from nslcd.config. In read_config() entries from nslcd.conf are put in debconf. However the sed regex does not take into consideration the "base [map] dn" syntax as noted in nslcd.postinst.