[GH-ISSUE #1142] example of Kimai is incorrect #406

Closed
opened 2026-02-27 08:17:07 +03:00 by kerem · 1 comment
Owner

Originally created by @juntong20XX on GitHub (Mar 31, 2025).
Original GitHub issue: https://github.com/lldap/lldap/issues/1142

Checklist

  • Check if there is already an example config for it.
  • Try to figure out the configuration values for the new service yourself.
    • You can use other example configs for inspiration.
    • If you're having trouble, you can ask on Discord or create an issue.
    • If you succeed, make sure to contribute an example configuration, or a configuration guide.
  • If you hit a block because of an unimplemented feature, create an issue.

Description of the service

Kimal supports automatically assigning their roles in Kimal based on the group of ldap users. However, in the example file, the usernameAttribute value is incorrect, causing the function to be unusable.

What you've tried

<skip ...>
    role:
      baseDn: ou=groups, dc=example, dc=com
      filter: (&(objectClass=groupOfUniqueNames))
      usernameAttribute: cn
      nameAttribute: cn
      userDnAttribute: member
<skip...>

What's not working
The role of users cannot be updated!

How I fixed it:

<skip ...>
    role:
      baseDn: ou=groups, dc=example, dc=com
      filter: (&(objectClass=groupOfUniqueNames))
      usernameAttribute: uid
      nameAttribute: cn
      userDnAttribute: member
<skip...>

the value of usernameAttribute should be uid, not cn.

Kimai version: 2.31.0
lldap image version: stable

Originally created by @juntong20XX on GitHub (Mar 31, 2025). Original GitHub issue: https://github.com/lldap/lldap/issues/1142 **Checklist** - [x] Check if there is already an [example config](https://github.com/lldap/lldap/tree/main/example_configs) for it. - [x] Try to figure out the configuration values for the new service yourself. - You can use other example configs for inspiration. - If you're having trouble, you can ask on [Discord](https://discord.gg/h5PEdRMNyP) or create an issue. - If you succeed, make sure to contribute an example configuration, or a configuration guide. - If you hit a block because of an unimplemented feature, create an issue. **Description of the service** [Kimal](https://www.kimai.org/documentation/ldap.html) supports automatically assigning their roles in Kimal based on the group of ldap users. However, in the [example file](https://github.com/lldap/lldap/blob/main/example_configs/kimai.yaml), the `usernameAttribute` value is incorrect, causing the function to be unusable. **What you've tried** ```yaml <skip ...> role: baseDn: ou=groups, dc=example, dc=com filter: (&(objectClass=groupOfUniqueNames)) usernameAttribute: cn nameAttribute: cn userDnAttribute: member <skip...> ``` **What's not working** The role of users cannot be updated! **How I fixed it**: ```yaml <skip ...> role: baseDn: ou=groups, dc=example, dc=com filter: (&(objectClass=groupOfUniqueNames)) usernameAttribute: uid nameAttribute: cn userDnAttribute: member <skip...> ``` the value of `usernameAttribute` should be `uid`, not `cn`. Kimai version: `2.31.0` lldap image version: `stable`
kerem 2026-02-27 08:17:07 +03:00
Author
Owner

@nitnelave commented on GitHub (Apr 1, 2025):

Thanks! Do you want to open a PR to fix this?

<!-- gh-comment-id:2767775977 --> @nitnelave commented on GitHub (Apr 1, 2025): Thanks! Do you want to open a PR to fix this?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#406
No description provided.