We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DirSync
DirSyncAsync
1 parent 9cfc03b commit e80f029Copy full SHA for e80f029
v3/examples_test.go
@@ -415,7 +415,7 @@ func ExampleControlPaging_manualPaging() {
415
// This example demonstrates how to use DirSync to manually execute a
416
// DirSync search request
417
func ExampleConn_DirSync() {
418
- conn, err := Dial("tcp", "ad.example.org:389")
+ conn, err := DialURL("ldap://ad.example.org:389")
419
if err != nil {
420
log.Fatalf("Failed to connect: %s\n", err)
421
}
@@ -468,7 +468,7 @@ func ExampleConn_DirSync() {
468
469
// This example demonstrates how to use DirSync search asynchronously
470
func ExampleConn_DirSyncAsync() {
471
472
473
474
0 commit comments