diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-01-16 14:14:58 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:42 +0100 |
commit | ef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d (patch) | |
tree | 84ad0688b942996dd7b8fa58af3e2702b92f85d2 /ipapython | |
parent | e2120c31c3ba62d1bc57825b90a30d26ca58aa79 (diff) | |
download | freeipa-ef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d.tar.gz freeipa-ef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d.tar.xz freeipa-ef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d.zip |
Add custom mapping object for LDAP entry data.
Diffstat (limited to 'ipapython')
-rw-r--r-- | ipapython/entity.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipapython/entity.py b/ipapython/entity.py index cb97b9913..c15a3c093 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) |