From: Kouhei Sutou Date: 2007-09-28T21:22:16+09:00 Subject: [ruby-dev:31896] URI::LDAPS 須藤です。 URI::LDAPがあるのでURI::HTTP/URI::HTTPSのように、URI::LDAPSも サポートしてもらえると嬉しいです。 Index: lib/uri/ldaps.rb =================================================================== --- lib/uri/ldaps.rb (リビジョン 0) +++ lib/uri/ldaps.rb (リビジョン 0) @@ -0,0 +1,12 @@ +require 'uri/ldap' + +module URI + + # The default port for LDAPS URIs is 636, and the scheme is 'ldaps:' rather + # than 'ldap:'. Other than that, LDAPS URIs are identical to LDAP URIs; + # see URI::LDAP. + class LDAPS < LDAP + DEFAULT_PORT = 636 + end + @@schemes['LDAPS'] = LDAPS +end Index: lib/uri.rb =================================================================== --- lib/uri.rb (リビジョン 13549) +++ lib/uri.rb (作業コピー) @@ -25,4 +25,5 @@ require 'uri/ftp' require 'uri/http' require 'uri/https' require 'uri/ldap' +require 'uri/ldaps' require 'uri/mailto'