Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

NameID input from attributes for LDAP attribute store #103

Merged
merged 1 commit into from
Jun 8, 2017
Merged

NameID input from attributes for LDAP attribute store #103

merged 1 commit into from
Jun 8, 2017

Conversation

skoranda
Copy link
Contributor

@skoranda skoranda commented Jun 4, 2017

Add functionality to specify that attributes returned from
the LDAP directory server used with the LDAP attribute store
should be used as input to be hashed for the NameID for a
persistent name identifier sent to a SP.

Add functionality to specify that attributes returned from
the LDAP directory server used with the LDAP attribute store
should be used as input to be hashed for the NameID for a
persistent name identifier sent to a SP.
# LDAP directory server may return multi-valued attributes
# in any order.
value.sort()
for v in value:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably nitpicking :) but userId = "".join(value) should be more efficient than the for loop + string concat and still be readable

@johanlundberg johanlundberg merged commit 86c5eae into IdentityPython:master Jun 8, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants