Skip to content

Commit

Permalink
Use principal_id instead of user_id as variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rnixx committed Dec 16, 2017
1 parent 00fe152 commit 0b16d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node/ext/ldap/ugm/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,13 +607,13 @@ def raw_search(self, criteria=None, attrlist=None,
if attrlist is not None:
_results = list()
for _, att in results:
user_id = att[self._key_attr][0]
principal_id = att[self._key_attr][0]
aliased = self._alias_dict(att)
keys = aliased.keys()
for key in keys:
if key not in attrlist:
del aliased[key]
_results.append((user_id, aliased))
_results.append((principal_id, aliased))
results = _results
else:
results = [att[self._key_attr][0] for _, att in results]
Expand Down

0 comments on commit 0b16d92

Please sign in to comment.