Skip to content

Commit b72c4a8

Browse files
author
Tom Maher
committed
fix doc syntax
1 parent 005b15f commit b72c4a8

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

lib/net/ldap.rb

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -507,13 +507,13 @@ def self.result2string(code) #:nodoc:
507507
# talking over the public internet), you need to set :tls_options
508508
# something like this...
509509
#
510-
# Net::LDAP.new(
511-
# # ... set host, bind dn, etc ...
512-
# encryption: {
513-
# method: :simple_tls,
514-
# tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS,
515-
# }
516-
# )
510+
# Net::LDAP.new(
511+
# # ... set host, bind dn, etc ...
512+
# encryption: {
513+
# method: :simple_tls,
514+
# tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS,
515+
# }
516+
# )
517517
#
518518
# The above will use the operating system-provided store of CA
519519
# certificates to validate your LDAP server's cert.
@@ -528,17 +528,16 @@ def self.result2string(code) #:nodoc:
528528
# `update-ca-certificates`), then the cert should pass validation.
529529
# To ignore the OS's CA store, put your CA in a PEM-encoded file and...
530530
#
531-
# encryption: {
532-
# method: :simple_tls,
533-
# tls_options: { ca_file: '/path/to/my-little-ca.pem',
534-
# ssl_version: 'TLSv1_1' },
535-
# }
531+
# encryption: {
532+
# method: :simple_tls,
533+
# tls_options: { ca_file: '/path/to/my-little-ca.pem',
534+
# ssl_version: 'TLSv1_1' },
535+
# }
536536
#
537537
# As you might guess, the above example also fails the connection
538538
# if the client can't negotiate TLS v1.1.
539-
# tls_options is ultimately passed to OpenSSL::SSL::SSLContext#set_params
540-
# For more details, see
541-
# http://ruby-doc.org/stdlib-2.0.0/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html
539+
# tls_options is ultimately passed to
540+
# +OpenSSL::SSL::SSLContext#set_params+, For more details, see http://ruby-doc.org/stdlib-2.0.0/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html
542541
#
543542
# Instantiating a Net::LDAP object does <i>not</i> result in network
544543
# traffic to the LDAP server. It simply stores the connection and binding

0 commit comments

Comments
 (0)