Get Grafana to work with LDAP #60

Open
opened 2024-05-24 01:06:36 +00:00 by silver · 0 comments
silver commented 2024-05-24 01:06:36 +00:00 (Migrated from gitlab.skynet.ie)

Grafana Instructions: https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/ldap/

Had a smol test to see if it would work, even if auth.ldap is not listed as options (https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=services.grafana.settings.auth)

    services.grafana = {
      enable = true;
      domain = "${name}.skynet.ie";
      port = port;

      settings = {
        security.admin_password = "$__file{${config.age.secrets.grafana_pw.path}}";
        
        # this is the key part
        "auth.ldap" = {
          enabled = true;
        };
      };
    };
Grafana Instructions: https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/ldap/ Had a smol test to see if it would work, even if ``auth.ldap`` is not listed as options (https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=services.grafana.settings.auth) ```nix services.grafana = { enable = true; domain = "${name}.skynet.ie"; port = port; settings = { security.admin_password = "$__file{${config.age.secrets.grafana_pw.path}}"; # this is the key part "auth.ldap" = { enabled = true; }; }; }; ```
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: Skynet/nixos#60
No description provided.