mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Exclude attributelevelrights from --raw result processing in baseldap.
https://fedorahosted.org/freeipa/ticket/4371 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
parent
1313537736
commit
785e13dd1e
@ -240,9 +240,13 @@ def entry_from_entry(entry, newentry):
|
||||
def entry_to_dict(entry, **options):
|
||||
if options.get('raw', False):
|
||||
result = {}
|
||||
for attr, value in entry.raw.iteritems():
|
||||
if entry.conn.get_type(attr) is not str:
|
||||
value = list(value)
|
||||
for attr in entry.iterkeys():
|
||||
if attr.lower() == 'attributelevelrights':
|
||||
value = entry[attr]
|
||||
elif entry.conn.get_type(attr) is str:
|
||||
value = entry.raw[attr]
|
||||
else:
|
||||
value = list(entry.raw[attr])
|
||||
for (i, v) in enumerate(value):
|
||||
try:
|
||||
value[i] = v.decode('utf-8')
|
||||
|
Loading…
Reference in New Issue
Block a user