Skip to content

feat: implement RFC2782 SRV record discovery support - #638

Closed
cpuschma wants to merge 2 commits into
go-ldap:masterfrom
cpuschma:feature/srv-records
Closed

cpuschma wants to merge 2 commits into
go-ldap:masterfrom
cpuschma:feature/srv-records

Conversation

@cpuschma

@cpuschma cpuschma commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

This PR adds basic support for resolving LDAP servers through SRV records, following the specifications of RFC2782 and adds a new public function LookupSRV to obtain available records by hand.

ldap.DialURL("ldap://srv.example.com", DialWithSRVResolver(nil))

It adds a new DialOpt, so it's use is optional and disabled by default. By default Go's net.DefaultResolver is used, but a custom resolver can be used too.

Closes #329.

@cpuschma cpuschma added enhancement go Pull requests that update go code labels Sep 28, 2026
@cpuschma
cpuschma marked this pull request as ready for review September 28, 2026 21:15
@cpuschma cpuschma closed this Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

server discovery by SRV record?

1 participant