Socket
Book a DemoInstallSign in
Socket

ldap-simple-tool

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldap-simple-tool

## What is it

1.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

ldap-simple-tool

What is it

This is a simple ldap tool inspired by https://github.com/shanghai-edu/ldap-test-tool.

How to use it

cli usage

  • Installation

    • If you have node installed, simple execute npm i -g ldap-simple-tool or yarn global add ldap-simple-tool or download ldap-simple-tool.

    • If you do not have node, download the latest binary according to your OS platform in release page.

  • Download the template config file via https://raw.githubusercontent.com/liudonghua123/ldap-simple-tool/master/cfg.conf.example, modify according to your actual environment. Place it in the cwd, the location of the script or the homedir, the priority of config location is cwd > script > homedir.

  • Run ldap-simple-tool in a terminal.

lib usage

  • npm i ldap-simple-tool or yarn add ldap-simple-tool

  • import and use it

    const { check, auth, search, filter } = require('ldap-simple-tool');
    // ...
    let authenticated = await check({ addr, bindDn, bindPass, tls, startTLS });
    let authResults = await auth({ addr, baseDn, bindDn, bindPass, authFilter, tls, startTLS }, [
      _,
      usernameOrFilePath,
      userPasswordOptional,
    ]);
    let searchResults = await search({ addr, baseDn, bindDn, bindPass, authFilter, tls, startTLS }, [
      _,
      usernameOrFilePath,
    ]);
    let filterResults = await filter({ addr, baseDn, bindDn, bindPass, authFilter, tls, startTLS }, [_, expression]);
    

Todos

  • add travis ci support.
  • shrink the binary size.
  • add more useful features.

Snapshots

asciicast

LICENSE

MIT License

Copyright (c) 2020 liudonghua

Keywords

ldap

FAQs

Package last updated on 13 Apr 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.