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

BindFunc and SearchFunc undefined #3

Open
lucashby opened this issue May 19, 2023 · 0 comments
Open

BindFunc and SearchFunc undefined #3

lucashby opened this issue May 19, 2023 · 0 comments

Comments

@lucashby
Copy link

lucashby commented May 19, 2023

In the example on the README, the code examples say to do:

s := ldap.NewServer()
handler := ldapHandler{}
s.BindFunc("", handler)

When I try to do that (and s.SearchFunc), even though I've implemented the interfaces in my handler, go build says:

.\main.go:42:4: s.BindFunc undefined (type *ldapserver.Server has no field or method BindFunc)
.\main.go:43:4: s.SearchFunc undefined (type *ldapserver.Server has no field or method SearchFunc)

Is the example wrong or is something missing from the Server struct?

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

1 participant