Skip to content

openldap: some tiny adjustments - #8140

Closed
monnerat wants to merge 1 commit into
curl:masterfrom
monnerat:ldap-5
Closed

monnerat wants to merge 1 commit into
curl:masterfrom
monnerat:ldap-5

Conversation

@monnerat

@monnerat monnerat commented Dec 13, 2021 •

Copy link
Copy Markdown
Contributor
  • Early check proper LDAP URL syntax. Reject URLs with a userinfo part.
  • Use dynamic memory for ldap_init_fd() URL rather than a
    stack-allocated buffer.
  • Never chase referrals: supporting it would require additional parallel
    connections and alternate authentication credentials.
  • Do not wait 1 microsecond while polling/reading query response data.
  • Store last received server code for retrieval with CURLINFO_RESPONSE_CODE.

Maybe you will postpone pull of this as CURLINFO_RESPONSE_CODE for LDAP might be considered as a feature.

@monnerat
monnerat marked this pull request as draft December 13, 2021 19:30
@monnerat
monnerat marked this pull request as ready for review December 14, 2021 01:36
Comment thread lib/openldap.c Resolved
@bagder bagder added the LDAP label Dec 14, 2021
- Early check proper LDAP URL syntax. Reject URLs with a userinfo part.
- Use dynamic memory for ldap_init_fd() URL rather than a
  stack-allocated buffer.
- Never chase referrals: supporting it would require additional parallel
  connections and alternate authentication credentials.
- Do not wait 1 microsecond while polling/reading query response data.
- Store last received server code for retrieval with CURLINFO_RESPONSE_CODE.
@bagder

bagder commented Dec 15, 2021

Copy link
Copy Markdown
Member

Thanks!

@bagder bagder closed this in cdc1da9 Dec 15, 2021
@monnerat

Copy link
Copy Markdown
Contributor Author

Thanks for pulling!

@monnerat
monnerat deleted the ldap-5 branch December 15, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants