Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/node-red-contrib-ldap
https://github.com/hardillb/node-red-contrib-ldap
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hardillb/node-red-contrib-ldap
- Owner: hardillb
- Created: 2014-10-18T20:00:52.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-11-04T10:08:42.000Z (about 3 years ago)
- Last Synced: 2024-11-14T10:38:48.728Z (2 months ago)
- Language: HTML
- Size: 34.2 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node-red-contrib-ldap
=====================A basic LDAP search node
Supports connecting to ldap servers with or without a DN/Password to bind to and with TLS support
The filter is a Mustache (http://mustache.github.io/) template that will match against the whole msg object. So if you have a msg object that looks like this:
```
{
topic: 'ldap',
payload: {
foo: 'bar',
email: '[email protected]'
},
_msgid: '32ff28b4.cd00d8'
}
```You can build a filter that looks like this:
```
mail={{payload.email}}
```Example flow using the forumsys.com public test ldap (http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/)
```
[{"id":"fb0e4.fff04f1c","type":"ldap","server":"ldap.forumsys.com","port":"389"},{"id":"c9a5fbe9.365a08","type":"debug","name":"","active":true,"console":"false","complete":"false","x":551,"y":373,"z":"9f919f80.606e6","wires":[]},{"id":"6f998816.906678","type":"inject","name":"","topic":"","payload":"gauss","payloadType":"string","repeat":"","crontab":"","once":false,"x":197,"y":371,"z":"9f919f80.606e6","wires":[["f032bf20.0fcd4"]]},{"id":"f032bf20.0fcd4","type":"ldap out","name":"","topic":"","base":"dc=example,dc=com","filter":"uid={{payload}}","server":"fb0e4.fff04f1c","x":386,"y":359,"z":"9f919f80.606e6","wires":[["c9a5fbe9.365a08"]]}]
```