Active Directory NestedGroupOfNamesType is not applied #10273

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

Originally created by @1024834 on GitHub (Sep 20, 2024).

Deployment Type

Self-hosted

NetBox Version

v4.1.1

Python Version

3.10

Steps to Reproduce

Configure LDAP authentication against an Active Directory in ldap_config.py, with permission inheritance like so:
from django_auth_ldap.config import LDAPSearch, NestedGroupOfNamesType

Grant active state and read access to the default group "Domain Users $domain/Users".

Try to authenticate with a user that is not granted active state elsewhere.

Expected Behavior

The user should be able to log in and read.

Observed Behavior

The authentication succeeds on the AD without errors or warnings but the user is denied login with the error message "This account is inactive".

Screenshot 2024-09-20 125605

Originally created by @1024834 on GitHub (Sep 20, 2024). ### Deployment Type Self-hosted ### NetBox Version v4.1.1 ### Python Version 3.10 ### Steps to Reproduce Configure LDAP authentication against an Active Directory in ldap_config.py, with permission inheritance like so: `from django_auth_ldap.config import LDAPSearch, NestedGroupOfNamesType` Grant active state and read access to the default group "Domain Users $domain/Users". Try to authenticate with a user that is not granted active state elsewhere. ### Expected Behavior The user should be able to log in and read. ### Observed Behavior The authentication succeeds on the AD without errors or warnings but the user is denied login with the error message "This account is inactive". ![Screenshot 2024-09-20 125605](https://github.com/user-attachments/assets/08a660bf-068e-46c5-969f-e82ea68a6cd1)
adam closed this issue 2025-12-29 21:29:16 +01:00
Author
Owner

@1024834 commented on GitHub (Sep 20, 2024):

System Information:
netbox.json

@1024834 commented on GitHub (Sep 20, 2024): System Information: [netbox.json](https://github.com/user-attachments/files/17074141/netbox.json)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10273