Open justinhschaaf opened 3 days ago
Most of the ldap functionality is contributed. Since I do not use ldap myself I only have a high level understanding of its inner workings. I'm willing to take a look at this, however it would be useful if you can reproduce the issue with verbose logging enabled. Presuming you are on a typical installation, this can be done by adding MOONRAKER_VERBOSE_LOGGING="y"
to Moonraker's environment file (<data_folder>/systemd/moonraker.env
). The documentation provides further detail. After making the modifications, restart the Moonraker service, reproduce the issue, and attach the log. Thanks.
What happened
Hello! I've gone ahead and configured authentication with LDAP as described in the documentation for Moonraker and Fluidd. Now, whenever I try to sign in using my LDAP credentials, Fluidd shows an "Invalid credentials" error message, and Moonraker's logs show an error 401 with the message "[No User]". I've manually updated Fluidd, Moonraker, and Klipper to the latest versions as described in Fluidd's documentation to no avail.
The LDAP server I'm trying to authenticate through is Authentik's LDAP outpost, which I've verified is working properly through manual queries with the ldapsearch command and by configuring it with another application (OPNsense). I can also see Moonraker properly querying the server in its logs.
Client
Fluidd
Browser
Chrome, Firefox
How to reproduce
Assuming you already have working Moonraker, Fluidd, and Authentik instances:
Setup an LDAP in provider as described here.
AUTHENTIK_HOST
,AUTHENTIK_TOKEN
, andAUTHENTIK_INSECURE
variables provided when viewing the outpost in Authentik.Update
moonraker.conf
, adding a[ldap]
section pointing to the Authentik outpost and updating[authorization]
to force logins and default to LDAP.iam-fluidd
group to authenticate. The issue still occurs without this being declared.Restart Moonraker with
systemctl restart moonraker
. Navigate to your Fluidd instance in your web browser of choice and try signing in using your Authentik/LDAP account credentials.Additional information
moonraker.log - The login attempts are at the very bottom of the file.
moonraker.conf
Relevant logs in the LDAP server
Error message as seen in Fluidd