Replies: 1 comment 2 replies
-
|
I am willing to help review PRs around this or if sponsorship could be made I am willing to work on it. So far lightNVR is a cost leader for me, plenty have signed up for cloud to provision an instance and let it sit there for me to kill of later, and then no responses to my communications from those that filled out the interest form. My secondary concerns are that the LDAP support might further increase scope to not be "lightweight", so worth considering putting some of these things behind compile time flags if they end up being heavier weight or increase the size of binary for embedded devices. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I would like to request LDAP / Active Directory authentication support in LightNVR.
In my environment, several internal services authenticate against a local domain via LDAP/AD. For example, NetBox and other internal systems already use domain-based authentication.
LightNVR currently appears to rely on local database users/passwords. It would be very useful to allow users to authenticate using existing LDAP/AD credentials while still keeping LightNVR's local authorization model for roles and stream permissions.
Use case
I manage LightNVR in an environment with multiple users and teams.
Instead of manually creating and maintaining local passwords for each LightNVR account, I would like users to authenticate with their existing domain credentials.
This would improve:
Suggested design
Add a configurable authentication provider.
Example:
Or:
Or possibly:
When LDAP is enabled:
Important requirement
LDAP should handle authentication only.
LightNVR should still manage authorization locally, including:
This would allow LDAP users to authenticate with domain credentials while the LightNVR admin still controls what each user can access inside LightNVR.
Possible configuration fields
Example:
For Active Directory environments, it would also be helpful to support:
Optional group mapping
It would be useful to map LDAP/AD groups to LightNVR roles.
Example:
Potential future extension:
Backward compatibility
Local authentication should remain available, at least for the built-in/admin account, to avoid administrator lockout if LDAP is unavailable.
A safe model could be:
Why this fits LightNVR
LightNVR already has a local user/session/role model. LDAP could be added as an authentication backend while preserving the existing authorization and session system.
The current system can continue to create LightNVR sessions after successful authentication, regardless of whether the password was verified locally or through LDAP.
Security considerations
Beta Was this translation helpful? Give feedback.
All reactions