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
Feature/ldap explorer back end #7634
Conversation
@@ -0,0 +1,122 @@ | |||
package pfldapexplorer |
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.
Should be a different package?
} | ||
|
||
func connect(ldapServer *ldapServer, timeout time.Duration) *ldap.Conn { | ||
ldap.DefaultTimeout = timeout |
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.
TODO: Check if this alters the timeout just for this call or for the whole project/service running this
go/caddy/pfldapexplorer/sample.md
Outdated
# Search | ||
|
||
``` | ||
curl -H "Content-Type: application/json" -d '{"server":"AD","search":"(sAMAccountName=zammit)","attributes":["userPrincipalName","sAMAccountName"]}' http://127.0.0.1:22226/api/v1/ldap/search| python -m json.tool |
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.
Todo: Delete this
Still in draft but there 2 things needs to be done:
|
if h.Router.Match(chiCtx, r.Method, r.URL.Path) { | ||
h.Router.ServeHTTP(w, r) | ||
|
||
// TODO change me and wrap actions into something that handles server errors |
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.
what does this mean?
@@ -0,0 +1,8 @@ | |||
:22226 { | |||
bind 127.0.0.1 |
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.
When contenerized it will need need to bind on *
252f9aa
to
3655283
Compare
3655283
to
3367938
Compare
52977e9
to
3b431dd
Compare
ad3f13e
to
60c05c8
Compare
Fix UT according to ldap back end changes
c701572
to
81e8d93
Compare
Description
Adds a service that allows ldap search
Adds an ldap search client that services can use to perform any ldap search
Impacts
Only back-end. Front-end changes will come in a separate PR.
Code / PR Dependencies
Based on this branch by @fdurand
NEW Package(s) required
Ginkgo and gomega for people who want to run the tests
Issue
(OPTIONAL. REMOVE IF NOT NEEDED)
The following syntax 'fixes #ISSUE_NUMBER' will automatically closes a Github issue on pull-request merge time.
Modify the ISSUE_NUMBER in order to reflect the Github issue that need to be closed
fixes #ISSUE_NUMBER
Delete branch after merge
YES
Checklist