LDAP Troubleshooting

You can configure LDAP authentication and authorization for the Polarity Server. The LDAP authentication scheme supports both authentication and authorization. When a new user connects to the Polarity Server for the first time, a new local account will be created for the user.

Troubleshooting LDAP

You can enable LDAP debug logging by adding a property to the server's .env file. Open the .env file which can be found at /app/polarity-server/.env and add the POLARITY_ENABLE_LDAP_CLIENT_DEBUG_LOGGING environment variable.

/app/polarity-server/.env
POLARITY_ENABLE_LDAP_CLIENT_DEBUG_LOGGING=true

After saving the .env file restart the Polarity server service.

systemctl restart polarityd

Attempt to login to Polarity via your browser using your LDAP credentials. On the server, you will see a new logging file called ldap_debug.log located at /app/polarity-server/logs/ldap_debug.log.

You can use this logging file to help troubleshoot LDAP authentication issues.

Last updated