Skip to content

Omitting %s from LDAP bind DN sends corrupted bind DN string to LDAP server #8899

Closed

Description

@wrouesnel

Syncthing Version

Syncthing version: v1.23.4, Linux (64-bit Intel/AMD Container)

What Happened

Configuring LDAP auth with a bind DN which omits the %s placeholder (to restrict login to a specific user with LDAP) results in the following bind DN being sent to LDAP:

So configuring

cn=will,dc=home,dc=internal

results in the following being sent to the LDAP server

cn=will,dc=home,dc=internal%!(extra string=will)

Which obviously fails.

What Is Expected

If the %s is omitted, the the bind DN will be sent as-is to the LDAP server.

Reproduction

  • Configure a bind DN without a %s placeholder
  • Enable LDAP auth
  • Observe the logs on the LDAP auth attempt

Activity

  1. added
    bug
    needs-triage
    on May 10, 2023
  2. changed the title [-]Omitting %s from LDAP bind DN breaks LDAP auth[/-] [+]Omitting %s from LDAP bind DN sends corrupted bind DN string to LDAP server[/+] on May 10, 2023
  3. added a commit that references this issue on May 10, 2023
    b2fb2ef
  4. added a commit that references this issue on Jun 4, 2023
    0842a14
  5. added this to the v1.23.6 milestone on Jun 14, 2023
  6. added
    frozen-due-to-age
    on May 9, 2024
  7. locked and limited conversation to collaborators on May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-ageneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions