passport-ldapauth
Advanced tools
Comparing version 0.1.0 to 0.1.1
## 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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18505
131