[I have nextcloud 220.127.116.11 installed on debian 12.
I have LDAP connected there and about 500 users and I use SSL.
Is it possible to install Basic HTTP Authentication in Apache?
I tried to do it, but it doesn’t work properly.
Below is the entry in the apache nextcloudssl.conf configuration file.
# Require all granted
Options FollowSymLinks MultiViews
SetEnv HOME /drives/nextcloud
SetEnv HTTP_HOME /drives/nextcloud
I came across the following problems.
Of course, if the “Require all granted” entry is active, then basic auth. doesn’t work.
The “Require all granted” entry is disabled.
You can log in, but only if your basic auth. login and password already exists in nextcloud and the system logs in to nextcloud immediately.
When a link to share a file is sent to a person who does not have a nextcloud account, unfortunately this person does not have access to this file. The link is blocked, it is not possible to enter the basic auth login and password.
Even if it were possible, the combination of Nextcloud user management with Basic authentication would not really make sense. What do you want to achieve with it anyway? Double authentication or disable Nextcloud authentication?
Basic authentication makes sense if you use a file manager that does not use its own user management or whose user management can be switched off. You can take a look at Tiny File Manager for this. If you disable user management there, you can use Basic Authentication to build something that really makes sense. But of course this application does not offer the basic functions of Nextcloud such as sharing folders and files.