Skip to content
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

LDAP settings don't show unless you change the plugin folder to ldap #77

Open
robe2 opened this issue Dec 13, 2023 · 3 comments
Open

LDAP settings don't show unless you change the plugin folder to ldap #77

robe2 opened this issue Dec 13, 2023 · 3 comments

Comments

@robe2
Copy link

robe2 commented Dec 13, 2023

I'm not sure if this is by design or a recent change or I'm just doing something wrong when I installed.

I just installed discourse, using the docker install here:

https://github.com/discourse/discourse_docker.git

and after enabling the LDAP plugin in my app.yml like so:

hooks:
	after_code:
		- exec:
			cd: $home/plugins
			cmd:
				- git clone https://github.com/jonmbake/discourse-ldap-auth.git

Then doing:

./launcher rebuild app 

The LDAP plugin showed as installed, but when going to https://discourse.mydomain.org/admin/plugins (and clicking the Edit Settings on LDAP)

The screen was blank. What finally worked, was changing the directory to match the name of the plugin, cause I noticed it was complaining in the logs plugin is called "ldap", but plugin will be installed in discourse-ldap-auth or some such thing.

So to fix I forced it to be installed in ldap folder like so:

hooks:
	after_code:
		- exec:
			cd: $home/plugins
			cmd:
				- git clone -b v0.6.1 https://github.com/jonmbake/discourse-ldap-auth.git ldap

I think I had tried -b v0.6.1 before settling on having the foldername, so I don't think it's the version that fixed it.

Is this expected? or did I do something wrong or miss an instruction?

@jonmbake
Copy link
Owner

Hmm... This appears to be a caused by a change in discourse. In the past, the folder name did not have to match the plugin name. Not finding an issue in https://meta.discourse.org/ though.

@Salamandar
Copy link

At install time, I get this error:

Plugin name is 'ldap', but plugin directory is named 'discourse-ldap-auth'

So this looks like you should change the name of the plugin.

@jonmbake
Copy link
Owner

@Salamandar Feel free to open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants