Skip to content

Can't login as [email protected] with ldap authentication enabled #5444

@ghost

Description

  • Gitea version (or commit ref): v1.6.0
  • Git version: 2.17.1
  • Operating system: Ubuntu 18.04.1
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
xxxx/xx/xx xx:xx:xx [W] Failed to login '[email protected]' via 'local_ldap': Invalid pattern for attribute 'username' [[email protected]]: must be valid alpha or numeric or dash(-_) or dot characters
xxxx/xx/xx xx:xx:xx [I] Failed authentication attempt for [email protected] from xxx.xxx.xxx.xxx

Description

Additional information:

  • OpenLDAP: 2.4.45
  • Authentication type: LDAP (simple auth)
  • User DN: uid=%s,ou=my_ou,dc=example,dc=com
  • User Filter: (&(objectClass=inetOrgPerson)(uid=%s))

Obviously the "@" character is not in a class of allowed characters for "username". Will it be possible to add the "@" in the next version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions