Skip to content
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

Referral question #1063

Open
cro opened this issue Oct 18, 2022 · 1 comment
Open

Referral question #1063

cro opened this issue Oct 18, 2022 · 1 comment

Comments

@cro
Copy link

cro commented Oct 18, 2022

Greetings,

We have an application that performs LDAP lookups against Active Directory. For one customer we are seeing the following in the logs (names sanitized):

ERROR:invalid server address for <ldaps://host .subdomain.com:636 - 
   ssl - user: CN=svc domain-join,OU=XXX,DC=HOST,DC=SUBDOMAIN,DC=COM -
   not lazy - unbound - closed - <no socket> - tls not started - not listening -
   SyncStrategy - internal decoder>

Note the space between host and the .subdomain.

Further log reading reveals this message appears when we are getting an LDAP referral, because the host above is not the host we are sending the query against. This has been verified via DNS lookup, the IP addresses are different between the two hosts.

My question is if there is a switch or configuration option anywhere in ldap3 that would strip spaces from the referral server addresses. They are not valid, and while I understand the "right" solution would be to fix the Active Directory so it reports valid referral hostnames, the customer is saying "it works for all our other LDAP applications", so I am wondering if other interface libraries do this already.

Thanks.

@cannatag
Copy link
Owner

cannatag commented Oct 18, 2022 via email

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

No branches or pull requests

2 participants