ldap: Add GSSAPI/Kerberos authentication via native ldapsearch#764
Open
gliatti wants to merge 1 commit intodalibo:masterfrom
Open
ldap: Add GSSAPI/Kerberos authentication via native ldapsearch#764gliatti wants to merge 1 commit intodalibo:masterfrom
gliatti wants to merge 1 commit intodalibo:masterfrom
Conversation
3c3f393 to
827b425
Compare
The pure Go GSSAPI implementation (jcmturner/gokrb5) has checksum mismatch issues with MIT Kerberos KDCs. This adds a native ldapsearch wrapper as fallback when SASL_MECH=GSSAPI is configured. When GSSAPI is detected, ldap2pg delegates LDAP searches to the system ldapsearch command which uses battle-tested native GSSAPI libraries, and parses the LDIF output back into go-ldap SearchResult objects. Requires ldap-utils and libsasl2-modules-gssapi-mit on the system.
827b425 to
df1e155
Compare
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.
Hello everyone,
Here is an implementation of using GSSAPI with ldap2pg as a workaround since the pure Go GSSAPI implementation (jcmturner/gokrb5) has checksum mismatch issues with MIT Kerberos KDCs, making it unusable in practice. To work around this, LDAP searches are delegated to the system
ldapsearchcommand which uses native GSSAPI libraries, and the LDIF output is parsed back into go-ldap SearchResult objects.Here are the limitations I noticed:
Robin,