-
Notifications
You must be signed in to change notification settings - Fork 45
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
LDAP Connection Logic Rewrite #127
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got a few things that may or may not be issues and some thoughts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes this round look good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have limited C# knowledge, but the LDAP connection and error handling logic looks sound.
Description
Completely alters the way LDAP connections are made to be more stable
Motivation and Context
LDAP connections are currently brittle and prone to breaking. Additionally, the GetDomain call is very flaky and can cause failures where it shouldn't. With this change, we use the following workflow:
This allows several fallback steps when negotiation ldap connections, which should significantly improve the ability of SharpHound to successfully connect
How Has This Been Tested?
Local tests pass + testing in local environment. Additional tests incoming
Screenshots (if appropriate):
Types of changes
Checklist: