FortiAuthenticator
FortiAuthenticator provides centralized authentication services for the Fortinet Security Fabric including multi-factor authentication, single sign-on services, certificate management, and guest management.
idumancic
Staff
Staff
Article Id 421049
Description This article describes how to fix the 500 Internal Server error during exporting remote LDAP users to a CSV file format.
Scope FortiAuthenticator v6.6.x.
Solution

During export users in the FortiAuthenticator GUI, a 500 Internal Server error can appear.

 

exxx.PNG

 

Download GUI logs from this path: FortiAuthenticator IP address/debug -> Log Categories -> Others -> GUI.

 

If this error message is visible, contact TAC support for further troubleshooting:

 

2025-11-11 10:36:27,744 error django.request log 1732 140314804520640 Internal Server Error: /admin/remote_user/remoteldapuser/export/
Traceback (most recent call last):
File "/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
.......................................................
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "./fac/fac/apps/fac_auth/decorators.py", line 38, in _check_perm
File "./fac/fac/apps/remote_user/admin.py", line 505, in ldap_user_export_view
File "./fac/fac/utils/process.py", line 66, in fork_process
RuntimeError: ERROR: could not open file "/var/tmp/ldapusers.csv" for writing: Permission denied 

 

This issue appears because the file permission for /var/tmp/ldapusers.csv is incorrect.

 

Note: To fix this, open a Support case.

The fix will be included in versions 6.6.8 and 8.0.1.