summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-15 15:13:27 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-15 15:30:04 -0400
commita05f57f528c733f687eaf27d0cbd9b182867b24a (patch)
treed54812164b6bb16444d59db77c423f91476f9ff0
parent812af4546f590f3d30c69a476b50d4a66bbde1a3 (diff)
downloadfreeipa-a05f57f528c733f687eaf27d0cbd9b182867b24a.zip
freeipa-a05f57f528c733f687eaf27d0cbd9b182867b24a.tar.gz
freeipa-a05f57f528c733f687eaf27d0cbd9b182867b24a.tar.xz
Fix error if more than one values is being set in an only. The first entry wasn't being properly converted into a list so subsequent values caused it to crap out.
467102
-rwxr-xr-xipa-server/ipaserver/ldapupdate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-server/ipaserver/ldapupdate.py b/ipa-server/ipaserver/ldapupdate.py
index b2b402b..cdf2312 100755
--- a/ipa-server/ipaserver/ldapupdate.py
+++ b/ipa-server/ipaserver/ldapupdate.py
@@ -430,7 +430,7 @@ class LDAPUpdate:
if only.get(k):
e.append(v)
else:
- e = v
+ e = [v]
only[k] = True
entry.setValues(k, e)
logging.debug('only: updated value %s', e)