Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd/network.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/network.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/network.py')
-rw-r--r--pynslcd/network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pynslcd/network.py b/pynslcd/network.py
index 672b9e4..b32824c 100644
--- a/pynslcd/network.py
+++ b/pynslcd/network.py
@@ -43,7 +43,7 @@ class NetworkRequest(common.Request):
print 'Error: entry %s does not contain %s value' % ( dn, self.attmap_cn)
if not networkname:
networkname = networknames.pop(0)
- else:
+ elif networkname in networknames:
networknames.remove(networkname)
addresses = attributes.get(self.attmap_ipNetworkNumber, [])
if not addresses: