summaryrefslogtreecommitdiffstats
path: root/ipapython/entity.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython/entity.py')
-rw-r--r--ipapython/entity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipapython/entity.py b/ipapython/entity.py
index cb97b991..c15a3c09 100644
--- a/ipapython/entity.py
+++ b/ipapython/entity.py
@@ -53,6 +53,8 @@ class Entity:
self.dn = DN(entrydata)
self.data = ipautil.CIDict()
elif isinstance(entrydata,dict):
+ if hasattr(entrydata, 'dn'):
+ entrydata['dn'] = entrydata.dn
self.dn = entrydata['dn']
del entrydata['dn']
self.data = ipautil.CIDict(entrydata)