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

passport-ldapauth

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-ldapauth - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

CHANGES.md
## Changes
* v0.1.1
* Documentation changes due to renaming git repository of `ldapauth-fork`
* v0.1.0
* Use [ldapauth-fork](https://github.com/vesse/node-ldapauth) instead of
* Use [ldapauth-fork](https://github.com/vesse/node-ldapauth-fork) instead of
[ldapauth](https://github.com/trentm/node-ldapauth)

@@ -6,0 +8,0 @@ * ldapjs upgraded to 0.6.3

@@ -14,3 +14,3 @@ {

],
"version": "0.1.0",
"version": "0.1.1",
"license": {

@@ -17,0 +17,0 @@ "type": "MIT",

# passport-ldapauth
[Passport](http://passportjs.org/) authentication strategy against LDAP server. This module is a Passport strategy wrapper for [ldapauth-fork](https://github.com/vesse/node-ldapauth)
[Passport](http://passportjs.org/) authentication strategy against LDAP server. This module is a Passport strategy wrapper for [ldapauth-fork](https://github.com/vesse/node-ldapauth-fork)

@@ -49,3 +49,3 @@ ## Usage

* `server`: LDAP settings. These are passed directly to [ldapauth-fork](https://github.com/vesse/node-ldapauth). See its documentation for all available options.
* `server`: LDAP settings. These are passed directly to [ldapauth-fork](https://github.com/vesse/node-ldapauth-fork). See its documentation for all available options.
* `url`: e.g. `ldap://localhost:389`

@@ -101,4 +101,32 @@ * `adminDn`: e.g. `cn='root'`

### Active Directory over SSL example
Since this is quite common scenario in corporate environments including a simple
base options creation when using `ldaps://` and needing to pass a certficate.
```javascript
var opts = {
server: {
url: 'ldaps://ad.corporate.com:636',
adminDn: 'non-person@corporate.com',
adminPassword: 'secret',
searchBase: 'dc=corp,dc=corporate,dc=com',
searchFilter: '(&(objectcategory=person)(objectclass=user)(|(samaccountname={{username}})(mail={{username}})))',
searchAttributes: ['displayName', 'mail'],
tlsOptions: {
ca: null
}
}
};
opts.server.tlsOptions.ca = [
fs.readFileSync('/path/to/root_ca_cert.crt')
];
...
```
## License
MIT
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