summaryrefslogtreecommitdiff
path: root/lib/uri/ldaps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uri/ldaps.rb')
-rw-r--r--lib/uri/ldaps.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/uri/ldaps.rb b/lib/uri/ldaps.rb
index 6da333150f..58228f5894 100644
--- a/lib/uri/ldaps.rb
+++ b/lib/uri/ldaps.rb
@@ -1,4 +1,12 @@
-require 'uri/ldap'
+# frozen_string_literal: false
+# = uri/ldap.rb
+#
+# License:: You can redistribute it and/or modify it under the same term as Ruby.
+#
+# See URI for general documentation
+#
+
+require_relative 'ldap'
module URI
@@ -6,7 +14,9 @@ module URI
# than 'ldap:'. Other than that, LDAPS URIs are identical to LDAP URIs;
# see URI::LDAP.
class LDAPS < LDAP
+ # A Default port of 636 for URI::LDAPS
DEFAULT_PORT = 636
end
- @@schemes['LDAPS'] = LDAPS
+
+ register_scheme 'LDAPS', LDAPS
end