templates/account/base.html doesn't account for passwordless options other than LDAP. #11700

Closed
opened 2025-12-29 21:48:46 +01:00 by adam · 2 comments
Owner

Originally created by @Amir-Bakar on GitHub (Oct 7, 2025).

Originally assigned to: @Amir-Bakar on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.4.1

Python Version

3.10

Steps to Reproduce

  1. Log into Netbox using any SSO solution. (Keycloak SSO auth 2 was used originally.)
  2. Click on profile in the top right hand corner
  3. See password tab.

Expected Behavior

For there to be no Password tab, as it makes no sense for SSO.

Observed Behavior

There is a Password tab.

Originally created by @Amir-Bakar on GitHub (Oct 7, 2025). Originally assigned to: @Amir-Bakar on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.4.1 ### Python Version 3.10 ### Steps to Reproduce 1. Log into Netbox using any SSO solution. (Keycloak SSO auth 2 was used originally.) 2. Click on profile in the top right hand corner 3. See password tab. ### Expected Behavior For there to be no Password tab, as it makes no sense for SSO. ### Observed Behavior There is a Password tab.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:48:46 +01:00
adam closed this issue 2025-12-29 21:48:46 +01:00
Author
Owner

@Amir-Bakar commented on GitHub (Oct 7, 2025):

Using if request.user.has_usable_password instead of if not request.user.ldap_username in line 21 fixed the issue on our end.

The change is committed on a fork. I just opened an issue as it is required for a pull request to be valid.

@Amir-Bakar commented on GitHub (Oct 7, 2025): Using `if request.user.has_usable_password` instead of `if not request.user.ldap_username` in line 21 fixed the issue on our end. The change is committed on a fork. I just opened an issue as it is required for a pull request to be valid.
Author
Owner

@jnovinger commented on GitHub (Oct 7, 2025):

Thanks for the bug report, @Amir-Bakar !

@jnovinger commented on GitHub (Oct 7, 2025): Thanks for the bug report, @Amir-Bakar !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11700