LDAP authentication fails after upgrade to 2.7.9 #3448

Closed
opened 2025-12-29 18:29:13 +01:00 by adam · 3 comments
Owner

Originally created by @Carbenium on GitHub (Mar 7, 2020).

Environment

  • Python version: 3.5.3
  • NetBox version: 2.7.9

Steps to Reproduce

  1. Upgrade to v2.7.9 and run upgrade.sh
  2. LDAP authentication fails

Expected Behavior

LDAP authentication still works after upgrade

Observed Behavior

With the recreation of the venv after each upgrade optional packages like django-auth-ldap are not reinstalled.

Originally created by @Carbenium on GitHub (Mar 7, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.5.3 * NetBox version: 2.7.9 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a wrapper like pynetbox. --> ### Steps to Reproduce 1. Upgrade to v2.7.9 and run upgrade.sh 2. LDAP authentication fails <!-- What did you expect to happen? --> ### Expected Behavior LDAP authentication still works after upgrade <!-- What happened instead? --> ### Observed Behavior With the recreation of the venv after each upgrade optional packages like `django-auth-ldap` are not reinstalled.
adam closed this issue 2025-12-29 18:29:13 +01:00
Author
Owner

@dstarner commented on GitHub (Mar 7, 2020):

So that is because django-auth-ldap is not in the requirements.txt file due to it being an optional dependency / configuration setting. In the documentation concerning LDAP auth, it explicitly says that you need to manually install it. Not sure if we want to add an option to the upgrade.sh script like --ldap-enabled that will add as well.

@dstarner commented on GitHub (Mar 7, 2020): So that is because `django-auth-ldap` is not in the `requirements.txt` file due to it being an optional dependency / configuration setting. [In the documentation concerning LDAP auth](https://netbox.readthedocs.io/en/stable/installation/5-ldap/#install-django-auth-ldap), it explicitly says that you need to manually install it. Not sure if we want to add an option to the `upgrade.sh` script like `--ldap-enabled` that will add as well.
Author
Owner

@dstarner commented on GitHub (Mar 7, 2020):

This is a duplicate of #4322

@dstarner commented on GitHub (Mar 7, 2020): This is a duplicate of #4322
Author
Owner

@Carbenium commented on GitHub (Mar 7, 2020):

Yep, I really didn't see that issue...

@Carbenium commented on GitHub (Mar 7, 2020): Yep, I really didn't see that issue...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3448