Commit graph

254 commits

Author SHA1 Message Date
Austin Ziegler
b4c2bfe0f9 Cleaning up the Net::BER core extension docs. 2010-04-19 01:53:32 -04:00
Austin Ziegler
64bcdd0912 Removing a stub file, lib/net/ldif.rb.
There is no value provided by this stub.
2010-04-19 01:52:39 -04:00
Rory O'Connell
cc55227083 Merge remote branch 'halostatue/ldap-psw-cleanup' into ldap-psw-cleanup 2010-04-15 17:07:41 -05:00
Rory O'Connell
0fce1048a5 Merge branch 'ldap-pdu-cleanup', remote branch 'halostatue/ldap-pdu-cleanup' into ldap-pdu-cleanup 2010-04-15 17:05:40 -05:00
Rory O'Connell
896eaa533c Merge branch 'ldap-cleanup', remote branch 'halostatue/ldap-cleanup' into ldap-cleanup 2010-04-15 16:27:08 -05:00
Rory O'Connell
f42773569f Merge branch 'ber-cleanup', remote branch 'halostatue/ber-cleanup' into ber-cleanup
Conflicts:
	test/test_ber.rb
2010-04-15 16:19:33 -05:00
Kaspar Schiess
483af95ccd ! Fixes references to various classes
I had to prefix all accesses to LdapPdu, AsnSyntax and Filter with
Net::LDAP or Net:: respectively. We should rethink the module
decomposition to make this more natural.
2010-04-05 18:33:35 +02: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
Austin Ziegler
20f494a875 Yield is not a function call. 2010-03-27 14:48:06 -04:00
Austin Ziegler
1d3817e007 Reformat and documentation update of Net::BER and Net::BER::BERParser. 2010-03-27 01:57:44 -04:00
Austin Ziegler
1589556dd2 Fixing some documentation formatting. 2010-03-24 23:27:54 -04:00
Austin Ziegler
8e9a8a48d7 Significant reformat of Net::LDAP class. 2010-03-24 23:16:33 -04:00
Austin Ziegler
fece50c844 Making return codes consistent for add and modify. 2010-03-24 21:48: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
f90aeec7c6 Minor formatting cleanup. 2010-03-20 10:04:32 -04:00
Kaspar Schiess
ddb15caace + Adding String#read_ber! back in, since our test server uses it. 2010-03-20 14:18:15 +01:00
Austin Ziegler
c913bc6fb9 Moved core extensions to Net::BER. Documented. 2010-03-20 13:47:56 +01:00
Austin Ziegler
e31af4bead SSL enabled or disabled per presence of OpenSSL. 2010-03-19 22:56:50 -04:00
Austin Ziegler
c3f991fdf8 Preparing for a quick fix release. 2010-03-18 09:58:22 -04: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
Kaspar Schiess
31ba47cf1d ! A proper fix for the error I've found yesterday.
We should further look for empty rescue statements, as they may
sometimes catch stuff that we don't want to be caught.
2010-03-18 08:44:58 +01:00
Kaspar Schiess
6a17e6a2c2 ! Fixes connection open bug
Without this require, even the simplest example will fail, since TCPSocket
is not defined. Our tests were faking this by including openssl and socket.
2010-03-17 16:40:55 +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
Austin Ziegler
87a7cf1b6a Renaming net.rb to net-ldap.rb 2010-03-12 22:01:20 -05:00
Rory OConnell
de4021f2e1 Merge branch from kschiess 2010-02-12 10:42:29 -06:00
Kaspar Schiess
b849681f5f ! Fixes that last ssl topic 2010-02-12 15:08:56 +01: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
emiel
d6e6a97086 Ensure connections are closed. Patch by Kristian Meier. 2009-02-27 15:44:04 +00:00
emiel
4fafdd56d0 Replace TCPsocket with TCPSocket.
* Ruby 1.9 removes the "alias" for TCPsocket so
   use TCPSocket instead. Notice case.
2009-02-21 15:23:09 +00:00
emiel
6b5548ffd2 This commit is all about moving toward 'Hoe' as the project helper.
$ gem install hoe

To get there the following has been done:

 * Adhere to hoe naming conventions.
 * Migrate and update tests.
 * Consolidate and update documentation.
 * Prepare History.txt for release.
 * And I probably forgot something...
2008-11-14 23:22:30 +00:00
blackhedd
e6cccef627 added clarifying documentation parameters to #bind. 2007-10-23 12:31:58 +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
64a8240ae0 Bugfix. Net::LDAP#bind was ignoring the inbound auth parameter.
Thanks to Kouhei Sutou for spotting this and pointing it out.
2007-05-07 03:43:32 +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
bc1129fcf1 tweaked subschema query to comply with RFC 4512 pgh 4.4. 2007-05-02 18:25:34 +00:00
blackhedd
8cfb4a13b6 more comment tweaks 2007-05-02 10:44:58 +00:00
blackhedd
105fb102d5 let's get it right for a change 2007-05-02 10:21:39 +00:00
blackhedd
acfa64d159 fixed grammar error in doc. 2007-05-02 10:17:46 +00:00
blackhedd
18699c9ac2 comments and docs for Net::LDAP#Search_subschema_entry 2007-05-02 10:15:15 +00:00
blackhedd
95d86ea6c3 added Net::LDAP#search_subschema_entry 2007-05-02 10:10:19 +00:00
blackhedd
55c6d2efe9 fixed error in BER encoding. 2007-05-02 02:59:38 +00:00
blackhedd
d483a345af Added a patch by Kouhei Sutou which supports start_tls encryption. 2007-05-02 02:32:14 +00:00
blackhedd
ae298d2865 added extended error reporting to Connection#modify 2007-03-20 18:56:23 +00:00
blackhedd
033bc22ee4 added some additional comments 2007-03-20 18:30:52 +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
blackhedd
79f3ec6e0d comments 2006-12-21 16:04:25 +00:00
blackhedd
f6c87c02fc fixed mispelling: TimerTicks is now TimeTicks. 2006-12-21 15:09:29 +00:00
blackhedd
0d9206d602 added Net::BER::BerIdentifiedOid type and related tests 2006-12-19 18:27:57 +00:00
blackhedd
2ef2176f14 fixed bug 2006-12-19 18:15:40 +00:00
blackhedd
40b5554389 tweaked get-response parsing 2006-12-18 20:36:41 +00:00
blackhedd
977f276191 fixed small bug, missing case in PDU parser 2006-12-18 20:16:32 +00:00
blackhedd
765988a57b supported parsing of get-response packets 2006-12-18 19:56:50 +00:00
blackhedd
eac464bcb9 added some SNMP app-specific types and cleaned up some BER-encoding problems
with integers.
2006-12-17 19:04:41 +00:00
blackhedd
e550dc80ab missed a case 2006-12-15 18:37:09 +00:00
blackhedd
5f197cc040 fixed the implementation of Bignum#to_ber. 2006-12-15 18:29:26 +00:00
blackhedd
0bf35f8d3e additional packet formats supported 2006-12-15 16:15:06 +00:00
blackhedd
3f14b54014 added some more test cases 2006-12-15 14:12:02 +00:00
blackhedd
19452a6206 development on snmp 2006-12-15 13:55:13 +00:00
blackhedd
cf82f83ddf added a #to_ber method to BerIdentifiedNull, which handles ASN.1 NULL objects. 2006-12-15 13:54:50 +00:00
blackhedd
c49e1f0c94 SNMP GetRequest parsing 2006-12-15 11:22:41 +00:00
blackhedd
79e59cf3aa initial dev 2006-12-15 10:37:27 +00:00
blackhedd
f6cb105444 oops. Fixed private. 2006-12-08 16:10:37 +00:00
blackhedd
db1894a5c0 Added Array#to_ber_oid. 2006-12-08 16:03:24 +00:00
blackhedd
65b446c586 fixed Fixnum#to_ber when the value is zero 2006-12-08 15:53:02 +00:00
blackhedd
11d8152d1b re-implemented Fixnum#to_ber, which was wrongly implemented.
The new version still doesn't fix representations of negative values.
2006-12-08 15:47:23 +00:00
blackhedd
1d1a1a6f7d DRY violated 2006-12-08 14:48:57 +00:00
blackhedd
6860965651 supported translation of the X.690 OID representation.
More useful for SNMP than for LDAP.
2006-12-08 10:40:17 +00:00
blackhedd
8dfbf21302 supported univeral BER types 5 (NULL) and 6 (OID) 2006-12-08 08:39:13 +00:00
blackhedd
7fe954f199 Supported some additional BER encodings. 2006-11-29 18:09:14 +00:00
blackhedd
2ee2a551b1 Added syntax support for SearchFilter ANDs and ORs. 2006-11-29 13:42:21 +00:00
blackhedd
4b110ff886 Added String#read_ber! 2006-11-27 23:09:18 +00:00
blackhedd
4db9f2c7cc Added a more-disciplined version of #read_ber. 2006-11-27 23:07:24 +00:00
blackhedd
832334116a Supported BindRequest, SearchRequest, and UnbindRequest 2006-11-27 22:59:03 +00:00
blackhedd
fad144bcbc Supported ASN NULL objects. Kindof trivial but nice for completeness. 2006-11-27 22:57:17 +00:00
blackhedd
e001f0413e Added syntax support for UnbindRequest bodies. 2006-11-27 22:56:13 +00:00
blackhedd
1748afac24 added blanks to the attribute filter in Filter#construct 2006-10-27 00:14:21 +00:00
blackhedd
239752408d removed a duplicate entry 2006-10-27 00:04:47 +00:00
blackhedd
7e32ba177c improved the SASL authentication method, and added a simple accessor for
MS/AD authentication via GSS-SPNEGO.
2006-09-30 23:02:12 +00:00
blackhedd
82e2cc3592 Fixed bug noticed by Matthias Tarasiewicz: from_single_ldif_string
was returning DN attributes with a prepended nil element.
2006-09-30 14:59:13 +00:00
blackhedd
14c3db9b83 provisionally implemented NTLM authentication. 2006-09-30 13:28:05 +00:00
blackhedd
f3e87dd406 Added support for SASL data types and requests.
Connection#bind_sasl is incomplete, don't use it yet.
2006-09-30 12:16:25 +00:00
blackhedd
af27b55d89 Factored out BindResponse handling, to support SASL server creds. 2006-09-30 12:12:52 +00:00