Add LDAP/Active Directory authentication support#1869
Open
Hemsby wants to merge 1 commit intoTechnitiumSoftware:developfrom
Open
Add LDAP/Active Directory authentication support#1869Hemsby wants to merge 1 commit intoTechnitiumSoftware:developfrom
Hemsby wants to merge 1 commit intoTechnitiumSoftware:developfrom
Conversation
Adds native LDAP SSO authentication allowing users to sign in with their Active Directory or LDAP directory credentials. Supports plain LDAP, StartTLS (port 389), and LDAPS (port 636). Includes group-to- role mapping, configurable auto-provisioning, and full environment variable support for Docker deployments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds native LDAP authentication to the DNS Server web console, enabling users to sign in with their Active Directory or LDAP directory credentials.
Features
Use SSL+ port 636 = LDAPS,Use SSL+ any other port = StartTLS.user@domain) and full DN formats.(sAMAccountName={0})for Active Directory; any RFC 4515 filter is supported.Domain Admins→Administrators.DNS_SERVER_LDAP_*variables.Environment Variables
DNS_SERVER_LDAP_ENABLEDtrue/falseDNS_SERVER_LDAP_SERVERDNS_SERVER_LDAP_PORT389DNS_SERVER_LDAP_USE_SSLtrueenables StartTLS (port 389) or LDAPS (port 636)DNS_SERVER_LDAP_IGNORE_SSL_ERRORStrue/falseDNS_SERVER_LDAP_BIND_DNDNS_SERVER_LDAP_BIND_PASSWORDDNS_SERVER_LDAP_SEARCH_BASEDC=example,DC=comDNS_SERVER_LDAP_USER_FILTER(sAMAccountName={0})DNS_SERVER_LDAP_GROUP_ATTRIBUTEmemberOfDNS_SERVER_LDAP_ALLOW_SIGNUPtrue/falseDNS_SERVER_LDAP_ALLOW_SIGNUP_ONLY_FOR_MAPPED_USERStrue/falseDNS_SERVER_LDAP_GROUP_MAP[{"remoteGroup":"Domain Admins","localGroup":"Administrators"}]Implementation Notes
Uses
Novell.Directory.Ldap.NETStandard(v3.6.0) rather thanSystem.DirectoryServices.Protocols. The Novell library is pure managed .NET (TcpClient + SslStream) with no dependency on native OpenLDAP libraries, ensuring consistent behaviour on Linux, Windows, macOS, Docker, and ARM.