Skip to content

Support Specifying Domain Name for Kerberos Authentication. #659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

bhunut-adobe
Copy link
Collaborator

Summary

By default the ldap3 library attempts to bind against the service principal for the domain you attempted to connect to. If your target LDAP service uses a round-robin DNS, it’s likely that the hostname you connect to won’t match. This cause it to throw the following error:
LDAP connection failure: SSPI: InitializeSecurityContext: The specified target is unknown or unreachable

In this case, you can either specify Domain Controller hostname or force the library to do a reverse DNS lookup.

This PR includes the fix to do a reverse DNS lookup automatically when using Kerberos Authentication Method by simply pass True as the first element in sasl_credentials to do a reverse DNS lookup.

There is no additional configuration end-user have to do. This solution supported Domain Controller FQDN and Domain Name

Testing Steps

  • Set Authentication Method in Connector-LDAP.yml to Kerberos
  • Change Host Value in Connector-LDAP.yml to Domain Name (ldaps://example.com)
  • Run UST
  • It should authenticate to AD and Pull Users and Groups

  • Set Authentication Method in Connector-LDAP.yml to Kerberos
  • Change Host Value in Connector-LDAP.yml to Domain Controller FQDN (ldaps://dc001.example.com)
  • Run UST
  • It should authenticate to AD and Pull Users and Groups

Fixes #654

@adorton-adobe adorton-adobe added this to the v2.6.2 milestone Dec 4, 2020
@adorton-adobe adorton-adobe merged commit d8a0a72 into adobe-apiplatform:v2 Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LDAP connection failure: SSPI: InitializeSecurityContext: The specified target is unknown or unreachable
2 participants