TypeError when navigating site #1007

Closed
opened 2025-12-29 16:27:47 +01:00 by adam · 1 comment
Owner

Originally created by @sirnicke on GitHub (Jun 1, 2017).

Issue type: bug report

Python version: 2.7.12
NetBox version: 2.0.3

LDAP Users have to be a Superuser to be able to navigate away from the homepage without getting a TypeError

Steps to replicate:

  • Login with non superuser account that is in active and staff group
  • Try to go to any link on homepage and get a TypeError
  • Add user to LDAP Superuser group in the LDAP database
  • Relogin user
  • User is now able to access the entire site

Example error:

Exception Type: TypeError at /dcim/sites/
Exception Value: format requires a mapping
Exception Location: /usr/local/lib/python2.7/dist-packages/django_auth_ldap/config.py in execute, line 163

Originally created by @sirnicke on GitHub (Jun 1, 2017). <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please indicate "bug report" or "feature request" below. Be sure to search the existing set of issues (both open and closed) to see if a similar issue has already been raised. --> ### Issue type: bug report <!-- If filing a bug, please indicate the version of Python and NetBox you are running. (This is not necessary for feature requests.) --> **Python version:** 2.7.12 **NetBox version:** 2.0.3 LDAP Users have to be a Superuser to be able to navigate away from the homepage without getting a TypeError **Steps to replicate:** * Login with non superuser account that is in active and staff group * Try to go to any link on homepage and get a TypeError * Add user to LDAP Superuser group in the LDAP database * Relogin user * User is now able to access the entire site **Example error:** Exception Type: TypeError at /dcim/sites/ Exception Value: format requires a mapping Exception Location: /usr/local/lib/python2.7/dist-packages/django_auth_ldap/config.py in execute, line 163 <!-- If filing a bug, please record the exact steps taken to reproduce the bug and any errors messages that are generated. If filing a feature request, please precisely describe the data model or workflow you would like to see implemented, and provide a use case. -->
adam closed this issue 2025-12-29 16:27:47 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 1, 2017):

This looks like a bug in django-auth-ldap. Try upgrading your installed version of the package, or raise a bug against that project.

@jeremystretch commented on GitHub (Jun 1, 2017): This looks like a bug in [django-auth-ldap](https://github.com/almet/django-auth-ldap). Try upgrading your installed version of the package, or raise a bug against that project.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1007