Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd/host.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-03-24 23:18:31 +0100
committerArthur de Jong <arthur@arthurdejong.org>2011-03-24 23:18:31 +0100
commit4578bac38dd1ef63d0850a5139a7e4dbca3127f3 (patch)
tree26f613b52fe237d3376924b8f12670a484e41385 /pynslcd/host.py
parentcce56703b157ed2d0220469fb2e1a8e9c6946a58 (diff)
fix the case where the RDN is for some reason not in the cn
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1409 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'pynslcd/host.py')
-rw-r--r--pynslcd/host.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pynslcd/host.py b/pynslcd/host.py
index dcd03e3..3c1d5be 100644
--- a/pynslcd/host.py
+++ b/pynslcd/host.py
@@ -43,7 +43,7 @@ class HostRequest(common.Request):
print 'Error: entry %s does not contain %s value' % ( dn, self.attmap_cn )
if not hostname:
hostname = hostnames.pop(0)
- else:
+ elif hostname in hostnames:
hostnames.remove(hostname)
addresses = attributes.get(self.attmap_ipHostNumber, [])
if not addresses: