File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ func ExampleControlPaging_manualPaging() {
415415// This example demonstrates how to use DirSync to manually execute a
416416// DirSync search request
417417func ExampleConn_DirSync () {
418- conn , err := Dial ( "tcp" , " ad.example.org:389" )
418+ conn , err := DialURL ( "ldap:// ad.example.org:389" )
419419 if err != nil {
420420 log .Fatalf ("Failed to connect: %s\n " , err )
421421 }
@@ -468,7 +468,7 @@ func ExampleConn_DirSync() {
468468
469469// This example demonstrates how to use DirSync search asynchronously
470470func ExampleConn_DirSyncAsync () {
471- conn , err := Dial ( "tcp" , " ad.example.org:389" )
471+ conn , err := DialURL ( "ldap:// ad.example.org:389" )
472472 if err != nil {
473473 log .Fatalf ("Failed to connect: %s\n " , err )
474474 }
You can’t perform that action at this time.
0 commit comments