nssldap-update-ignoreusers overwrite symlinks

Bug #691462 reported by Jan J
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnss-ldap (Ubuntu)
In Progress
Low
Unassigned

Bug Description

Binary package hint: libnss-ldap

We have made adaptions to /etc/ldap.conf by adding a divert and distributing our own file. When nssldap-update-ignoreusers is run the divert symlink is replaced. This makes future updates to our ldap.conf settings impossible as dpkg will update the diverted file which will not be the /etc/ldap.conf.

Before:
lrwxrwxrwx 1 root root 22 2010-12-17 10:15 ldap.conf -> ldap.conf.su-linux-sua
-rw-r--r-- 1 root root 239 2010-11-29 09:44 ldap.conf.su-linux-sua
-rw-r--r-- 1 root root 8878 2010-12-09 11:36 ldap.conf.su-linux-sua-orig

After:
-rw-r--r-- 1 root root 402 2010-12-17 10:16 ldap.conf
-rw-r--r-- 1 root root 402 2010-12-17 10:16 ldap.conf.su-linux-sua
-rw-r--r-- 1 root root 8878 2010-12-09 11:36 ldap.conf.su-linux-sua-orig

The problematic part is "sed -i".

Revision history for this message
Chuck Short (zulcss) wrote :

Which version are you using?

chuck

Changed in libnss-ldap (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Jan J (jan.j) wrote : Re: [Bug 691462] Re: nssldap-update-ignoreusers overwrite symlinks

Chuck Short <email address hidden> wrote:
> Which version are you using?

Not certain what version you are requesting but here goes.

Most of our servers run Lucid Lynx (Ubuntu 10.04.1 LTS). They
auto update so the nss-ldap package is at 264-2ubuntu2.

On another note I believe this is a known problem with "sed -i" a
Google for "sed -i symlink" turns up
http://<email address hidden>/msg723433.html
which might contain a solution.

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

[Expired for libnss-ldap (Ubuntu) because there has been no activity for 60 days.]

Changed in libnss-ldap (Ubuntu):
status: Incomplete → Expired
Jan J (jan.j)
Changed in libnss-ldap (Ubuntu):
status: Expired → In Progress
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.