Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Mark "LDAP Mapping: DN to User Path" as only applicable to Active Directory #8557

Closed
strifel opened this issue Feb 18, 2024 · 2 comments · Fixed by #9355
Closed

Mark "LDAP Mapping: DN to User Path" as only applicable to Active Directory #8557

strifel opened this issue Feb 18, 2024 · 2 comments · Fixed by #9355
Labels
bug Something isn't working wontfix

Comments

@strifel
Copy link

strifel commented Feb 18, 2024

Describe the bug
The Mapping "LDAP Mapping: DN to User Path" uses the attribute "distinguishedName". This is only available on Active Directory.
Using this property mapping on e.g. OpenLDAP will cause it to cause an exception on every user (and therefore send two mails per user to the admins).

To Reproduce
Activate the property mapping "LDAP Mapping: DN to User Path" with OpenLDAP

Expected behavior
An "LDAP" mapping should work on all LDAP servers.

Logs

TypeError: argument of type 'NoneType' is not iterable

Version and Deployment (please complete the following information):

  • authentik version: 2023.10.7
  • Deployment: docker-compose

Additional context
https://superuser.com/questions/1652940/ldap-filter-to-search-for-a-dn

Ideas

  • The mapping should probably be renamed to "Active Directory Mapping"
  • There should be safeguards if the value is None
@strifel strifel added the bug Something isn't working label Feb 18, 2024
@authentik-automation
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@strifel
Copy link
Author

strifel commented Apr 19, 2024

The issue wont get better by closing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant