summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/plugins/update_services.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-10-31 16:55:07 +0000
committerPetr Viktorin <pviktori@redhat.com>2014-01-24 20:29:31 +0100
commit97c1c95f20762055932a83cb7ac08a408437a661 (patch)
tree45fe75881605384be220c4fab7d226f42d3077ce /ipaserver/install/plugins/update_services.py
parent08051f16516a3978494ae94032d55cc8b1426df9 (diff)
downloadfreeipa.git-97c1c95f20762055932a83cb7ac08a408437a661.tar.gz
freeipa.git-97c1c95f20762055932a83cb7ac08a408437a661.tar.xz
freeipa.git-97c1c95f20762055932a83cb7ac08a408437a661.zip
Convert remaining update code to LDAPEntry API.
Diffstat (limited to 'ipaserver/install/plugins/update_services.py')
-rw-r--r--ipaserver/install/plugins/update_services.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/ipaserver/install/plugins/update_services.py b/ipaserver/install/plugins/update_services.py
index c384af52..2122abb1 100644
--- a/ipaserver/install/plugins/update_services.py
+++ b/ipaserver/install/plugins/update_services.py
@@ -66,13 +66,12 @@ class update_service_principalalias(PostUpdate):
len(entries), truncated)
error = False
- for dn, entry in entries:
- update = {}
- update['objectclass'] = (entry['objectclass'] +
- ['ipakrbprincipal'])
- update['ipakrbprincipalalias'] = entry['krbprincipalname']
+ for entry in entries:
+ entry['objectclass'] = (entry['objectclass'] +
+ ['ipakrbprincipal'])
+ entry['ipakrbprincipalalias'] = entry['krbprincipalname']
try:
- ldap.update_entry(dn, update)
+ ldap.update_entry(entry)
except (errors.EmptyModlist, errors.NotFound):
pass
except errors.ExecutionError, e: