Socket
Socket
Sign inDemoInstall

unpm-auth-ldap

Package Overview
Dependencies
20
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    unpm-auth-ldap

Use an ldap server to auth for your private npm


Version published
Weekly downloads
1
Maintainers
1
Install size
1.04 MB
Created
Weekly downloads
 

Readme

Source

unpm-auth-ldap

Use ldap as authentication for your private npm.

Usage

  1. First you must have unpm installed. See https://github.com/hayes/unpm
  2. In the unpm directory do npm install unpm-auth-ldap
  3. Alter the unpm/lib/config.json make it look like
  "auth" : {
    "authenticated_gets": true,
    "whitelist": ["/_session"],
    "module" : "unpm-auth-ldap",
    "config": {
      "url": "ldap://my.ldap.com:389",
      "searchBase": "ou=Users,dc=dago2",
      "searchFilter": "(uid={{username}})",
      "verbose": true
    }
  }

The config section is from ldapauth. See https://www.npmjs.org/package/ldapauth-fork for config

.npmrc

To help store your ldap credentials in a .npmrc file, you can use this small util:

npm install unpm-auth-ldap -g
generate-ldap-npmrc <username> <password> <email>

Where username and password are your ldap credentials.

FAQs

Last updated on 14 May 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc