Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit d9515da

Browse files
committed
Update URL to use port Add acttivedirectory as keyword
1 parent 1804de3 commit d9515da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"keywords": [
1414
"better",
1515
"ldap",
16+
"activedirectory",
1617
"redconnect"
1718
],
1819
"node-red": {

transports/ldap/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ module.exports = function (RED) {
2828
let ldap = require('./ldap');
2929
node.status({ fill:"blue",shape:"dot",text: 'connecting' });
3030
try {
31-
await ldap.connect(node.ldapConfig.options.host, node.ldapConfig.credentials.username, node.ldapConfig.credentials.password);
31+
let url = `${node.ldapConfig.options.host}:${node.ldapConfig.options.port}`;
32+
await ldap.connect(url, node.ldapConfig.credentials.username, node.ldapConfig.credentials.password);
3233
node.status({ fill: 'green', shape: 'dot', text: 'connected' });
3334

3435
await ldap.update(node.dn, node.operation, node.attribute, node.value);

0 commit comments

Comments
 (0)