Skip to content

Remote-Name does not return cn when using LLDAP #972

Description

@SheevaPlug

Describe the Bug

I use Tinyauth.app in a Docker Swarm with Caddy forward_auth and LLDAP. In LLDAP, there is a user with the following data in LDIF:

dn: uid=readonly,ou=people,dc=example,dc=com
cn: Readonly User
createtimestamp: 20260701130846Z
entryuuid: bf8ae209-5fcf-3211-b85a-38509015c81f
first_name: Readonly
givenname: Readonly
last_name: User
mail: lldap_readonly_user@example.com
objectclass: inetOrgPerson
objectclass: posixAccount
objectclass: mailAccount
objectclass: person
sn: User
uid: readonly

After logging in as this user, by web application receives the following HTTP headers:

Remote-Email: readonly@example.com
Remote-Groups: lldap_strict_readonly
Remote-Name: Readonly
Remote-User: readonly

How to Reproduce

No response

Expected Behavior

I'd expect to get the "cn" attribute with the full name, but instead I'm only getting either "first_name" or "givenname".

Additional Context

No response

Logs

No response

Operating System

Kubuntu Linux 26.04

Browser

Firefox 151.0.3

Tinyauth Version

v5.0.7

Docker Version (if applicable)

29.6.1

Human Written Confirmation

  • I confirm this issue was written by me and not generated by an LLM or AI assistant.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions