Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ldapjs

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldapjs - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

tst/laundry.test.js

4

docs/client.md
---
title: ldapjs
title: Client API | ldapjs
markdown2extras: wiki-tables

@@ -9,3 +9,3 @@ logo-color: green

# Overview
# ldapjs Client API

@@ -12,0 +12,0 @@ This document covers the ldapjs client API and assumes that you are familiar

---
title: ldapjs
title: DN API | ldapjs
markdown2extras: wiki-tables

@@ -9,3 +9,3 @@ logo-color: green

# Overview
# ldapjs DN API

@@ -12,0 +12,0 @@ This document covers the ldapjs DN API and assumes that you are familiar

---
title: ldapjs
brand: spartan
title: Errors API | ldapjs
markdown2extras: wiki-tables

@@ -10,3 +9,3 @@ logo-color: green

# Overview
# ldapjs Errors API

@@ -13,0 +12,0 @@ This document covers the ldapjs errors API and assumes that you are familiar

---
title: ldapjs
brand: spartan
title: Examples | ldapjs
markdown2extras: wiki-tables

@@ -10,3 +9,3 @@ logo-color: green

# Overview
# ldapjs Examples

@@ -13,0 +12,0 @@ This page contains a (hopefully) growing list of sample code to get you started

---
title: ldapjs
title: Filters API | ldapjs
markdown2extras: wiki-tables

@@ -9,3 +9,3 @@ logo-color: green

# Overview
# ldapjs Filters API

@@ -208,8 +208,8 @@ This document covers the ldapjs filters API and assumes that you are familiar

attribute: 'cn',
value: 'foo'
value: 'foo'
}),
new EqualityFilter({
new EqualityFilter({
attribute: 'sn',
value: 'bar'
})
value: 'bar'
})
]

@@ -239,8 +239,8 @@ });

attribute: 'cn',
value: 'foo'
value: 'foo'
}),
new EqualityFilter({
new EqualityFilter({
attribute: 'sn',
value: 'bar'
})
value: 'bar'
})
]

@@ -269,3 +269,3 @@ });

attribute: 'cn',
value: 'foo'
value: 'foo'
})

@@ -272,0 +272,0 @@ });

---
title: ldapjs
brand: spartan
title: LDAP Guide | ldapjs
markdown2extras: wiki-tables

@@ -10,3 +9,3 @@ logo-color: green

# This guide
# LDAP Guide

@@ -104,5 +103,7 @@ This guide was written assuming that you (1) don't know anything about ldapjs,

/etc/passwd and /etc/group files. Usually sysadmins "go the other way," and
replace /etc/passwd with a PAM module to LDAP. While this is probably not
a super useful real-world use case, it will teach you some of the basics.
If it is useful to you, then that's gravy.
replace /etc/passwd with a
[PAM](http://en.wikipedia.org/wiki/Pluggable_authentication_module "Pluggable
authentication module") module to LDAP. While this is probably not a super
useful real-world use case, it will teach you some of the basics. If it is
useful to you, then that's gravy.

@@ -215,3 +216,3 @@ ## Install

Remember earlier I said there was no authorization rules baked into LDAP? Well,
Remember earlier I said there were no authorization rules baked into LDAP? Well,
we added a bind route, so the only user that can authenticate is `cn=root`, but

@@ -250,3 +251,3 @@ what if the remote end doesn't authenticate at all? Right, nothing says they

Let's some handlers to parse that and transform it into an LDAP search
Let's write some handlers to parse that and transform it into an LDAP search
record (note, you'll need to add `var fs = require('fs');` at the top of the

@@ -253,0 +254,0 @@ source file).

@@ -27,6 +27,6 @@ ---

dn: req.dn.toString(),
attributes: {
objectclass: ['organization', 'top'],
o: 'example'
}
attributes: {
objectclass: ['organization', 'top'],
o: 'example'
}
};

@@ -54,3 +54,3 @@

LDAPv3-compliant implementation. ldapjs gives you a powerful routing and
intercepting filter" pattern for implementing server(s). It is intended
"intercepting filter" pattern for implementing server(s). It is intended
that you can build LDAP over anything you want, not just traditional databases.

@@ -57,0 +57,0 @@

---
title: ldapjs
brand: spartan
title: Server API | ldapjs
markdown2extras: wiki-tables

@@ -10,3 +9,3 @@ logo-color: green

# Overview
# ldapjs Server API

@@ -271,3 +270,3 @@ This document covers the ldapjs server API and assumes that you are familiar

sn: ['bar'],
objectclass: ['person', 'top']
objectclass: ['person', 'top']
}

@@ -350,6 +349,6 @@ }

dn: 'o=example',
attributes: {
objectclass: ['top', 'organization'],
o: ['example']
}
attributes: {
objectclass: ['top', 'organization'],
o: ['example']
}
};

@@ -372,3 +371,3 @@

console.log(' operation: ' + c.operation);
console.log(' modification: ' + c.modification.toString());
console.log(' modification: ' + c.modification.toString());
});

@@ -375,0 +374,0 @@ res.end();

@@ -125,5 +125,5 @@ // Copyright 2011 Mark Cavage, Inc. All rights reserved.

this.currentConnection = 0;
this.connectOptions = options.socketPath ? options.socketPath : {
port: self.url.port,
host: self.url.hostname
this.connectOptions = {
port: self.url ? self.url.port : options.socketPath,
host: self.url ? self.url.hostname : undefined
};

@@ -143,5 +143,6 @@ this.shutdown = false;

if (self.secure) {
c = tls.createConnection(self.connectOptions);
c = tls.connect(self.connectOptions.port, self.connectOptions.host);
} else {
c = net.createConnection(self.connectOptions);
c = net.createConnection(self.connectOptions.port,
self.connectOptions.host);
}

@@ -148,0 +149,0 @@ assert.ok(c);

@@ -18,4 +18,9 @@ // Copyright 2011 Mark Cavage, Inc. All rights reserved.

u.secure = (u.protocol === 'ldaps:');
if (!u.hostname)
u.hostname = 'localhost';
if (!u.port) {
u.port = 389;
u.port = (u.secure ? 636 : 389);
} else {

@@ -25,7 +30,2 @@ u.port = parseInt(u.port, 10);

if (!u.hostname)
u.hostname = 'localhost';
u.secure = (u.protocol === 'ldaps:');
if (u.pathname) {

@@ -32,0 +32,0 @@ u.pathname = querystring.unescape(u.pathname.substr(1));

@@ -6,3 +6,3 @@ {

"description": "LDAP client and server APIs",
"version": "0.1.0",
"version": "0.1.1",
"repository": {

@@ -9,0 +9,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc