From 4578bac38dd1ef63d0850a5139a7e4dbca3127f3 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 24 Mar 2011 22:18:31 +0000 Subject: 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 --- pynslcd/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pynslcd/host.py') 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: -- cgit v1.2.3