Skip to content

Commit

Permalink
* lib/uri.rb, lib/uri/ldaps.rb: added LDAPS scheme; backported from 1…
Browse files Browse the repository at this point in the history
….9. bug#19015, [ruby-dev:31896]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed Apr 15, 2008
1 parent fdb2cc7 commit e04e2e0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Tue Apr 15 18:39:14 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>

* lib/uri.rb, lib/uri/ldaps.rb: added LDAPS
scheme; backported from 1.9. bug#19015, [ruby-dev:31896]

Tue Apr 15 17:45:43 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>

* lib/net/smtp.rb: backported from 1.9. bug#19003
Expand Down
4 changes: 4 additions & 0 deletions NEWS
Expand Up @@ -284,6 +284,10 @@ with all sufficient information, see the ChangeLog file.

Tempfile.open(['image', 'jpg']) { |tempfile| ... }

* uri

* added LDAPS scheme.

* rss

* 0.1.6 -> 0.2.4
Expand Down
1 change: 1 addition & 0 deletions lib/uri.rb
Expand Up @@ -25,4 +25,5 @@ module URI
require 'uri/http'
require 'uri/https'
require 'uri/ldap'
require 'uri/ldaps'
require 'uri/mailto'
12 changes: 12 additions & 0 deletions lib/uri/ldaps.rb
@@ -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

0 comments on commit e04e2e0

Please sign in to comment.