dnc 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +4 -1
- data.tar.gz.sig +0 -0
- data/.travis.yml +3 -0
- data/lib/dnc/dn.rb +4 -4
- data/lib/dnc/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dc10e756bf70d6fff772d6df04ceb1b2581efd0
|
4
|
+
data.tar.gz: 741f68265f15537730d63030d007fe2ee91d7804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae9fbedfd927345a2448c6e4938485c9c3d24bfecfea166d578be915858bd5bcc29d48cad7b5868a7e6bb8a4c1eb34e49663b9ebb3b7899810563ff98a2f1e26
|
7
|
+
data.tar.gz: f81c31003cbeb3c190b7735f3efa399931c02200920e9d6bdccb672155ef4521da0042ed46c46560c204e8e5d6f4b056219279271fcfbc927873b2c7ac60d05a
|
checksums.yaml.gz.sig
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
data/.travis.yml
CHANGED
data/lib/dnc/dn.rb
CHANGED
@@ -26,7 +26,7 @@ class DN
|
|
26
26
|
# @return [DN]
|
27
27
|
def initialize(opts = {})
|
28
28
|
@dn_string = opts[:dn_string]
|
29
|
-
|
29
|
+
raise 'dnc: dn_string parameter is **required**' if dn_string.nil?
|
30
30
|
@original_dn = dn_string
|
31
31
|
@logger = opts[:logger] || logger
|
32
32
|
@transformation = opts[:transformation] || 'upcase'
|
@@ -114,7 +114,7 @@ class DN
|
|
114
114
|
|
115
115
|
def assign_rdn_as_array(method_name, value)
|
116
116
|
send("#{method_name}=", Array.wrap(send(method_name)))
|
117
|
-
send(
|
117
|
+
send(method_name).push(value)
|
118
118
|
end
|
119
119
|
|
120
120
|
# Ensure order of DN elements is proper for CAS server
|
@@ -123,7 +123,7 @@ class DN
|
|
123
123
|
if dn_begins_properly?(formatted_dn)
|
124
124
|
@dn_string = formatted_dn
|
125
125
|
else
|
126
|
-
|
126
|
+
raise "DN invalid format for LDAP authentication, DN:\r\n#{original_dn}"
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
@@ -134,7 +134,7 @@ class DN
|
|
134
134
|
else
|
135
135
|
with_delim = "#{delimiter}/CN=".send(@transformation.to_sym)
|
136
136
|
without_delim = 'CN='.send(@transformation.to_sym)
|
137
|
-
dn_str.start_with?(without_delim
|
137
|
+
dn_str.start_with?(without_delim, with_delim)
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
data/lib/dnc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Haddox
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
jH+3qEZXITKNXNROebXFcF9+0OcQ5HnfOYtVvOlneFJGLMGkPaZMTHgcgjILoaxL
|
31
31
|
L7rj/ffYaFLQeWVQkhbMRtdJKXeuTkFt5Ix2xxueDKskBiSutC3Iy60=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2016-
|
33
|
+
date: 2016-02-27 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: logging
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
[ ,9�Ώ9��nZx7��(��
|
2
|
+
H�Q�?�>��id�u�iQT�Х��N�)>Ýk�tG<,_���y���̚�����S�s5 ::�b��a�G��3�+%�j��1LsDQM"5�c��� 8���z[�p
|