authentik icon indicating copy to clipboard operation
authentik copied to clipboard

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

Open strifel opened this issue 1 year ago • 0 comments

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" exception 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 avatar Feb 18 '24 08:02 strifel