LDAP Authentication / GraphQL error: Cannot return null for non-nullable field ResponseStatus.slug #7355
Replies: 2 comments 1 reply
|
Hello, I'm on latest node (22.9.0), wikiJS 2.5.304, Postgreql 16.4, Ubuntu 24.04 |
|
I get the same error in a rootless podman-compose container modified according to documentation this happens only on with valid username, which is odd, seems that there is a query and the results are returned. It happens also with a wrong password, so my guess is that something is missing in GraphQL library or something is not returned by the LDAP query (maybe because FreeIPA does not have all the attributes that AD has?) but podman-compose logs do not show anything relevant, is there any way to see what is happening when using LDAP? The instructions on the website do not do anything (https://docs.requarks.io/auth/ldap#troubleshooting) so I am guessing the problem is somewhere else in JS even before the query is sent via any ldap library, but since the error only happens on valid users it cannot be the case - some valid data has been returned somewhere, but no relevant logs. OS: AlmaLinux release 10.2 (Lavender Lion) the configuration contains Connection credentials against the LDAP server should be fine, I tested on another machine, I do not have ways to install any ldapsearch tool inside the wikijs container as far as I can see without rebuilding it myself. Network is working as it should (dns and firewall are ok as far as I can see, the machine itself can connect to ldap just fine via sssd and get all the users. This is now a major showstopper for us to use this system. There is a chance to perform authentication via SAML or Oauth at some point, but not now. Thanks for making this available for everyone anyway! |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am encountering an issue when logging in using Active Directory/LDAP, where I receive the following error message:
GraphQL error: Cannot return null for non-nullable field ResponseStatus.slug

I am using Wiki.js version 2.5.303 with Node.js 18.20.2 and PostgreSQL 12.20. Both Wiki.js and PostgreSQL are running in Docker containers based on the images requarks/wiki:canary-2.5.303 and postgres:12.20-alpine3.20. I have also tested the requarks/wiki:canary-2.5.304 image. In the background, I am running additional Docker containers for Elasticsearch and NGINX. The error occurs even when I connect directly to Wiki.js without going through a proxy (NGINX).
I also performed a fresh installation of Wiki.js with only LDAP configured, but the result was the same.
The LDAP URL (ldap://:389), ‘Admin Bind DN’, credentials, search base, and search filter are correct. I have verified the settings using an LDAP browser, so I can rule out any issues with our AD server, especially since other services are successfully using it as well.
The configuration worked previously, but I am still in the evaluation phase of Wiki.js. I suspect the issue might be related to Docker. I can see the request on our firewall, so the connection seems to work, but in the network trace, I see the client receiving an RST, ACK from the LDAP server. However, there are no error messages logged on the LDAP server.
I suspect the problem is with my Docker installation, specifically that the return connection (ports) is being blocked by the Docker bridge. All containers are in the same network, using the ‘bridge’ driver on the Docker host. I am still searching for the corresponding error message on the Wiki.js server for the GraphQL error but haven’t found anything in the Docker logs.
Currently, I am unsure how to proceed in order to resolve the issue.
Thank you very much for your help.
All reactions