User has no config #4048

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

Originally created by @exiz01 on GitHub (Aug 31, 2020).

Environment

  • Python version: 3.6.9
  • NetBox version: 2.9.2

Steps to Reproduce

  1. Set LDAP authentication
  2. when login with a new LDAP user this error is displayed
    I was able to trace the error to this function inside netbox/users/models.py
    def create_userconfig(instance, created, **kwargs):
    if created:
    UserConfig(user=instance).save()

Expected Behavior

User config inside users_userconfig table should be created.

Observed Behavior

Error MSG

Originally created by @exiz01 on GitHub (Aug 31, 2020). ## Environment * Python version: 3.6.9 * NetBox version: 2.9.2 ### Steps to Reproduce 1. Set LDAP authentication 2. when login with a new LDAP user this error is [displayed](https://i.imgur.com/F35zomR.png) I was able to trace the error to this function inside netbox/users/models.py `def create_userconfig(instance, created, **kwargs):` ` if created:` ` UserConfig(user=instance).save()` <!-- What did you expect to happen? --> ### Expected Behavior User config inside users_userconfig table should be created. <!-- What happened instead? --> ### Observed Behavior [Error MSG](https://i.imgur.com/F35zomR.png)
adam closed this issue 2025-12-29 18:32:51 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 31, 2020):

Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v2.9.2. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data.

@jeremystretch commented on GitHub (Aug 31, 2020): Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v2.9.2. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data.
Author
Owner

@gaussk32 commented on GitHub (Sep 2, 2020):

same problem here

Python version: 3.6.9
NetBox version: 2.9.2
@gaussk32 commented on GitHub (Sep 2, 2020): same problem here Python version: 3.6.9 NetBox version: 2.9.2
Author
Owner

@jeremystretch commented on GitHub (Sep 9, 2020):

Closing as no further detail has been provided as requested.

@jeremystretch commented on GitHub (Sep 9, 2020): Closing as no further detail has been provided as requested.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4048