Commit Graph

409 Commits

Author SHA1 Message Date
Patrick Mooney 8d0a2d0d99 Add error code 123 from RFC4370 2014-05-24 09:53:37 -05:00
Jonathan Süssemilch Poulain c5ccafd436 Server Side Sorting control 2014-05-16 17:10:24 +02:00
Patrick Mooney 8f1eb06ffa Perform strict presence testing on attribute vals
When initializing an Attribute object, the 'vals' option field was being
loosely tested for content presence.  By changing this test to a strict
comparison against undefined, Attribute object creation will be more
consistent across input values.

Fix mcavage/node-ldapjs#178
2014-05-11 20:38:37 -05:00
Patrick Mooney 4fb97a86b0 Merge pull request #183 from tmuellerleile/tls-createserver
Accept certificate/key as buffers (or strings) when initializing TLS
server socket.
2014-05-06 23:09:52 -05:00
Tobias Muellerleile e3d8ba2f37 Fixup for 501fb5a46b 2014-05-06 14:33:43 +02:00
Tobias Muellerleile 501fb5a46b Accept buffers for cert/key in createServer 2014-05-06 07:36:18 +02:00
Mark Cavage cf8adf4a4a Merge pull request #180 from trentm/cli-insecure-option
add '-i, --insecure' option and LDAPJS_TLS_INSECURE=1 envvar support to all ldapjs-* CLIs
2014-04-22 17:58:46 -07:00
Trent Mick 55abc4c757 add '-i, --insecure' option and LDAPJS_TLS_INSECURE=1 envvar support to all ldapjs-* CLIs
This is required when using node 0.10 and talking to a ldaps://
LDAP server with a self-signed cert. Otherwise you get:

    $ ./ldapjs-search --url ldaps://ldap.example.com:636 ...
    DEPTH_ZERO_SELF_SIGNED_CERT
2014-04-22 17:46:16 -07:00
Mark Cavage 0a8810996d v0.7.1 2014-04-04 14:14:18 -07:00
Patrick Mooney d530893cce Merge pfmooney/parser-error-handling
* pfmooney/parser-error-handling:
  Improve parser error handling
2014-04-04 15:14:32 -05:00
Mark Cavage 5e506dd254 #169: dependency updates 2014-04-04 13:07:27 -07:00
Mark Cavage 5203429d76 Merge pull request #173 from evanshortiss/master
Make dtrace-provider an optional dependency
2014-04-02 08:46:13 -07:00
Evan Shortiss 9afecfd788 Upadte to make dtrace-provider optional. Fix bug in original update. 2014-04-02 10:51:10 -04:00
Evan Shortiss b3b26a48fa Fix DTraceProvider name 2014-04-01 23:24:41 -04:00
Evan Shortiss a84546b7bd Update to make dtrace-provider optional. 2014-04-01 23:02:11 -04:00
Patrick Mooney 7c7c480eb8 Improve parser error handling
In cases where one side of the connection is not communicated with valid
ASN.1/BER, it would be better to fire an error event rather than let the
exception bubble all the way up.

Fix mcavage/node-ldapjs#142
2014-03-15 16:06:42 -05:00
Patrick Mooney d20308265a Circumvent lack of 'close' event for tls sockets
It appears that in node.js (at least recent versions), the 'close' event
is not emitted by TLS sockets.  The CleartextStream class specifies that
the 'close' event is optional, so such operation is allowed.  In order
to compensate, the event can be trapped at the raw net.socket instead.

Fix mcavage/node-ldapjs#161
2014-01-23 10:06:40 -06:00
Patrick Mooney c5cfc48da4 Remove buffertools dependency 2014-01-20 09:34:11 -06:00
Patrick Mooney bc19a98d06 Update buffertools dependency
Buffertools 2.0.1 is required to build on VC2013.
With the change to v2.x, the buffertools.extend() method must be called
to mimic the prototype extention behavior of the 1.x versions.

Fix mcavage/node-ldapjs#163
2014-01-18 14:42:21 -06:00
Patrick Mooney 6414682eee Merge pfmooney/filter-case-attrs
Fix mcavage/node-ldapjs#155
2014-01-17 15:58:32 -06:00
Patrick Mooney 7bacfb676e Merge from pfmooney/client-pool-events
Fix mcavage/node-ldapjs#162
2014-01-17 15:33:11 -06:00
Mark Cavage 56208236a9 travis update 2014-01-17 10:21:11 -08:00
Mark Cavage bc897f9fd4 lint/test cleanup 2014-01-17 09:52:26 -08:00
Patrick Mooney 6b7906ce99 Fix error event handling for pooled clients
Do not emit error events if no listeners are present
2014-01-17 10:47:51 -06:00
Mark Cavage 2f1b0790f6 Merge pull request #159 from gfhuertac/master
Allow ext request message to have a buffer value
2014-01-16 07:41:57 -08:00
Gonzalo Huerta-Canepa 737009ee15 Modified client to allow buffer as a value for exop 2014-01-03 12:58:20 +00:00
Gonzalo Huerta-Canepa fce043d6d0 Allow ext request message to have a buffer value in order to accomodate rfc3062 exop 2014-01-03 12:47:42 +00:00
Mark Cavage 218150466f version bump 2013-12-09 08:50:52 -08:00
Patrick Mooney 9c78c06643 Make *Filter.matches case insensitive for attrs 2013-11-30 23:39:33 -06:00
Patrick Mooney 57fecb06d5 Update Filter utility functions
- Write simple tests for multi_test
- Add get_attr_caseless function for improving Filter.Match
2013-11-30 23:31:15 -06:00
Patrick Mooney dfbb6031c6 Merge client-pool-events from pfmooney/node-ldapjs
Fix mcavage/node-ldapjs#87
2013-11-28 14:09:28 -06:00
Patrick Mooney f5ba81dc38 Minor update to ClientPool event pass-through
- Allow event pass-through when performing ClientPool.bind
- Rename createPool parameter for better readability
- Fix jsstyle error
2013-11-28 14:08:17 -06:00
Patrick Mooney fa1b8c4af8 Bump required pooling version to 0.4.5
Fix mcavage/node-ldapjs#145
2013-10-31 17:19:42 -05:00
Patrick Mooney ebcba1205d Fix unhandled error during client connection
Client actions utilizing an EventEmitter may generate unhandled errors,
especially during initial connection.  Tracking whether the emitter has
been sent via callback is critical for proper routing of such errors.

Fix mcavage/node-ldapjs#144
2013-10-30 18:24:37 -05:00
Patrick Mooney df13275b8e Output ldapi:// URLs for UNIX domain sockets 2013-10-29 23:46:48 -05:00
Patrick Mooney 00bcb58ea1 Fix jsstyle error 2013-10-29 23:38:12 -05:00
Patrick Mooney d4a9d371f0 Re-enable ability to listen on UNIX domain sockets 2013-10-29 23:29:21 -05:00
Patrick Mooney 5d91284e57 Merge ephemeral_port from lloyd/node-ldapjs 2013-10-29 23:28:26 -05:00
Mark Cavage aa633dfd20 support extensible matching of caseIgnore and caseIgnoreSubstrings 2013-10-28 21:12:12 +00:00
Patrick Mooney 506b7d2c90 Merge pull request #152 from madarche/travis-ci-badge
Travis CI badge to easily spot when tests fail
2013-10-25 21:32:51 -07:00
Marc-Aurèle DARCHE 622263a70e Moved badge under horizontal rule as requested 2013-10-25 13:59:39 +02:00
Marc-Aurèle DARCHE 827d9514f0 Travis CI badge to easily spot when tests fail 2013-10-25 09:32:50 +02:00
Patrick Mooney e03d40957e Fix some ClientPool event handling
Emit connectTimeout and error events from ClientPool as Client would.
2013-10-24 21:04:50 -05:00
Patrick Mooney 0d12eef3ff Improve DN formatting flexibility
- Add 'spaced' function to DN objects allowing toggle of inter-RDN when
  rendering to a string.  ('dc=test,dc=tld' vs 'dc=test, dc=tld')

- Detect RDN spacing when parsing DN.
2013-10-24 18:27:42 -05:00
Patrick Mooney e808aee99d Merge pull request #150 from pfmooney/tests-tap-version
Fixes #139 - Bump required tap version to 0.4.1
2013-10-24 16:00:20 -07:00
Patrick Mooney bffa185ce7 Fix jsstyle errors in examples/inmemory.js 2013-10-23 21:56:26 -05:00
Patrick Mooney eee489089a Fix examples/inmemory.js
Fixes mcavage/node-ldapjs#138: user can't bind with inmemory example

In addition to fixing the userPassword authentication code, the
authorize function has been changed so any user may search after a
successful bind.
2013-10-23 21:55:43 -05:00
pmooney 1b738105e6 Bump required tap version to 0.4.1
When using node 0.10, test initiation will fail due to differences in
the array.map function.  This discrepancy is corrected in tap v0.4.1.
See: https://github.com/isaacs/node-tap/issues/70
2013-10-16 20:34:52 -05:00
Pedro Palazón Candel 6c00badd95 Fixed Typo on AddRequest.getAttribute 2013-10-08 19:57:53 +02:00
Lloyd Hilaiel 04eab4716c allow binding ldap server on an ephemeral port 2013-05-27 14:49:44 -06:00