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

@cepharum/simple-ldap

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cepharum/simple-ldap - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

50

package.json
{
"name": "@cepharum/simple-ldap",
"version": "0.1.0",
"description": "simple LDAP service exposing user accounts defined in local JSON file",
"main": "index.js",
"scripts": {
"start": "node server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "cepharum GmbH",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://gitlab.com/cepharum-foss/simple-ldap.git"
},
"bugs": {
"url": "https://gitlab.com/cepharum-foss/simple-ldap/-/issues"
},
"homepage": "https://gitlab.com/cepharum-foss/simple-ldap#simple-ldap",
"files": [
"server.js"
],
"dependencies": {
"ldapjs": "^2.2.1"
}
"name": "@cepharum/simple-ldap",
"version": "0.1.1",
"description": "simple LDAP service exposing user accounts defined in local JSON file",
"main": "index.js",
"scripts": {
"start": "node server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "cepharum GmbH",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://gitlab.com/cepharum-foss/simple-ldap.git"
},
"bugs": {
"url": "https://gitlab.com/cepharum-foss/simple-ldap/-/issues"
},
"homepage": "https://gitlab.com/cepharum-foss/simple-ldap#simple-ldap",
"files": [
"server.js"
],
"dependencies": {
"ldapjs": "^2.2.2"
}
}

@@ -161,6 +161,9 @@ const File = require( "fs" );

case "base" :
case "sub" :
if ( req.filter.matches( RootNode.attributes ) ) {
case "sub" : {
const attributes = Object.assign( {}, RootNode.attributes );
if ( req.filter.matches( attributes ) ) {
if ( _offset-- < 1 ) {
res.send( RootNode );
res.send( { dn: RootNode.dn, attributes } );
if ( ++count >= limit ) {

@@ -172,2 +175,3 @@ done( count );

}
}
}

@@ -182,6 +186,8 @@

const item = db[i];
const attributes = Object.assign( {}, item.attributes );
if ( req.filter.matches( item.attributes ) ) {
if ( req.filter.matches( attributes ) ) {
if ( _offset-- < 1 ) {
res.send( item );
res.send( { dn: item.dn, attributes } );
if ( ++count >= limit ) {

@@ -222,6 +228,8 @@ done( count );

const item = db[i];
const attributes = Object.assign( {}, item.attributes );
if ( req.dn.equals( item.dn ) && req.filter.matches( item.attributes ) ) {
if ( req.dn.equals( item.dn ) && req.filter.matches( attributes ) ) {
if ( _offset-- < 1 ) {
res.send( item );
res.send( { dn: item.dn, attributes } );
if ( ++count >= limit ) {

@@ -228,0 +236,0 @@ done( count );

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