Commit graph

96 commits

Author SHA1 Message Date
Rory OConnell 4ab764558f Merge 2012-02-28 20:48:31 -08:00
Oleg Barenboim 8a106ca64f Added Continuation Reference Processing as defined in section 4.5.3 of RFC 2251 (http://www.ietf.org/rfc/rfc2251.txt) 2011-12-28 15:29:40 -05:00
Michael Baker 40f0e1857e Add success and failure methods. 2011-11-30 20:03:02 +00:00
Michael Baker 2763040162 Return PDU instead of result code 2011-11-29 22:24:34 +00: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
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 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 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
Austin Ziegler fedd290adf Adding utf-8 encoding headers to all lib files. 2011-03-17 21:51:52 -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 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
Jamstah 91a201ca4d DN Class to escape and parse DNs. 2011-01-11 16:27:45 +00:00
Jamstah 0b0688d434 Add correct filter characters. 2011-01-11 14:23:40 +00:00
Jamstah f3204bde6d Accept filters with only one clause to an & or | 2011-01-06 14:06:31 +00: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
Kaspar Schiess cd866c0109 + Patch from Sean Cashin that fixes filter behaviour
Filters would not accept apostrophes, now they do.
Thanks Sean Cashin (http://github.com/scashin133)!
2010-10-08 16:47:24 +02:00
Austin Ziegler f46c68dce3 Merge branch 'master' of github.com:RoryO/ruby-net-ldap 2010-09-25 00:06:31 -04:00
Derek Harmel 4159643c3d Fixes for mysterious 'constant not missing' errors 2010-09-07 01:15:28 +08:00
Austin Ziegler 59dac76d47 Cleaning up Net::LDAP documentation. 2010-04-19 01:54:25 -04:00
Austin Ziegler 5ae087dd1b Cleaning up Net::LDAP::Password, including file rename. 2010-03-27 15:36:31 -04:00
Austin Ziegler 6eaf87dc56 Cleaning up Net::LDAP::PDU (including object rename. 2010-03-27 15:33:32 -04:00
Austin Ziegler 06ea324055 Cleanup of Dataset and Entry. 2010-03-27 14:51:01 -04:00
Kaspar Schiess a3824392bf + Adds a specification for the new ldap extensible filter
I am not sure about this, since I haven't been able to find
documentation about what this does. This should work, though.

Cleanup of comments and exceptions, adds specification for
Filter.ex and a parser method.
2010-03-22 15:17:26 +01:00
Austin Ziegler 3e07125214 Adding experimental RFC4515 extensible filtering. 2010-03-22 13:56:37 +01:00
Austin Ziegler 1dbf5908ae Major clean-up of Net::LDAP::Filter. 2010-03-22 12:12:48 +01:00
Austin Ziegler afe43a5e58 Removing possible calls to Object#to_a. 2010-03-22 12:04:47 +01:00
Austin Ziegler c913bc6fb9 Moved core extensions to Net::BER. Documented. 2010-03-20 13:47:56 +01:00
Kaspar Schiess cfd9dbc922 + Spec for Net::LDAP::Entry
Pretty much rewrote the code. It now also responds to respond_to?
correctly. Most of that symbol manipulation is now in just one place.
2010-03-18 10:08:59 +01:00
Kaspar Schiess c01dc9ee89 + Adds comments (and some layouting) 2010-03-18 09:28:27 +01:00
Austin Ziegler 0f13153558 Switching to version 0.1.0. 2010-03-15 20:16:12 -04:00
Austin Ziegler 31946c35c7 Rationalizing startup. 2010-03-13 00:20:07 -05:00
Kaspar Schiess 1509aa8ef6 ! Fixes all tests
Some code has been removed. Version control is not synonymous with code storage - if you're not using it now, you probably don't have working tests and the code will be buggy anyway. Write it when you need it.
2010-02-12 14:39:57 +01:00
Kaspar Schiess 75f37c58b9 ! Fixes tests for everything BUT the number conversion
This commit removes read_ber! since no one seems to be using it. YAGNI.
2010-02-12 11:59:46 +01:00
Rory OConnell 4c24cf239a Import fixes from kschiess 2010-02-10 12:13:59 -06:00
Rory OConnell d37c3b3ae6 Cleaned up the layout quite a bit to make Gemifying and including into Rails 3 less painful. Some steps to 1.9 compatibility 2010-02-09 16:46:49 -06:00
emiel ec47390431 Correct indentation and format. 2009-02-27 22:43:21 +00:00
emiel 2835ecd82d Fix warning: instance variable @ldap_controls not initialized 2009-02-27 22:39:17 +00:00
blackhedd b828ff52cf Changed error classes to inherit from StandardError instead of Exception.
This should make them easier to use with irb.
2007-09-04 12:07:35 +00:00
blackhedd 6e53144090 supported comma in filter strings, suggested by Kouhei. 2007-08-26 09:28:37 +00:00
blackhedd 089abcceb2 Applied patch from Kouhei Sutou 2007-08-11 01:26:06 +00:00
blackhedd d0c877bcd5 Patch by Kouhei Sutou, enables support of \XX octal filter syntax 2007-06-20 12:31:37 +00:00
blackhedd 3f7a4a254d applied parentheses to quiet some -w warnings. 2007-05-18 21:50:22 +00:00
blackhedd 2769d75b01 Added Net::LDAP::Filter.execute, which enables applications to perform
arbitrary processing based on LDAP filters.
2007-05-06 20:27:28 +00:00
blackhedd da882af074 Added Net::LDAP::Filter.parse_ber and associated helper methods and tests. 2007-05-05 02:44:32 +00:00
blackhedd d483a345af Added a patch by Kouhei Sutou which supports start_tls encryption. 2007-05-02 02:32:14 +00:00
blackhedd 789b36c9d7 extended our support for error messages returned from servers. 2007-03-20 18:28:34 +00:00
blackhedd 17dcc52e05 changed Entry::to_ldif so it doesn't interpret blanks as binary characters. 2007-03-17 02:35:41 +00:00