# LDAP plugin error? after updating to latest ver discourse

**URL:** <https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149>\
**Category:** Product Support\
**Tags:** auth-plugins\
**Created:** [October 5, 2023, 12:47pm UTC](https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149 "2023-10-05T12:47:47Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

After updating to the latest version of Discourse, [Yusa_Arifki](/t/-/281149/1) is experiencing issues with the LDAP plugin. Despite disabling the plugin, the LDAP login button remains functional. [Canapin](/t/-/281149/2) identified the plugin being used as `discourse-ldap-auth` from GitHub. [Canapin](/t/-/281149/4) suggested contacting the author directly, as it's an unofficial plugin. [JammyDodger](/t/-/281149/5) mentioned that [Benjamin_D](/t/-/281149/6) and [jonmbake](/t/-/281149/5) previously fixed issues with the plugin and might be able to help again. [Benjamin_D](/t/-/281149/6) provided a code snippet indicating that the plugin's `enabled?` method relies on `SiteSetting.ldap_enabled`, which might be causing the issue.

<div class="post-metadata">

**Author:** ![Yusa\_Arifki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yusa_arifki/32/246277_2.png) [@Yusa\_Arifki](https://meta.discourse.org/u/Yusa_Arifki)\
**Post date:** [October 5, 2023, 12:47pm UTC](https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149/1 "2023-10-05T12:47:48Z")

</div>

Hello everyone, i just finished updating my discourse to latest version. But somehow the ldap plugin is not matched with how i configured

1. ldap  
currently i disabled ldap plugin, but somehow when people try to login the ldap button still exist and still functional  
 ![image](https://global.discourse-cdn.com/meta/original/4X/4/7/e/47e5dc112529f37495fe2ad88e50415e178b35f3.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/9/8/f98d25d1af3671db2d10eefd854101d5779bf826.png)

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [October 5, 2023, 12:51pm UTC](https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149/2 "2023-10-05T12:51:46Z")

</div>

Hello,

Is that the plugin you’re using?

[https://github.com/jonmbake/discourse-ldap-auth](https://github.com/jonmbake/discourse-ldap-auth)

---

<div class="post-metadata">

**Author:** ![Yusa\_Arifki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yusa_arifki/32/246277_2.png) [@Yusa\_Arifki](https://meta.discourse.org/u/Yusa_Arifki)\
**Post date:** [October 5, 2023, 1:03pm UTC](https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149/3 "2023-10-05T13:03:07Z")

</div>

im not sure, but here is how it displayed on the plugin page

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/f/a/efaa7c44a0b0985c0b445f329b68c926f05daf78.png)

---

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [October 5, 2023, 1:16pm UTC](https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149/4 "2023-10-05T13:16:35Z")

</div>

Yes, that seems to be the one.

I didn’t find it in #Customization > Plugin. It’s unofficial. I suggest you to contact the author directly, but maybe someone who also use it will have an idea here. 🙂

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [October 5, 2023, 1:41pm UTC](https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149/5 "2023-10-05T13:41:12Z")

</div>

I think @Benjamin_D and @jonmbake fixed it up last time it needed a tweak, so will hopefully do the same again. 🤞

> [@Jonmbake/discourse-ldap-auth LDAP plugin not working after upgrading discourse to 3.0.0.beta16](https://meta.discourse.org/t/jonmbake-discourse-ldap-auth-ldap-plugin-not-working-after-upgrading-discourse-to-3-0-0-beta16/250979/13):
>
> The pull requet to upgrade net-ldap has been merged and [v0.6.1 of the plugin has been released](https://github.com/jonmbake/discourse-ldap-auth/releases/tag/v0.6.1). tada Can you verify that it works, @loganharbour or @Benjamin_D ?

---

<div class="post-metadata">

**Author:** ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)\
**Post date:** [October 6, 2023, 4:56am UTC](https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149/6 "2023-10-06T04:56:59Z")

</div>

ah yes, isn’t supposed to work :

> <https://github.com/jonmbake/discourse-ldap-auth/blob/edcf06957090e8d978a89fe7b07a6ba56fe35214/plugin.rb#L21-L23>

```plaintext
          def enabled?
            SiteSetting.ldap_enabled
          end

```

will do it

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [February 25, 2024, 2:22am UTC](https://meta.discourse.org/t/ldap-plugin-error-after-updating-to-latest-ver-discourse/281149/7 "2024-02-25T02:22:41Z")

</div>

Closed on February 25, 2024, 2:22am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
