Upgrading to 2.7.9 broke LDAP #3450

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

Originally created by @buzzingbren on GitHub (Mar 9, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.7.9

Steps to Reproduce

  1. Manual upgraded from 2.7.8 with LDAP Authentication enabled to 2.7.9
    (in the same way as from 2.7.7 to 2.7.8)

Expected Behavior

Successful upgrade with LDAP authentication enabled

Observed Behavior

LDAP logins didn't work.
With the change to Python virtual environment, the system installed django-auth-ldap==2.0.0 isn't available (not very fluent in this).

My Solution

Reverted back to snapshot and performed a new upgrade with a changed requierement.txt file; added django-auth-ldap==2.0.0 as a required package so this would be installed in the new Python virtual environment

LDAP login worked again.

Originally created by @buzzingbren on GitHub (Mar 9, 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.6.8 * 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. Manual upgraded from 2.7.8 with LDAP Authentication enabled to 2.7.9 (in the same way as from 2.7.7 to 2.7.8) <!-- What did you expect to happen? --> ### Expected Behavior Successful upgrade with LDAP authentication enabled <!-- What happened instead? --> ### Observed Behavior LDAP logins didn't work. With the change to Python virtual environment, the system installed django-auth-ldap==2.0.0 isn't available (not very fluent in this). ### My Solution Reverted back to snapshot and performed a new upgrade with a changed requierement.txt file; added django-auth-ldap==2.0.0 as a required package so this would be installed in the new Python virtual environment LDAP login worked again.
adam closed this issue 2025-12-29 18:29:13 +01:00
Author
Owner

@buzzingbren commented on GitHub (Mar 9, 2020):

Sorry, already covered in: 4322

@buzzingbren commented on GitHub (Mar 9, 2020): Sorry, already covered in: 4322
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3450