LDAP/AD Integrations

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Post Reply
sfarrell
Posts: 14
Joined: Tue Apr 20, 2021 12:02 pm

LDAP/AD Integrations

Post by sfarrell »

I am trying to add a CA Cert using the "Add Certificate" in the GUI. When I paste in the certificate information and click 'SUBMIT' I receive a 500 error in the logs and a pop up screen saying "Could not write to /certs".

Any suggestions on how to fix this issue?
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: LDAP/AD Integrations

Post by gwesterman »

Hi @sfarrell,

What distro are you on?

If on Ubuntu / Debian, try running these:

Code: Select all

chmod 0775 /etc/ldap/certs
chmod 0775 /etc/ldap/cacerts
else try these:

Code: Select all

chmod 0775 /etc/openldap/certs
chmod 0775 /etc/openldap/cacerts
Thank you!
fertilecloaked
Posts: 1
Joined: Tue Dec 30, 2025 8:49 pm
Contact:

Re: LDAP/AD Integrations

Post by fertilecloaked »

This usually isn’t an LDAP/AD issue — it’s a permissions problem.

The GUI runs as the web server user (typically apache), and the error means it can’t write to the certs directory.

Things to check quickly:

Verify ownership and permissions on the certs directory (commonly something like /usr/local/nagioslogserver/www/certs):

Code: Select all

chown -R apache:apache /usr/local/nagioslogserver/www/certs
chmod 755 /usr/local/nagioslogserver/www/certs
Make sure the filesystem isn’t read-only and isn’t full.

If SELinux is enabled, temporarily test with:

Code: Select all

setenforce 0
If that fixes it, you’ll need proper SELinux context rules instead of leaving it disabled.

After fixing permissions/SELinux, try adding the cert again.
Post Reply