Comment 0 for bug 1229713

Revision history for this message
Simon Fraser (simonfr) wrote :

We have nslcd already installed, with /etc/nslcd.conf listing our LDAP servers. We also have an Active Directory server installed, which servers the DNS SRV entries to exist in order to function properly. Our Ubuntu servers do not use AD, however, and so when nslcd is upgraded, the config script runs:

server=`host -N 2 -t SRV _ldap._tcp.$domain 2> /dev/null | grep -v NXDOMAIN | awk '{print $NF}' | head -1 | sed 's/\.$//'` || true

... finds Active Directory, and replaces the LDAP servers we have in /etc/nslcd.conf with the name of the first AD server it finds. (I should note there are four listed, and it only adds the first one - this is probably a separate bug)

This is unwelcome behaviour, forcing us to use --force-confold as a workaround.

The guess_ldap_uri() function should only be called if /etc/nslcd.conf is not usable, to prevent it overwriting valid configuration with incorrectly guessed ones.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nslcd 0.8.4ubuntu0.2
ProcVersionSignature: Ubuntu 3.2.0-53.81-generic-pae 3.2.50
Uname: Linux 3.2.0-53-generic-pae i686
ApportVersion: 2.0.1-0ubuntu17.4
Architecture: i386
Date: Tue Sep 24 14:07:45 2013
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
MarkForUpload: True
SourcePackage: nss-pam-ldapd
UpgradeStatus: Upgraded to precise on 2012-04-30 (512 days ago)