New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nextcloud: fix ldap integration #101553
Nextcloud: fix ldap integration #101553
Conversation
@@ -551,7 +551,7 @@ in { | |||
priority = 900; | |||
extraConfig = if major < 20 | |||
then "rewrite ^ /index.php;" | |||
else "try_files $uri $uri/ /index.php$request_uri;"; | |||
else "try_files $uri/ /index.php$request_uri;"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This broke autoloading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More info here: nextcloud/documentation#5284
Does this also work on the older, still supported, releases? |
@Mic92 I'm not sure if I'm missing something, but it doesn't seem to properly fix the original LDAP issue. I built a VM from your branch (rev c403ed445dbd3cf7f23d86ba0b8b35e8b9f10442) with the following config: # cat vm.nix
{
snens = { lib, pkgs, config, ... }: {
networking.firewall.allowedTCPPorts = [ 80 ];
services.nextcloud = {
enable = true;
hostName = "localhost";
config = {
adminpass = "root";
};
};
};
} And started it like this:
When I try to configure LDAP auth in the VM, I still get the following error:
|
It does not change anything for older releases. |
I applied now suggestions from nextcloud/documentation#2197 (comment) which is basically a revert of the changes before. Also I think ldap worked with the other hack. |
@Mic92 which other hack? |
The one you tested in a VM also worked on my server. |
Oops sorry, I didn't realize that you pushed new changes after my last commit... LGTM, will merge/backport :) |
Just a note: This leaves behind the |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)