Michael Kozono
|
2df7d03586
|
Redefine `respond_to?` in light of `method_missing`
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
e0a0c6b04e
|
Make internal methods private
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
1d1ad7e0b6
|
Refactor DN error classes
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
6b9229466d
|
Normalize values, reusing DN normalization code
I first attempted to extract logic from the code that normalizes DNs, but I was unsuccessful. This is a hack but it works.
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
689eea5a43
|
Fix space stripping
Especially from the last attribute value.
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
714f264d62
|
Rename method to `to_normalized_s`
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
a6a764f73d
|
Refactor initialize method for clarity
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
b3d61832c3
|
Move downcasing to normalize method
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
14ed20d68a
|
Resolve Rubocop offenses
Disabling some for now since this is based on `Net::LDAP::DN`.
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
26054114be
|
Fix trailing escaped newline
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
66030b03dd
|
Test malformed DNs
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
8bd59f3aeb
|
Raise UnsupportedDnFormatError on multivalued RDNs
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
7e3eb257ba
|
Fix for null DN
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
f610fea777
|
Handle CR and LF characters
|
2017-10-07 10:28:13 -07:00 |
Michael Kozono
|
c79879f33a
|
Fix escaped equal signs
|
2017-10-07 10:28:12 -07:00 |
Michael Kozono
|
3fde6f6806
|
Fix trailing escaped space
|
2017-10-07 10:28:12 -07:00 |
Michael Kozono
|
cb591f86e4
|
Fix to_s_normalize for escaped leading space
|
2017-10-07 10:28:12 -07:00 |
Michael Kozono
|
a0d7a22e7c
|
Always downcase DNs
|
2017-10-07 10:28:12 -07:00 |
Michael Kozono
|
91f2492a78
|
Add `DN#to_s_normalized`
|
2017-10-07 10:28:12 -07:00 |
Michael Kozono
|
2f11db4b00
|
Adapt DN class for Gitlab
|
2017-10-07 10:28:12 -07:00 |
Michael Kozono
|
7bc4278e07
|
Extract Net::LDAP::DN class from ruby-net-ldap gem
|
2017-10-07 10:28:12 -07:00 |