Skip to content

fix #6426 - Optimize LDAP Proxy Auth#6428

Merged
mhils merged 5 commits intomitmproxy:mainfrom
outlaws-bai:fix-#6426
Oct 31, 2023
Merged

fix #6426 - Optimize LDAP Proxy Auth#6428
mhils merged 5 commits intomitmproxy:mainfrom
outlaws-bai:fix-#6426

Conversation

@outlaws-bai
Copy link
Copy Markdown
Contributor

@outlaws-bai outlaws-bai commented Oct 30, 2023

#6426

Description

When I used ldap as a proxy authentication method, I found that the filter key was hardcoded, so I made it possible to pass in this item.

Checklist

  • I enable the filter key to be accessed externally.
  • I make the port mandatory.
  • I have corrected some annotation errors in arg_check.

@outlaws-bai outlaws-bai changed the title fix #6426 fix #6426 - Optimize LDAP Proxy Auth Oct 30, 2023
Comment thread mitmproxy/addons/proxyauth.py Outdated
"any" to accept any user/pass combination,
"@path" to use an Apache htpasswd file,
or "ldap[s]:url_server_ldap[:port]:dn_auth:password:dn_subtree" for LDAP authentication.
or "ldap[s]:url_server_ldap:port:dn_auth:password:dn_subtree:ldap_search_filter_key" for LDAP authentication.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks backward-compatibility for existing users. Can we add a separate proxyauth_ldap_filter_key option maybe? I guess alternatively we could add a ?search_filter_key=... suffix, but not sure if that's any better.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your suggestion. I have recommitted.

Copy link
Copy Markdown
Member

@mhils mhils left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks! Can you please add a CHANGELOG entry? This is good to go otherwise. 😃

@mhils mhils enabled auto-merge (squash) October 31, 2023 12:47
@mhils mhils merged commit 640bb53 into mitmproxy:main Oct 31, 2023
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.

3 participants