Skip to content

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

@strifel

Description

@strifel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions