We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48610ae commit 389fcc3Copy full SHA for 389fcc3
lib/net/ldap.rb
@@ -544,6 +544,8 @@ def self.result2string(code) #:nodoc:
544
# parameters in the object. That's why Net::LDAP.new doesn't throw
545
# cert validation errors itself; #bind does instead.
546
def initialize(args = {})
547
+ # URI.parse('') returns a valid URI object, but with all its
548
+ # attributes set to nil. This is convenient for chainging the '||'
549
@uri = URI.parse(args[:uri] || '')
550
551
unless ['ldaps', 'ldap'].include? @uri.scheme
0 commit comments