robjuz / helm-charts

https://robjuz.github.io/helm-charts/index.yaml
34 stars 30 forks source link

kimai2 - ldap integration planned? #11

Closed clyso-dr closed 2 years ago

clyso-dr commented 2 years ago

Is a LDAP integration planned for the kimai2 helm-chart? Official documentiation: https://www.kimai.org/documentation/ldap.html

robjuz commented 2 years ago

Basically it should be possible. I see just one little problem.

An additional composer package needs to be installed in the kimai2 installation. So the official image should have it installed or there user will be forced to use a custom image.

robjuz commented 2 years ago

Ok. I just found that the official docker image ships with LDAP support.

I will take o look into this.

robjuz commented 2 years ago

@clyso-dr Please try to use the configuration field in values.yaml like this.

configuration: |-
  monolog:
      handlers:
          main:
              path: php://stderr
  ldap:
      activate: true
      connection:
          host: <you_ldap_host>
      user:
          baseDn: ou=users, dc=kimai, dc=org
      role:
          baseDn: ou=groups, dc=kimai, dc=org
clyso-dr commented 2 years ago

Is not working, but the problem I think is not the config:

[ERROR] There is no extension able to load the configuration for "ldap" (in
--
2022-01-17 09:15:27 | 2022-01-17T08:15:27.505497777Z stdout F          "/opt/kimai/config/packages/local.yaml"). Looked for namespace "ldap",
2022-01-17 09:15:27 | 2022-01-17T08:15:27.505500917Z stdout F          found ""framework", "doctrine", "doctrine_migrations",
2022-01-17 09:15:27 | 2022-01-17T08:15:27.505515718Z stdout F          "sensio_framework_extra", "monolog", "twig", "security", "admin_lte",
2022-01-17 09:15:27 | 2022-01-17T08:15:27.505518778Z stdout F          "jms_serializer", "fos_rest", "nelmio_api_doc", "nelmio_cors",
2022-01-17 09:15:27 | 2022-01-17T08:15:27.505521458Z stdout F          "webpack_encore", "twig_extra", "handcraftedinthealps_rest_routing",
2022-01-17 09:15:27 | 2022-01-17T08:15:27.505523918Z stdout F          "kimai"" in /opt/kimai/config/packages/local.yaml (which is loaded in
2022-01-17 09:15:27 | 2022-01-17T08:15:27.505526008Z stdout F          resource "/opt/kimai/config/packages/local.yaml").

I tried also the images "apache-1.15.6-dev" and "apache-1.16.9-prod". On both are the same just with the difference that the latest prod image has also problems with the update and install of Kimai it self.

clyso-dr commented 2 years ago

@robjuz should I open here an ticket on tobybatch's container?

robjuz commented 2 years ago

Try

configuration: |-
  monolog:
      handlers:
          main:
              path: php://stderr
  kimai:
    ldap:
      activate: true
      connection:
          host: <you_ldap_host>
      user:
          baseDn: ou=users, dc=kimai, dc=org
      role:
          baseDn: ou=groups, dc=kimai, dc=org
clyso-dr commented 2 years ago

The missing "kimai:" was the key! Thanks!

Maybe you can add that commented in the values.yaml for the next one :-P

robjuz commented 2 years ago

This should also fix the plugins problem!

I will add a paragraph in the Readme about this.

W dniu wt., 25.01.2022 o 08:59 D. Rieder @.***> napisał(a):

The missing "kimai:" was the key! Thanks!

Maybe you can add that commented in the values.yaml for the next one :-P

— Reply to this email directly, view it on GitHub https://github.com/robjuz/helm-charts/issues/11#issuecomment-1020904546, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFLPUGQNQ6H26KUFS2YRMDUXZJ5TANCNFSM5L4EN5UA . You are receiving this because you were mentioned.Message ID: @.***>

clyso-dr commented 2 years ago

yes plugins are also working!