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() {
415
415
// This example demonstrates how to use DirSync to manually execute a
416
416
// DirSync search request
417
417
func ExampleConn_DirSync () {
418
- conn , err := Dial ( "tcp" , " ad.example.org:389" )
418
+ conn , err := DialURL ( "ldap:// ad.example.org:389" )
419
419
if err != nil {
420
420
log .Fatalf ("Failed to connect: %s\n " , err )
421
421
}
@@ -468,7 +468,7 @@ func ExampleConn_DirSync() {
468
468
469
469
// This example demonstrates how to use DirSync search asynchronously
470
470
func ExampleConn_DirSyncAsync () {
471
- conn , err := Dial ( "tcp" , " ad.example.org:389" )
471
+ conn , err := DialURL ( "ldap:// ad.example.org:389" )
472
472
if err != nil {
473
473
log .Fatalf ("Failed to connect: %s\n " , err )
474
474
}
You can’t perform that action at this time.
0 commit comments