Commit graph

452 commits

Author SHA1 Message Date
Ian Yang f102f50d9c Do not add controls when it is empty. Fixed #17
Some LDAP servers, such as ApacheDS, consider as invalid protocol, if controls
is an empty array.
2011-08-10 20:18:27 +08:00
Martin Carpenter 41bee0a690 Fix LDIF contination to single elided space
RFC 2849 http://tools.ietf.org/html/rfc2849:

SPACE                    = %x20
                           ; ASCII SP, space
...

2)  Any non-empty line, including comment lines, in an LDIF file
    MAY be folded by inserting a line separator (SEP) and a SPACE.
    Folding MUST NOT occur before the first character of the line.
    In other words, folding a line into two lines, the first of
    which is empty, is not permitted. Any line that begins with a
    single space MUST be treated as a continuation of the previous
    (non-empty) line. When joining folded lines, exactly one space
    character at the beginning of each continued line must be
    discarded. Implementations SHOULD NOT fold lines in the middle
    of a multi-byte UTF-8 character.
2011-07-23 03:31:42 +02:00
Martin Carpenter 41b230d9bc Fix identation 2011-07-23 03:26:37 +02:00
Rory O'Connell 7dd6c3a107 Merge pull request #3 from dulanov/master
Incorrect response with return_result=false in Net::LDAP.search
2011-05-29 13:54:56 -07:00
dulanov c9bd8b4b3d fix incorrect respone with return_result=false 2011-05-27 18:24:52 +04:00
Austin Ziegler 028cdeebbd Really fixing #modify this time.
Didn't call the right method before, even though the method itself was
fixed properly.
2011-03-25 21:58:24 -04:00
Austin Ziegler d6ad919717 Bumping these additional versions. 2011-03-23 21:19:00 -04:00
Austin Ziegler 7d90658478 Merge branch 'master' of github.com:ruby-ldap/ruby-net-ldap 2011-03-23 21:18:06 -04:00
Austin Ziegler 57a356d556 Bugfix requiring a 0.2.1 release.
Modify operations were broken, but now aren't. This version fixes the
changes cleanly.
2011-03-23 21:17:51 -04:00
Austin Ziegler 601173739e Bugfix requiring a 0.2.1 release.
Modify operations were broken, but now aren't. This version fixes the
changes cleanly.
2011-03-23 21:13:55 -04:00
Austin Ziegler 8b46fdf349 Fixing the history date post-release. Oops. 2011-03-22 01:01:04 -04:00
Austin Ziegler 360f31720d Adding rubyforge to the Rakefile handling. 2011-03-22 00:53:43 -04:00
Austin Ziegler a046753c9f Fixing a spelling error. 2011-03-22 00:41:46 -04:00
Austin Ziegler cb1966a35b Merge branch 'master' of github.com:RoryO/ruby-net-ldap 2011-03-21 23:48:25 -04:00
Austin Ziegler 1e85e83c46 Cleaning up the Rakefile. 2011-03-21 23:48:07 -04:00
Jamstah 001608e3a0 Add to history re escaping in filters.
Remove extra UTF-8 header.
2011-03-20 20:32:53 +00:00
Austin Ziegler 2a63ae72b9 Merge branch 'filter_escaping' of https://github.com/Jamstah/ruby-net-ldap into Jamstah-filter_escaping 2011-03-17 22:37:44 -04:00
Austin Ziegler 50c76e1f82 Merge branch 'master' of github.com:RoryO/ruby-net-ldap 2011-03-17 22:36:30 -04:00
Austin Ziegler 73b8fad1f1 Documenting new changes in History.rdoc. 2011-03-17 22:36:14 -04:00
Austin Ziegler 6c0de25d21 Documenting new changes in History.rdoc. 2011-03-17 22:35:01 -04:00
Austin Ziegler 7ae8e28550 Merge branch 'filter_single_clauses' of https://github.com/Jamstah/ruby-net-ldap into jamstah-filter_single_clauses 2011-03-17 22:33:16 -04:00
Austin Ziegler 013c13f7e1 Merge branch 'paging_control' of https://github.com/Jamstah/ruby-net-ldap into jamstah-paging_control 2011-03-17 22:28:47 -04:00
Austin Ziegler 811369ce94 Merge branch 'master' of github.com:RoryO/ruby-net-ldap 2011-03-17 22:26:34 -04:00
Austin Ziegler 393b57405d Formatting changes to the DN class. 2011-03-17 22:25:22 -04:00
Austin Ziegler f50ba57e99 Merge branch 'dn_escaping' of https://github.com/Jamstah/ruby-net-ldap into jamstah-dn_escaping 2011-03-17 22:08:07 -04:00
Kaspar Schiess 380459060d . Clarifying a hack in spec code 2011-03-18 10:06:12 +08:00
Austin Ziegler a5e10e9e75 Updating the Manifest and the gempec. 2011-03-17 21:53:45 -04:00
Austin Ziegler fedd290adf Adding utf-8 encoding headers to all lib files. 2011-03-17 21:51:52 -04:00
Austin Ziegler 2d098d41c6 Changing autotest options. 2011-03-17 21:48:36 -04:00
Austin Ziegler b92a75cdc7 Making autotest+rspec nicer. 2011-03-17 21:41:15 -04:00
Austin Ziegler 84e42ceb78 Merging an ugly set of changes I had forgotten about. 2011-03-17 21:37:17 -04:00
Austin Ziegler dcbb2017c8 Documentation clean-up and license change. 2011-03-17 21:15:25 -04:00
Austin Ziegler 3b0a8223b0 Fixing Ruby 1.9.2 -wW2 warnings (bug #28588)
[#28588] Regexp warning under Ruby 1.9.2-p0.
2011-03-16 19:33:54 -04:00
Austin Ziegler 75bec76435 Cleanup of infrastructure before release.
* Removing Gemfile and Gemfile.lock; not appropriate for library gems.
* Removing old-style packaging with archive-tar-minitar (I'll miss you
  even if no one else does).
* Updated the manifest and the committed gemspec.
2011-03-16 19:32:49 -04:00
Rory O'Connell af6c595793 Merge remote-tracking branch 'larstobi/master' 2011-03-16 15:15:43 -05:00
Rory O'Connell a160b17a1d Checking in gemspec to enable pulling right from github with Bundler 2011-03-16 14:13:13 -05:00
Kaspar Schiess 203e4e752d - removes comments that would appear nonsensical in sdoc
These comments would appear as documentation for the Net module, which is bogus. _and_ the formatting was off. Removing them makes rdoc appear more clear.
2011-02-24 11:54:17 +01:00
Lars Tobias Skjong-Børsting 36b06f46df Fix undefined method 'to_ber' for nil:NilClass. Convert unless nil.
Made modify_ops a method to allow for unit testing of it.

Added unit tests for add, delete and replace.
2011-01-28 14:50:54 +01:00
Lars Tobias Skjong-Børsting aeda4020f2 Fix undefined method 'to_ber' for nil:NilClass. Convert unless nil. 2011-01-26 19:09:03 +01:00
Jamstah 91a201ca4d DN Class to escape and parse DNs. 2011-01-11 16:27:45 +00:00
Jamstah 2b3e2774fb Spec for a DN class which escapes values and can parse a DN. 2011-01-11 16:27:14 +00:00
Jamstah 0b0688d434 Add correct filter characters. 2011-01-11 14:23:40 +00:00
Jamstah ab196040b4 Add breaking tests. 2011-01-11 14:23:15 +00:00
Jamstah f3204bde6d Accept filters with only one clause to an & or | 2011-01-06 14:06:31 +00:00
Jamstah 51f2c95df8 Merge remote branch 'upstream/master' into paging_control 2011-01-05 14:12:24 +00:00
Jamstah 756529b3ae Only add the paging control if the server supports it. This is partly to work around a bug where a server will not allow all users to page, and will return insufficient access instead of ignoring the control. 2011-01-05 14:07:36 +00:00
Kaspar Schiess 5bc73d3aa3 . ignoring .rspec (useful to force autotest into spec mode) 2010-12-30 13:46:32 +01:00
Kaspar Schiess 9a0da07f73 + Upgrades our code to a recent rspec 2010-12-30 13:46:06 +01:00
Kaspar Schiess 36904e208a + Rewrote tests as specs. Ruby1.9 compatible escape code. 2010-12-30 13:44:17 +01:00
Jamstah a696aa89a0 Add a method to escape filter strings, and some convenience method for creating some common filter patterns, that are automatically escaped. 2010-12-30 13:14:15 +01:00