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

ldap-agent

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldap-agent

Join array between expression for NodeJS

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by20%
Maintainers
1
Weekly downloads
 
Created
Source

Ldap-Agent

Join array between expression for NodeJS

What's this?

This is a library for manage ldap database

Installation

Ldap-Agent requires Node.js v8+ to run.

Install the dependencies and start the server.

$ cd yourProject
$ npm install ldap-agent --save

Examples

Array

Code:

// Import
const BetweenJoin = require('ldap-agent');
// Properties
// Array
const array = ['Hola', 'Mundo'];
// Expression
const expression = '[$1]';
// Response
const response = BetweenJoin(array, expression);
// Print
console.log(response);

Output

[Hello][World]

Object

Code:

// Module
const LdapAgent = require('ldap-agent');

// Config
const config = {
  cn: ['admin'],
  dc: ['test', 'com'],
  url: 'ldap://127.0.0.1:389',
  password: '123456',
};

// Init client
const Client = new LdapAgent(config);

/* Connection */
Client.Init((connectError) => {
  // Error handler
  if (connectError) {
    console.error(`Error connection: ${connectError.message}`);
    return;
  }
  // Connection ready
  console.log('Connected to ldap server (callback)');
});

For more examples, see '/examples' folder on git repository

FAQs

Package last updated on 14 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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