[ { "id": "ed631a368b98158b", "type": "comment", "name": "Safe write actions - DRY RUN", "info": "Configure the AD config node first and replace the example users/groups. **All three write nodes are configured with Dry run enabled.** They resolve the target and report what would change, but do not modify Active Directory. Only disable Dry run after testing the exact flow and input values.\n\nConnection: choose LDAP/LDAPS (LDAPS default), enter Domain/DC and optional port. Enter bind credentials only in AD Config. TLS is not configurable through messages.\n\nmsg.ad.dryRun=true also protects each Inject. Keep both node and message dry-run settings enabled. Set attribute overrides: msg.ad.attribute, msg.ad.attributeAction, msg.ad.valueType and msg.ad.value. See examples 06–08 for lists, DN resolution and read/edit/replace. Multivalued set replaces the whole list.", "x": 180, "y": 80, "wires": [] }, { "id": "c69e0db1ff5a7a37", "type": "inject", "name": "Dry run: disable JohnSmith", "props": [ { "p": "ad.user", "v": "JohnSmith", "vt": "str" }, { "p": "ad.action", "v": "disable", "vt": "str" }, { "p": "ad.dryRun", "v": "true", "vt": "bool" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 190, "y": 180, "wires": [ [ "4d3daa84020db872" ] ] }, { "id": "4d3daa84020db872", "type": "ms-ad-user-account-action", "name": "", "configName": "f444d874e057e59f", "baseDN": "", "userSearchField": "auto", "outputProperty": "payload", "action": "disable", "dryRun": true, "x": 500, "y": 180, "wires": [ [ "b8d982680947b39a" ], [ "7300f1ec9ec1a412" ] ], "customInputPaths": false }, { "id": "b8d982680947b39a", "type": "debug", "name": "User action success", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 790, "y": 150, "wires": [] }, { "id": "7300f1ec9ec1a412", "type": "debug", "name": "User action error", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 790, "y": 210, "wires": [] }, { "id": "d7d69f7f738006b0", "type": "inject", "name": "Dry run: add group member", "props": [ { "p": "ad.user", "v": "JohnSmith", "vt": "str" }, { "p": "ad.group", "v": "VPN Users", "vt": "str" }, { "p": "ad.desiredState", "v": "present", "vt": "str" }, { "p": "ad.dryRun", "v": "true", "vt": "bool" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 190, "y": 330, "wires": [ [ "26666ae46556967a" ] ] }, { "id": "26666ae46556967a", "type": "ms-ad-group-membership-action", "name": "", "configName": "f444d874e057e59f", "baseDN": "", "groupSearchField": "auto", "outputProperty": "payload", "desiredState": "present", "dryRun": true, "x": 520, "y": 330, "wires": [ [ "e822bc06c63c2416" ], [ "216b80d051ce8468" ] ], "userSearchField": "auto", "customInputPaths": false }, { "id": "e822bc06c63c2416", "type": "debug", "name": "Membership success", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 820, "y": 300, "wires": [] }, { "id": "216b80d051ce8468", "type": "debug", "name": "Membership error", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 820, "y": 360, "wires": [] }, { "id": "695a502a47f1f525", "type": "inject", "name": "Dry run: set telephoneNumber", "props": [ { "p": "ad.user", "v": "JohnSmith", "vt": "str" }, { "p": "ad.value", "v": "12345", "vt": "str" }, { "p": "ad.dryRun", "v": "true", "vt": "bool" }, { "p": "ad.attribute", "v": "telephoneNumber", "vt": "str" }, { "p": "ad.attributeAction", "v": "set", "vt": "str" }, { "p": "ad.valueType", "v": "string", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 200, "y": 480, "wires": [ [ "d1b7c61bd7ea4316" ] ] }, { "id": "d1b7c61bd7ea4316", "type": "ms-ad-set-user-attribute", "name": "", "configName": "f444d874e057e59f", "baseDN": "", "userSearchField": "auto", "attribute": "telephoneNumber", "action": "set", "valueType": "string", "value": "", "outputProperty": "payload", "dryRun": true, "x": 520, "y": 480, "wires": [ [ "e6301e103723abd0" ], [ "c7c255bb40deffbe" ] ], "customInputPaths": false }, { "id": "e6301e103723abd0", "type": "debug", "name": "Attribute success", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 810, "y": 450, "wires": [] }, { "id": "c7c255bb40deffbe", "type": "debug", "name": "Attribute error", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 810, "y": 510, "wires": [] }, { "id": "f444d874e057e59f", "type": "ms-ad-config", "name": "Example Active Directory - CONFIGURE ME", "baseDN": "DC=example,DC=com", "tlsEnabled": true, "rejectUnauthorized": true, "tlsServername": "", "caCert": "", "caCertPath": "", "protocol": "ldaps", "host": "dc.example.com", "port": "" } ]