4032 lines
101 KiB
JSON
4032 lines
101 KiB
JSON
[
|
|
{
|
|
"id": "379c65a27117b46c",
|
|
"type": "tab",
|
|
"label": "HTTP",
|
|
"disabled": false,
|
|
"info": "# HTTP Flow\n\nThi flow contains the HTTP nodes for requests and responses.",
|
|
"env": [
|
|
{
|
|
"name": "user_data",
|
|
"value": "userdata/",
|
|
"type": "str"
|
|
},
|
|
{
|
|
"name": "http_path",
|
|
"value": "/mysite",
|
|
"type": "str"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "42b9663b67dbd983",
|
|
"type": "tab",
|
|
"label": "Files",
|
|
"disabled": false,
|
|
"info": "",
|
|
"env": [
|
|
{
|
|
"name": "page_logo",
|
|
"value": "http://nofusscomputing.com/assets/nfc_revamp_dark.png",
|
|
"type": "str"
|
|
},
|
|
{
|
|
"name": "page_logo_width",
|
|
"value": "282",
|
|
"type": "num"
|
|
},
|
|
{
|
|
"name": "page_logo_height",
|
|
"value": "90",
|
|
"type": "num"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "4b5e055cd6b1e387",
|
|
"type": "tab",
|
|
"label": "Form Processing",
|
|
"disabled": false,
|
|
"info": "",
|
|
"env": [
|
|
{
|
|
"name": "itsm_search",
|
|
"value": "true",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"name": "itsm_platform",
|
|
"value": "glpi",
|
|
"type": "str"
|
|
},
|
|
{
|
|
"name": "itsm_create_ticket",
|
|
"value": "true",
|
|
"type": "bool"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "8179bf22c4c31682",
|
|
"type": "tab",
|
|
"label": "Functions",
|
|
"disabled": false,
|
|
"info": "# Functions\n\nContained within are reusable functions.",
|
|
"env": []
|
|
},
|
|
{
|
|
"id": "8ad5fe68ad170e2d",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "Form: Password Reset Questions",
|
|
"style": {
|
|
"stroke": "#0070c0",
|
|
"fill": "#bfdbef",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"02c4b9524d361ade",
|
|
"365ba07c1f4721ec",
|
|
"50339f503fd4878d",
|
|
"591e68e90f876dd1",
|
|
"7e95892f2f3454b7",
|
|
"9b89c2da58fccb8d",
|
|
"99a3fa75430c37f7",
|
|
"b2c917da9e845f7a",
|
|
"5798e39cbc3730ae",
|
|
"52dc13e1fdbf064d",
|
|
"d460346f6ae1673b"
|
|
],
|
|
"x": 154,
|
|
"y": 819,
|
|
"w": 1912,
|
|
"h": 122
|
|
},
|
|
{
|
|
"id": "ad0235dd3aa9eb7d",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "Form: Password Reset",
|
|
"style": {
|
|
"stroke": "#0070c0",
|
|
"fill": "#bfdbef",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"2dc375bf57ad8daa",
|
|
"1ce803b83ecf1593",
|
|
"f3b55ea2.f4d51",
|
|
"bf098463143ac8ad",
|
|
"457583335831f826",
|
|
"317930c679e833d1"
|
|
],
|
|
"x": 154,
|
|
"y": 679,
|
|
"w": 1092,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "1c5c6c543ef047b6",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "Home Page",
|
|
"style": {
|
|
"stroke": "#0070c0",
|
|
"fill": "#bfdbef",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"0172c4a240b566fd",
|
|
"2106525aa2ebda7d",
|
|
"4ecc0631139b51e0",
|
|
"2f628eec7ca4b343"
|
|
],
|
|
"x": 154,
|
|
"y": 299,
|
|
"w": 812,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "a64f4a2c837d5c3c",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "Error Page",
|
|
"style": {
|
|
"stroke": "#ffC000",
|
|
"fill": "#ffefbf",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"fd80fd11fc971e2c",
|
|
"274e4e6606cb379a",
|
|
"50d19d3ce5cf88f2",
|
|
"e5ae19af5f6d6561",
|
|
"781d23c946457b30"
|
|
],
|
|
"x": 1314,
|
|
"y": 19,
|
|
"w": 812,
|
|
"h": 122
|
|
},
|
|
{
|
|
"id": "a8e6ecf8ae37659e",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "HTML Page Template",
|
|
"style": {
|
|
"stroke": "#6f2fa0",
|
|
"fill": "#dbcbe7",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"3ec10e706b7bdc9d",
|
|
"8bdcaea510dbad1e",
|
|
"6fc3fe2eef3733b0"
|
|
],
|
|
"x": 154,
|
|
"y": 19,
|
|
"w": 692,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "0abe2cea5975dcfd",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "Account Details",
|
|
"style": {
|
|
"stroke": "#0070c0",
|
|
"fill": "#bfdbef",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"e50f46892eabd2a5",
|
|
"46ef4f0739d6c1b8",
|
|
"1d661b2385de4b4a",
|
|
"c9323e9dc74c9203"
|
|
],
|
|
"x": 154,
|
|
"y": 419,
|
|
"w": 812,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "07f2249ad4b7ccd0",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "Change Password",
|
|
"style": {
|
|
"stroke": "#0070c0",
|
|
"fill": "#bfdbef",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"b5cedc58894f707e",
|
|
"54b1149ed3d047fe",
|
|
"0c2e73371d4238a1",
|
|
"dcfa3cfba4eb1356"
|
|
],
|
|
"x": 154,
|
|
"y": 539,
|
|
"w": 812,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "d3393ec35cb20a93",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "",
|
|
"style": {
|
|
"label": true,
|
|
"stroke": "#92d04f",
|
|
"fill": "#e3f3d3"
|
|
},
|
|
"nodes": [
|
|
"a702d39f0f3180de",
|
|
"3502d9cf69680b66",
|
|
"f1dcd5b6e32fb905"
|
|
],
|
|
"x": 164,
|
|
"y": 139,
|
|
"w": 462,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "3e330505ea1e9cba",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "",
|
|
"style": {
|
|
"stroke": "#ff0000",
|
|
"fill": "#ffbfbf",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"c8c3f9c8f2ee35ee",
|
|
"602e7197835bba91",
|
|
"b664f0b9e6c17ad6"
|
|
],
|
|
"x": 674,
|
|
"y": 139,
|
|
"w": 492,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "b447a1f691eb02df",
|
|
"type": "group",
|
|
"z": "42b9663b67dbd983",
|
|
"name": "Logout",
|
|
"style": {
|
|
"stroke": "#0070c0",
|
|
"fill": "#bfdbef",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"fb5301abffede979",
|
|
"1102d30391c745a6",
|
|
"988765ea19236af0",
|
|
"b19bd0621d479d66"
|
|
],
|
|
"x": 154,
|
|
"y": 999,
|
|
"w": 812,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "0d96945ec7d069cb",
|
|
"type": "group",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "Returns: dict, msg.hash",
|
|
"style": {
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"0eeaba70b043a226",
|
|
"9c9c7bbd71c78d8e",
|
|
"43eebf1623f29074",
|
|
"8fadd3c4294a6939",
|
|
"540882a95f65754c"
|
|
],
|
|
"x": 94,
|
|
"y": 159,
|
|
"w": 972,
|
|
"h": 109.5
|
|
},
|
|
{
|
|
"id": "bcd2727d77a80ce3",
|
|
"type": "group",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "Returns: string, msg.filename",
|
|
"style": {
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"8c13bbcc86d93be8",
|
|
"a35b8cc53c276d62",
|
|
"858268a5d48a4486",
|
|
"998b007182d85455",
|
|
"0f2ff2f433d17eef"
|
|
],
|
|
"x": 94,
|
|
"y": 319,
|
|
"w": 912,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "3b96ab15b1a54e33",
|
|
"type": "group",
|
|
"z": "4b5e055cd6b1e387",
|
|
"name": "Save Password Reset Questions",
|
|
"style": {
|
|
"stroke": "#ff0000",
|
|
"fill": "#7fb7df",
|
|
"label": true,
|
|
"color": "#ffff00"
|
|
},
|
|
"nodes": [
|
|
"bb8102ee0c070ff2",
|
|
"629b7df0515c7d83",
|
|
"a712f5e2056bbb1b",
|
|
"e9f50265154e4b83",
|
|
"1e3c2b23420d6e40",
|
|
"cee76f9f914dd0fa",
|
|
"fba98a197970c6ee",
|
|
"edf62fa2ca3cd812",
|
|
"5210f540af1eb2e5",
|
|
"96836f5a4c7c756c",
|
|
"6ec9911b7ad7d042",
|
|
"3f128f23d72e0492",
|
|
"7ce13238fa87d636",
|
|
"8b70b96b1f62a785",
|
|
"858fd2b2fac0f719"
|
|
],
|
|
"x": 134,
|
|
"y": 119,
|
|
"w": 2312,
|
|
"h": 182
|
|
},
|
|
{
|
|
"id": "10a6c6b12749dda9",
|
|
"type": "group",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "Returns: string msg.payload",
|
|
"style": {
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"804feccd90b3276c",
|
|
"869469819396a632",
|
|
"c4e40d6f6678bb55",
|
|
"e62119d30db09cce"
|
|
],
|
|
"x": 94,
|
|
"y": 459,
|
|
"w": 832,
|
|
"h": 122
|
|
},
|
|
{
|
|
"id": "9b1493c4ae19a935",
|
|
"type": "group",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "ITSM Selection",
|
|
"style": {
|
|
"fill": "#e3f3d3",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"b8c9f1cf125efd2e",
|
|
"f5cae04225998e3b",
|
|
"002457f33834fc91",
|
|
"d4d1ce730aa1c15b",
|
|
"9858d84dc9d001be",
|
|
"6840ab77f76439db"
|
|
],
|
|
"x": 94,
|
|
"y": 639,
|
|
"w": 1238,
|
|
"h": 454
|
|
},
|
|
{
|
|
"id": "c41dc5b999e5cc21",
|
|
"type": "group",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "a9d52eb951c5f037",
|
|
"name": "Search LDAP for user",
|
|
"style": {
|
|
"stroke": "#ff0000",
|
|
"fill": "#dbcbe7",
|
|
"label": true,
|
|
"color": "#777777"
|
|
},
|
|
"nodes": [
|
|
"311e184a2397eb19",
|
|
"faa5e7380a3092a2",
|
|
"fe1f0a50300d9224",
|
|
"b10e8a45ff44f80d",
|
|
"0308c42b587c3794",
|
|
"04818ddd8782b0a1"
|
|
],
|
|
"x": 494,
|
|
"y": 379,
|
|
"w": 1032,
|
|
"h": 122
|
|
},
|
|
{
|
|
"id": "aea0a3398dafab4c",
|
|
"type": "group",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "a9d52eb951c5f037",
|
|
"name": "Invalid User Response",
|
|
"style": {
|
|
"stroke": "#ff0000",
|
|
"fill": "#e3f3d3",
|
|
"label": true,
|
|
"color": "#777777"
|
|
},
|
|
"nodes": [
|
|
"72721ec69edf230f",
|
|
"8eca6e69b809790c"
|
|
],
|
|
"x": 2054,
|
|
"y": 699,
|
|
"w": 512,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "9858d84dc9d001be",
|
|
"type": "group",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9b1493c4ae19a935",
|
|
"name": "GLPI",
|
|
"style": {
|
|
"fill": "#d1d1d1",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"160bc27f7530e52d",
|
|
"269cbacf5274d6d8",
|
|
"4cdb1540cd4c8744",
|
|
"0676d69c05236349",
|
|
"edbb6827a8b33085",
|
|
"f9d8741c4385a7eb",
|
|
"ed0645c12f7435b2"
|
|
],
|
|
"x": 154,
|
|
"y": 819,
|
|
"w": 1152,
|
|
"h": 248
|
|
},
|
|
{
|
|
"id": "a9d52eb951c5f037",
|
|
"type": "group",
|
|
"z": "4b5e055cd6b1e387",
|
|
"name": "Password Reset",
|
|
"style": {
|
|
"stroke": "#ff0000",
|
|
"fill": "#7fb7df",
|
|
"label": true,
|
|
"color": "#ffff00"
|
|
},
|
|
"nodes": [
|
|
"c41dc5b999e5cc21",
|
|
"aea0a3398dafab4c",
|
|
"cdde8116fcac6e5d",
|
|
"4cdbeaa8f5f3ddb7",
|
|
"82ccba0e0a13970a",
|
|
"20eb97dd0c088b3d",
|
|
"5e535ca826ad969c",
|
|
"d0dc259791aed430"
|
|
],
|
|
"x": 134,
|
|
"y": 353,
|
|
"w": 2632,
|
|
"h": 614
|
|
},
|
|
{
|
|
"id": "82ccba0e0a13970a",
|
|
"type": "group",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "a9d52eb951c5f037",
|
|
"name": "Respond: Success",
|
|
"style": {
|
|
"stroke": "#6f2fa0",
|
|
"fill": "#e3f3d3",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"b1bc2e62654b04e2",
|
|
"f125e4c474dd2e5c"
|
|
],
|
|
"x": 2054,
|
|
"y": 599,
|
|
"w": 512,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "20eb97dd0c088b3d",
|
|
"type": "group",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "a9d52eb951c5f037",
|
|
"name": "ITSM Search",
|
|
"style": {
|
|
"stroke": "#ff0000",
|
|
"fill": "#dbcbe7",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"4a4676456c27f256",
|
|
"a43bd1f944ef851c",
|
|
"eeb2b5a4e44d0c24",
|
|
"bc29c53d4ef04184",
|
|
"68628b6f32ec8b74",
|
|
"dbeedddce12963de",
|
|
"445623ba528e5df1",
|
|
"58d1108b52842808",
|
|
"f6fc2010d0af1e33"
|
|
],
|
|
"x": 354,
|
|
"y": 519,
|
|
"w": 1392,
|
|
"h": 142
|
|
},
|
|
{
|
|
"id": "f9d8741c4385a7eb",
|
|
"type": "group",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9858d84dc9d001be",
|
|
"name": "Search for User",
|
|
"style": {
|
|
"fill": "#dbcbe7",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"42f157ed01b737f4",
|
|
"33d710f97adb5298",
|
|
"6aac3151138c4af9"
|
|
],
|
|
"x": 674,
|
|
"y": 859,
|
|
"w": 432,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "ed0645c12f7435b2",
|
|
"type": "group",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9858d84dc9d001be",
|
|
"name": "Create a Ticket",
|
|
"style": {
|
|
"fill": "#dbcbe7",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"d4de6eab89782579"
|
|
],
|
|
"x": 674,
|
|
"y": 959,
|
|
"w": 152,
|
|
"h": 82
|
|
},
|
|
{
|
|
"id": "5e535ca826ad969c",
|
|
"type": "group",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "a9d52eb951c5f037",
|
|
"name": "ITSM: Create Ticket",
|
|
"style": {
|
|
"stroke": "#ff0000",
|
|
"fill": "#dbcbe7",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"8dd7c0779eac59f0",
|
|
"00066fdae59433b8",
|
|
"93434028042529b8",
|
|
"ad66e8c05ee9a664",
|
|
"dce8db9b841faf7f",
|
|
"1a29880acc851ff5"
|
|
],
|
|
"x": 514,
|
|
"y": 679,
|
|
"w": 992,
|
|
"h": 122
|
|
},
|
|
{
|
|
"id": "d0dc259791aed430",
|
|
"type": "group",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "a9d52eb951c5f037",
|
|
"name": "",
|
|
"style": {
|
|
"stroke": "#ff0000",
|
|
"fill": "#dbcbe7",
|
|
"label": true
|
|
},
|
|
"nodes": [
|
|
"07ed8c85583c5a2e",
|
|
"9090daaf8a5892b0",
|
|
"853e6c15b5317007",
|
|
"142f9ce43cb63dd7",
|
|
"c710ba5a1416cfd8",
|
|
"c66c2a0c3817433c",
|
|
"073709e754dd98a3",
|
|
"ec52cbc3aa0fec25"
|
|
],
|
|
"x": 214,
|
|
"y": 819,
|
|
"w": 1712,
|
|
"h": 122
|
|
},
|
|
{
|
|
"id": "5798e39cbc3730ae",
|
|
"type": "junction",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"x": 1240,
|
|
"y": 860,
|
|
"wires": [
|
|
[
|
|
"365ba07c1f4721ec"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "160d0b5ed597dc51",
|
|
"type": "ldap",
|
|
"host": "ldap://ldap",
|
|
"port": "389"
|
|
},
|
|
{
|
|
"id": "1e0841f1.ac68fe",
|
|
"type": "http in",
|
|
"z": "379c65a27117b46c",
|
|
"name": "",
|
|
"url": "/mysite/*",
|
|
"method": "get",
|
|
"upload": false,
|
|
"swaggerDoc": "",
|
|
"x": 250,
|
|
"y": 280,
|
|
"wires": [
|
|
[
|
|
"eae031f35d9a1e9e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1b121b9ecdf14084",
|
|
"type": "switch",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Routing",
|
|
"property": " $split(req.url, '/', limit)[2]",
|
|
"propertyType": "jsonata",
|
|
"rules": [
|
|
{
|
|
"t": "empty"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "details",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "changepassword",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "passwordreset",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "passwordquestions",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "logout",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 7,
|
|
"x": 620,
|
|
"y": 280,
|
|
"wires": [
|
|
[
|
|
"515f363d4f52f625"
|
|
],
|
|
[
|
|
"52395c2abfc3c4f5"
|
|
],
|
|
[
|
|
"333303604fa4ca01"
|
|
],
|
|
[
|
|
"cad86e4a717ecb58"
|
|
],
|
|
[
|
|
"e2876b413d95adf9"
|
|
],
|
|
[
|
|
"68f30ef53ebc2074"
|
|
],
|
|
[
|
|
"12a331c2a036a776"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6dc15589d8863139",
|
|
"type": "debug",
|
|
"z": "379c65a27117b46c",
|
|
"name": "HTTP / Get",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 630,
|
|
"y": 220,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "eae031f35d9a1e9e",
|
|
"type": "change",
|
|
"z": "379c65a27117b46c",
|
|
"name": "",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "client",
|
|
"pt": "msg",
|
|
"to": "req.connection.remoteAddress",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "/mysite/",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 400,
|
|
"y": 280,
|
|
"wires": [
|
|
[
|
|
"1b121b9ecdf14084",
|
|
"6dc15589d8863139"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "e2876b413d95adf9",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Page: Password Reset Questions",
|
|
"mode": "link",
|
|
"links": [
|
|
"02c4b9524d361ade",
|
|
"b202e09db45b339a"
|
|
],
|
|
"x": 980,
|
|
"y": 340,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "cad86e4a717ecb58",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Page: Password Reset",
|
|
"mode": "link",
|
|
"links": [
|
|
"2dc375bf57ad8daa",
|
|
"86d0cb173ed572b5"
|
|
],
|
|
"x": 940,
|
|
"y": 300,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "5de0bbd4.6c8574",
|
|
"type": "http in",
|
|
"z": "379c65a27117b46c",
|
|
"name": "",
|
|
"url": "/mysite/*",
|
|
"method": "post",
|
|
"upload": false,
|
|
"swaggerDoc": "",
|
|
"x": 260,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"482740e98dda9d35",
|
|
"75913f37.78e6e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "75913f37.78e6e",
|
|
"type": "json",
|
|
"z": "379c65a27117b46c",
|
|
"name": "",
|
|
"property": "payload",
|
|
"action": "obj",
|
|
"pretty": false,
|
|
"x": 410,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"539d65720b0ff630"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "482740e98dda9d35",
|
|
"type": "debug",
|
|
"z": "379c65a27117b46c",
|
|
"name": "HTTP / Post",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 530,
|
|
"y": 980,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "3072b7c1fc0fd171",
|
|
"type": "debug",
|
|
"z": "379c65a27117b46c",
|
|
"name": "debug 69",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 740,
|
|
"y": 1060,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "539d65720b0ff630",
|
|
"type": "change",
|
|
"z": "379c65a27117b46c",
|
|
"name": "",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "http",
|
|
"pt": "msg",
|
|
"to": "{}",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "http.client",
|
|
"pt": "msg",
|
|
"to": "req.connection.remoteAddress",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "move",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "http.form",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 540,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"0eb8679ee25c4a34",
|
|
"3072b7c1fc0fd171"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0eb8679ee25c4a34",
|
|
"type": "switch",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Routing",
|
|
"property": " $split(req.url, '/', limit)[2]",
|
|
"propertyType": "jsonata",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "passwordreset",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "passwordquestions",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 3,
|
|
"x": 740,
|
|
"y": 1020,
|
|
"wires": [
|
|
[
|
|
"b7fde07e47cc852e",
|
|
"2189bf4e56868e51"
|
|
],
|
|
[
|
|
"9c92aaf02fee52b5"
|
|
],
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "b7fde07e47cc852e",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Password Reset",
|
|
"mode": "link",
|
|
"links": [
|
|
"cdde8116fcac6e5d"
|
|
],
|
|
"x": 940,
|
|
"y": 980,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "9c92aaf02fee52b5",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Password Reset Questions",
|
|
"mode": "link",
|
|
"links": [
|
|
"bb8102ee0c070ff2"
|
|
],
|
|
"x": 980,
|
|
"y": 1020,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "876431fc89aa2a3d",
|
|
"type": "comment",
|
|
"z": "379c65a27117b46c",
|
|
"name": "HTTP/POST",
|
|
"info": "",
|
|
"x": 250,
|
|
"y": 960,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "7db929503cf13635",
|
|
"type": "link in",
|
|
"z": "379c65a27117b46c",
|
|
"name": "HTTP: Response",
|
|
"links": [
|
|
"0c2e73371d4238a1",
|
|
"1d661b2385de4b4a",
|
|
"4ecc0631139b51e0",
|
|
"50339f503fd4878d",
|
|
"96836f5a4c7c756c",
|
|
"988765ea19236af0",
|
|
"b664f0b9e6c17ad6",
|
|
"bf098463143ac8ad",
|
|
"e5ae19af5f6d6561",
|
|
"f1dcd5b6e32fb905",
|
|
"4cdbeaa8f5f3ddb7",
|
|
"b54c063d6519c463"
|
|
],
|
|
"x": 300,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"e3043367c9a89a90",
|
|
"564400f9ec708521"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "e3043367c9a89a90",
|
|
"type": "http response",
|
|
"z": "379c65a27117b46c",
|
|
"name": "HTTP Response",
|
|
"statusCode": "",
|
|
"headers": {},
|
|
"x": 500,
|
|
"y": 720,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "564400f9ec708521",
|
|
"type": "debug",
|
|
"z": "379c65a27117b46c",
|
|
"name": "HTTP / Response",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 510,
|
|
"y": 680,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "9f59194fecc0976a",
|
|
"type": "switch",
|
|
"z": "379c65a27117b46c",
|
|
"name": "File Name",
|
|
"property": "$split(req.url, '/', limit)[$count($split(req.url, '/', limit)) + 2]\t\t",
|
|
"propertyType": "jsonata",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "style.css",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "common.js",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 3,
|
|
"x": 1710,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"eaeb9e2bfbe1dc95",
|
|
"15721605aaae8a86"
|
|
],
|
|
[
|
|
"e72f08d8fc433bea",
|
|
"1b1ca0bd7037ed0f"
|
|
],
|
|
[
|
|
"f56a55d84eb88baf",
|
|
"28ac8fd21056642c"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "eaeb9e2bfbe1dc95",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "style.css",
|
|
"mode": "link",
|
|
"links": [
|
|
"3502d9cf69680b66"
|
|
],
|
|
"x": 2080,
|
|
"y": 360,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "f56a55d84eb88baf",
|
|
"type": "change",
|
|
"z": "379c65a27117b46c",
|
|
"name": "",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "statusCode",
|
|
"pt": "msg",
|
|
"to": "404",
|
|
"tot": "num"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "http.error",
|
|
"pt": "msg",
|
|
"to": "Not Found",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1960,
|
|
"y": 540,
|
|
"wires": [
|
|
[
|
|
"d81c931de5a63675"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d81c931de5a63675",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "HTTP/404",
|
|
"mode": "link",
|
|
"links": [
|
|
"fd80fd11fc971e2c"
|
|
],
|
|
"x": 2150,
|
|
"y": 540,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "15721605aaae8a86",
|
|
"type": "debug",
|
|
"z": "379c65a27117b46c",
|
|
"name": "CSS File",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 2080,
|
|
"y": 320,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "28ac8fd21056642c",
|
|
"type": "debug",
|
|
"z": "379c65a27117b46c",
|
|
"name": "HTTP / 404",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1950,
|
|
"y": 580,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "12a331c2a036a776",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Fetch Files",
|
|
"mode": "link",
|
|
"links": [
|
|
"acd5690f3865f156"
|
|
],
|
|
"x": 910,
|
|
"y": 420,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "acd5690f3865f156",
|
|
"type": "link in",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Fetch File",
|
|
"links": [
|
|
"12a331c2a036a776"
|
|
],
|
|
"x": 1540,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"9f59194fecc0976a"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "e72f08d8fc433bea",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "common.js",
|
|
"mode": "link",
|
|
"links": [
|
|
"602e7197835bba91"
|
|
],
|
|
"x": 2090,
|
|
"y": 440,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "1b1ca0bd7037ed0f",
|
|
"type": "debug",
|
|
"z": "379c65a27117b46c",
|
|
"name": "JS File",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 2070,
|
|
"y": 400,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "515f363d4f52f625",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Home",
|
|
"mode": "link",
|
|
"links": [
|
|
"0172c4a240b566fd",
|
|
"d810b86dc7c722cd"
|
|
],
|
|
"x": 890,
|
|
"y": 180,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "333303604fa4ca01",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Page: Change Password",
|
|
"mode": "link",
|
|
"links": [
|
|
"b5cedc58894f707e",
|
|
"2ccbf2d475489da8"
|
|
],
|
|
"x": 950,
|
|
"y": 260,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "52395c2abfc3c4f5",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Page: Account Details",
|
|
"mode": "link",
|
|
"links": [
|
|
"e50f46892eabd2a5",
|
|
"a28d15c7a8dfdc85"
|
|
],
|
|
"x": 940,
|
|
"y": 220,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "68f30ef53ebc2074",
|
|
"type": "link out",
|
|
"z": "379c65a27117b46c",
|
|
"name": "Page: Logout",
|
|
"mode": "link",
|
|
"links": [
|
|
"fb5301abffede979"
|
|
],
|
|
"x": 910,
|
|
"y": 380,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "2189bf4e56868e51",
|
|
"type": "debug",
|
|
"z": "379c65a27117b46c",
|
|
"name": "debug 95",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 920,
|
|
"y": 940,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "02c4b9524d361ade",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "HTML: Password Reset Questions",
|
|
"links": [
|
|
"e2876b413d95adf9",
|
|
"28c74c7b39a06100"
|
|
],
|
|
"x": 320,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"7e95892f2f3454b7"
|
|
]
|
|
],
|
|
"icon": "node-red/file.svg",
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "365ba07c1f4721ec",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "HTML",
|
|
"field": "html.body",
|
|
"fieldType": "msg",
|
|
"format": "html",
|
|
"syntax": "mustache",
|
|
"template": " <fieldset id=\"form\" style=\"width: 800px;\">\n <legend style=\"text-align: left;\"><h2>Password reset Questions</h2></legend>\n\n <form method=\"post\" action=\"{{{ url }}}passwordquestions\" ajax=\"true\">\n <p>For ensuring that only you can reset your password, you are required to provide three questions and answers. These questions will then as part of the self-service password reset process to confirm that it's you who is requesting the password reset.</p>\n <p>When choosing your questions, it's important to ensure that the questions that you use, only you would know the answers. This is to ensure that no one could guess the answers as only you would know the answers.</p>\n <p>In the fields below type out your question and answer, don't include punctuation or the use of any special characters. Valid characters are A-Z, a-z and 0-9. Any character entered into the form that are not part of this list will be removed.</p>\n <div id=\"question_multicolumn\">\n <label for=\"q1\">Question One</label>\n <label for=\"a1\">Answer One</label>\n <input type=\"text\" id=\"q1\" name=\"q1\" value=\"{{{ payload.0.question }}}\" placeholder=\"Type Question one here\">\n <input type=\"text\" id=\"a1\" name=\"a1\">\n </div>\n\n <div id=\"question_multicolumn\">\n <label for=\"q2\">Question Two</label>\n <label for=\"a2\">Answer Two</label>\n <input type=\"text\" id=\"q2\" name=\"q2\" value=\"{{{ payload.1.question }}}\">\n <input type=\"text\" id=\"a2\" name=\"a2\">\n </div>\n\n <div id=\"question_multicolumn\">\n <label for=\"q3\">Question Three</label>\n <label for=\"a3\">Answer One</label>\n <input type=\"text\" id=\"q3\" name=\"q3\" value=\"{{{ payload.2.question }}}\">\n <input type=\"text\" id=\"a3\" name=\"a3\">\n </div>\n\n <p>On Form submission, your answers will be hashed before storage. As such, no one will be able to view the answers, this includes you. This method however, still enables us to confirm an answer to a question as would occur during the password reset process.</p>\n\n <input type=\"submit\" value=\"Submit\">\n <button id=\"navigation\" onclick=\"window.location.href='/mysite/';\">Home</button>\n </form>\n </fieldset>\n\n <fieldset id=\"response\">\n <legend style=\"text-align: left;\">Results</legend>\n <span id=\"result\"></span>\n </fieldset>\n <div >\n <span id=\"result\"></span>\n </div>\n",
|
|
"output": "str",
|
|
"x": 1670,
|
|
"y": 860,
|
|
"wires": [
|
|
[
|
|
"591e68e90f876dd1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "50339f503fd4878d",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "HTML Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 1950,
|
|
"y": 860,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "2dc375bf57ad8daa",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "ad0235dd3aa9eb7d",
|
|
"name": "HTML: Password Reset",
|
|
"links": [
|
|
"cad86e4a717ecb58"
|
|
],
|
|
"x": 280,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"317930c679e833d1"
|
|
]
|
|
],
|
|
"icon": "node-red/file.svg",
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "1ce803b83ecf1593",
|
|
"type": "change",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "ad0235dd3aa9eb7d",
|
|
"name": "",
|
|
"rules": [
|
|
{
|
|
"t": "move",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "random",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "client",
|
|
"pt": "msg",
|
|
"to": "req.connection.remoteAddress",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 720,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"f3b55ea2.f4d51"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f3b55ea2.f4d51",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "ad0235dd3aa9eb7d",
|
|
"name": "HTML",
|
|
"field": "html.body",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "mustache",
|
|
"template": "<fieldset id=\"form\" style=\"width: 400px;\">\n <legend style=\"text-align: left;\"><h2>Self-Service Password Reset</h2></legend>\n\n <form method=\"post\" action=\"{{{ url }}}passwordreset\" ajax=\"true\">\n <p style=\"padding: 15px;\">To reset your password, ALL fields are Mandatory. On completing this form click 'submit' below. Results will be posted in the results window underneath the submit button.</p>\n <label for=\"fname\">First Name</label>\n <input type=\"text\" id=\"givenName\" name=\"givenName\">\n\n <label for=\"lname\">Last Name</label>\n <input type=\"text\" id=\"sn\" name=\"sn\">\n\n <label for=\"lname\">E-Mail Address</label>\n <input type=\"text\" id=\"mail\" name=\"mail\">\n\n <label for=\"lname\">User Name</label>\n <input type=\"text\" id=\"uid\" name=\"uid\">\n\n <label for=\"random\">First half</label><p id=\"labelDescription\">This is the first half of your password</p>\n <input style=\"font-size: 14pt\" type=\"text\" id=\"random\" name=\"random\" value=\"{{{random}}}\" readonly>\n\n <input type=\"submit\" value=\"Submit\">\n <button id=\"navigation\" onclick=\"window.location.href='/mysite/';\">Home</button>\n </form>\n</fieldset>\n\n<fieldset id=\"response\">\n <legend style=\"text-align: left;\">Results</legend>\n <span id=\"result\"></span>\n</fieldset>\n<div >\n <span id=\"result\"></span>\n</div>\n",
|
|
"x": 850,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"457583335831f826"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "bf098463143ac8ad",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "ad0235dd3aa9eb7d",
|
|
"name": "HTML Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 1130,
|
|
"y": 720,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "a702d39f0f3180de",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "d3393ec35cb20a93",
|
|
"name": "CSS",
|
|
"field": "payload",
|
|
"fieldType": "msg",
|
|
"format": "css",
|
|
"syntax": "mustache",
|
|
"template": "body {\n text-align: center;\n}\n\nfieldset {\n border-radius: 5px;\n /* background-color: #f2f2f2; */\n border-color: #ffffff;\n border-style: groove;\n /* padding: 20px; */\n}\n\nbody fieldset[id=form] {\n margin: 0 auto;\n background-color: #f2f2f2;\n}\n\nform {\n text-align: left;\n padding: 0px;\n}\n\nh2 {\n font-size: 20px;\n text-align: center;\n margin: 0;\n padding: 0;\n}\n\nform p {\n text-align: justify;\n margin: 0;\n padding: 10px;\n}\n\ninput[type=text], select {\n width: 100%;\n padding: 12px 20px;\n margin: 8px 0 20px 0;\n display: inline-block;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-sizing: border-box;\n}\n\ninput[type=submit], button[id=navigation] {\n width: 100%;\n background-color: #4CAF50;\n color: white;\n padding: 14px 20px;\n margin: 8px 0;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n}\n\ninput[type=submit]:hover, button[id=navigation]:hover {\n background-color: #45a049;\n}\n\n\nbody fieldset[id=response] {\n height: auto;\n min-height: 25px;\n width: 400px;\n margin: 0 auto;\n background-color: rgb(247, 240, 228);\n \n}\n\nlabel {\n font-size: 12pt;\n font-style: normal;\n font-weight: bold;\n color: #000000;\n text-align: left;\n}\n\n\n#labelDescription {\n color: #414141;\n\n}\n\ndiv[id=question_multicolumn] {\n margin: 0;\n padding: 0px;\n display: grid;\n grid-template-columns: 600px 200px;\n grid-template-rows: 25px;\n}",
|
|
"x": 410,
|
|
"y": 180,
|
|
"wires": [
|
|
[
|
|
"f1dcd5b6e32fb905"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "3502d9cf69680b66",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "d3393ec35cb20a93",
|
|
"name": "style.css",
|
|
"links": [
|
|
"eaeb9e2bfbe1dc95"
|
|
],
|
|
"x": 250,
|
|
"y": 180,
|
|
"wires": [
|
|
[
|
|
"a702d39f0f3180de"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "f1dcd5b6e32fb905",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "d3393ec35cb20a93",
|
|
"name": "Return",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 550,
|
|
"y": 180,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "c8c3f9c8f2ee35ee",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "3e330505ea1e9cba",
|
|
"name": "JavaScript",
|
|
"field": "payload",
|
|
"fieldType": "msg",
|
|
"format": "javascript",
|
|
"syntax": "plain",
|
|
"template": "$(document).ready(function(e) {\n \n $(\"form[ajax=true]\").submit(function(e) {\n \n e.preventDefault();\n \n var form_data = $(this).serialize();\n var form_url = $(this).attr(\"action\");\n var form_method = $(this).attr(\"method\").toUpperCase();\n \n $(\"#loadingimg\").show();\n \n $.ajax({\n url: form_url, \n type: form_method, \n data: form_data, \n cache: false,\n success: function(returnhtml){ \n $(\"#result\").html(returnhtml); \n $(\"#loadingimg\").hide(); \n } \n }); \n \n });\n \n});",
|
|
"x": 930,
|
|
"y": 180,
|
|
"wires": [
|
|
[
|
|
"b664f0b9e6c17ad6"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "602e7197835bba91",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "3e330505ea1e9cba",
|
|
"name": "common.js",
|
|
"links": [
|
|
"e72f08d8fc433bea"
|
|
],
|
|
"x": 760,
|
|
"y": 180,
|
|
"wires": [
|
|
[
|
|
"c8c3f9c8f2ee35ee"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "b664f0b9e6c17ad6",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "3e330505ea1e9cba",
|
|
"name": "Return",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 1090,
|
|
"y": 180,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "457583335831f826",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "ad0235dd3aa9eb7d",
|
|
"name": "Build HTML",
|
|
"links": [
|
|
"3ec10e706b7bdc9d"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 970,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"bf098463143ac8ad"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "591e68e90f876dd1",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "Build HTML",
|
|
"links": [
|
|
"3ec10e706b7bdc9d"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 1790,
|
|
"y": 860,
|
|
"wires": [
|
|
[
|
|
"50339f503fd4878d"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0172c4a240b566fd",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "1c5c6c543ef047b6",
|
|
"name": "HTML: Home",
|
|
"links": [
|
|
"515f363d4f52f625"
|
|
],
|
|
"x": 250,
|
|
"y": 340,
|
|
"wires": [
|
|
[
|
|
"2106525aa2ebda7d"
|
|
]
|
|
],
|
|
"icon": "node-red/file.svg",
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "2106525aa2ebda7d",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "1c5c6c543ef047b6",
|
|
"name": "HTML",
|
|
"field": "html.body",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "mustache",
|
|
"template": "<fieldset id=\"form\" style=\"width: 400px;\">\n <legend style=\"text-align: left;\"><h2>My Account</h2></legend>\n\n <button id=\"navigation\" onclick=\"window.location.href='/mysite/details';\">My Details</button>\n <button id=\"navigation\" onclick=\"window.location.href='/mysite/changepassword';\">Change Password</button>\n <button id=\"navigation\" onclick=\"window.location.href='/mysite/passwordreset';\">Password Reset</button>\n <button id=\"navigation\" onclick=\"window.location.href='/mysite/passwordquestions';\">Password Reset Questions</button>\n\n <button id=\"navigation\" onclick=\"window.location.href='/mysite/logout';\">Log Out</button>\n\n</fieldset>",
|
|
"x": 450,
|
|
"y": 340,
|
|
"wires": [
|
|
[
|
|
"2f628eec7ca4b343"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4ecc0631139b51e0",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "1c5c6c543ef047b6",
|
|
"name": "HTML Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 850,
|
|
"y": 340,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "2f628eec7ca4b343",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "1c5c6c543ef047b6",
|
|
"name": "Build HTML",
|
|
"links": [
|
|
"3ec10e706b7bdc9d"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 630,
|
|
"y": 340,
|
|
"wires": [
|
|
[
|
|
"4ecc0631139b51e0"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fd80fd11fc971e2c",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "a64f4a2c837d5c3c",
|
|
"name": "HTML: Error",
|
|
"links": [
|
|
"d81c931de5a63675"
|
|
],
|
|
"x": 1410,
|
|
"y": 100,
|
|
"wires": [
|
|
[
|
|
"274e4e6606cb379a"
|
|
]
|
|
],
|
|
"icon": "node-red/file.svg",
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "274e4e6606cb379a",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "a64f4a2c837d5c3c",
|
|
"name": "HTML",
|
|
"field": "html.body",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "mustache",
|
|
"template": "<h1>{{ statusCode }}: {{ http.error }}<h1>",
|
|
"output": "str",
|
|
"x": 1610,
|
|
"y": 100,
|
|
"wires": [
|
|
[
|
|
"50d19d3ce5cf88f2",
|
|
"781d23c946457b30"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "50d19d3ce5cf88f2",
|
|
"type": "debug",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "a64f4a2c837d5c3c",
|
|
"name": "debug 82",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1980,
|
|
"y": 60,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "e5ae19af5f6d6561",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "a64f4a2c837d5c3c",
|
|
"name": "HTML Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 2010,
|
|
"y": 100,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "781d23c946457b30",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "a64f4a2c837d5c3c",
|
|
"name": "Build HTML",
|
|
"links": [
|
|
"3ec10e706b7bdc9d"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 1790,
|
|
"y": 100,
|
|
"wires": [
|
|
[
|
|
"e5ae19af5f6d6561",
|
|
"50d19d3ce5cf88f2"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "3ec10e706b7bdc9d",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "a8e6ecf8ae37659e",
|
|
"name": "Page Template",
|
|
"links": [],
|
|
"x": 260,
|
|
"y": 60,
|
|
"wires": [
|
|
[
|
|
"6fc3fe2eef3733b0"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "8bdcaea510dbad1e",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "a8e6ecf8ae37659e",
|
|
"name": "Return Content",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 740,
|
|
"y": 60,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "6fc3fe2eef3733b0",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "a8e6ecf8ae37659e",
|
|
"name": "HTML",
|
|
"field": "payload",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "mustache",
|
|
"template": "<html>\n <head>\n <title>No Fuss Computing</title>\n <meta name=\"viewport\" content=\"initial-scale=1.0, user-scalable=no\">\n <meta charset=\"utf-8\">\n <meta name=\"robots\" content=\"noindex,nofollow\">\n <script src=\"http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.0/jquery.min.js\"></script>\n <script src=\"{{ url }}common.js\"></script>\n <link rel=\"stylesheet\" href=\"{{ url }}style.css\">\n </head>\n \n<body>\n <div>\n\n <div style=\"background: url({{{ env.page_logo }}}) no-repeat center top; background-size: {{ env.page_logo_width }}px {{ env.page_logo_height }}px; width: 100%; height: 120px; display: flex;\"></div>\n\n {{{ html.body }}}\n\n </div>\n</body>\n</html>\n",
|
|
"x": 510,
|
|
"y": 60,
|
|
"wires": [
|
|
[
|
|
"8bdcaea510dbad1e"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "e50f46892eabd2a5",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "0abe2cea5975dcfd",
|
|
"name": "HTML: Account Details",
|
|
"links": [
|
|
"52395c2abfc3c4f5"
|
|
],
|
|
"x": 280,
|
|
"y": 460,
|
|
"wires": [
|
|
[
|
|
"46ef4f0739d6c1b8"
|
|
]
|
|
],
|
|
"icon": "node-red/file.svg",
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "46ef4f0739d6c1b8",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "0abe2cea5975dcfd",
|
|
"name": "HTML",
|
|
"field": "html.body",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "mustache",
|
|
"template": "account details",
|
|
"x": 450,
|
|
"y": 460,
|
|
"wires": [
|
|
[
|
|
"c9323e9dc74c9203"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1d661b2385de4b4a",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "0abe2cea5975dcfd",
|
|
"name": "HTML Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 850,
|
|
"y": 460,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "c9323e9dc74c9203",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "0abe2cea5975dcfd",
|
|
"name": "Build HTML",
|
|
"links": [
|
|
"3ec10e706b7bdc9d"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 630,
|
|
"y": 460,
|
|
"wires": [
|
|
[
|
|
"1d661b2385de4b4a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "b5cedc58894f707e",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "07f2249ad4b7ccd0",
|
|
"name": "HTML: Change Password",
|
|
"links": [
|
|
"333303604fa4ca01"
|
|
],
|
|
"x": 290,
|
|
"y": 580,
|
|
"wires": [
|
|
[
|
|
"54b1149ed3d047fe"
|
|
]
|
|
],
|
|
"icon": "node-red/file.svg",
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "54b1149ed3d047fe",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "07f2249ad4b7ccd0",
|
|
"name": "HTML",
|
|
"field": "html.body",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "mustache",
|
|
"template": "change Password",
|
|
"x": 470,
|
|
"y": 580,
|
|
"wires": [
|
|
[
|
|
"dcfa3cfba4eb1356"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0c2e73371d4238a1",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "07f2249ad4b7ccd0",
|
|
"name": "HTML Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 850,
|
|
"y": 580,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "dcfa3cfba4eb1356",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "07f2249ad4b7ccd0",
|
|
"name": "Build HTML",
|
|
"links": [
|
|
"3ec10e706b7bdc9d"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 630,
|
|
"y": 580,
|
|
"wires": [
|
|
[
|
|
"0c2e73371d4238a1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fb5301abffede979",
|
|
"type": "link in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "b447a1f691eb02df",
|
|
"name": "HTML: Logout",
|
|
"links": [
|
|
"68f30ef53ebc2074"
|
|
],
|
|
"x": 250,
|
|
"y": 1040,
|
|
"wires": [
|
|
[
|
|
"1102d30391c745a6"
|
|
]
|
|
],
|
|
"icon": "node-red/file.svg",
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "1102d30391c745a6",
|
|
"type": "template",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "b447a1f691eb02df",
|
|
"name": "HTML",
|
|
"field": "html.body",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "mustache",
|
|
"template": "logout",
|
|
"x": 470,
|
|
"y": 1040,
|
|
"wires": [
|
|
[
|
|
"b19bd0621d479d66"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "988765ea19236af0",
|
|
"type": "link out",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "b447a1f691eb02df",
|
|
"name": "HTML Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 850,
|
|
"y": 1040,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "b19bd0621d479d66",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "b447a1f691eb02df",
|
|
"name": "Build HTML",
|
|
"links": [
|
|
"3ec10e706b7bdc9d"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 630,
|
|
"y": 1040,
|
|
"wires": [
|
|
[
|
|
"988765ea19236af0"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "52dc13e1fdbf064d",
|
|
"type": "file in",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "Fetch Password Questions",
|
|
"filename": "filename",
|
|
"filenameType": "msg",
|
|
"format": "utf8",
|
|
"chunk": false,
|
|
"sendError": false,
|
|
"encoding": "none",
|
|
"allProps": false,
|
|
"x": 1360,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"d460346f6ae1673b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d460346f6ae1673b",
|
|
"type": "json",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "",
|
|
"property": "payload",
|
|
"action": "obj",
|
|
"pretty": false,
|
|
"x": 1530,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"365ba07c1f4721ec"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "b2c917da9e845f7a",
|
|
"type": "switch",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "No / Yes",
|
|
"property": "payload",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "0",
|
|
"vt": "num"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "1",
|
|
"vt": "num"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 1120,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"5798e39cbc3730ae"
|
|
],
|
|
[
|
|
"52dc13e1fdbf064d"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "99a3fa75430c37f7",
|
|
"type": "function",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "Questions Exist",
|
|
"func": "\nfs.stat(msg.filename, function (err) {\n if (err) {\n msg.payload = 0\n } else {\n msg.payload = 1\n }\n});\n\nreturn msg;\n",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [
|
|
{
|
|
"var": "fs",
|
|
"module": "fs"
|
|
}
|
|
],
|
|
"x": 980,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"b2c917da9e845f7a"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7e95892f2f3454b7",
|
|
"type": "function",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "Fetch: User Name",
|
|
"func": "msg.user = 'john.smith';\n\n//msg.payload = 'echo -n $(echo -n ' + msg.user + '| sha256sum) | awk \\'{print $1 }\\'';\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 550,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"9b89c2da58fccb8d"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "9b89c2da58fccb8d",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "8ad5fe68ad170e2d",
|
|
"name": "",
|
|
"links": [
|
|
"8c13bbcc86d93be8"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 770,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"99a3fa75430c37f7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "317930c679e833d1",
|
|
"type": "link call",
|
|
"z": "42b9663b67dbd983",
|
|
"g": "ad0235dd3aa9eb7d",
|
|
"name": "Fetch First Half of the password",
|
|
"links": [
|
|
"869469819396a632"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 510,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"1ce803b83ecf1593"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "bb8102ee0c070ff2",
|
|
"type": "link in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "Process: Password Reset Questions",
|
|
"links": [
|
|
"9c92aaf02fee52b5"
|
|
],
|
|
"x": 300,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"a712f5e2056bbb1b"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "629b7df0515c7d83",
|
|
"type": "debug",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "STDERR",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 980,
|
|
"y": 260,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "a712f5e2056bbb1b",
|
|
"type": "function",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "Process Questions",
|
|
"func": "\nmsg.cleaned = \"cat <<EOF\\n\\n[\";\n\n// let keys = Object.keys(msg.http.form); \n// var values = msg.http.form\n\n// var exec = childProcess.exec;\n\n// function my_exec(command, callback) {\n// var proc = exec(command, { shell: \"/bin/bash\" });\n\n// var list = [];\n// proc.stdout.setEncoding('utf8');\n\n// proc.stdout.on('data', function (chunk) {\n// list.push(chunk);\n// });\n\n// proc.stdout.on('end', function () {\n// callback(list.join());\n// });\n\n// node.warn(`stderr: ${proc}`);\n// }\n\n\n// function sha256( value ) {\n// var hash;\n// //my_exec(\"echo - n '\" + value + \"' | openssl dgst - sha256 | awk '{print $2}'\", function (stdout) {\n// //my_exec(\"echo - n 88\" + value + \"\", function (stdout) {\n// my_exec(\"openssl --help\", function (stdout) {\n// node.warn(`stdout: ${stdout}`);\n// return String(stdout).replace(/\\s/g, '');\n// })\n\n// //return String(hash);\n// }\n\nfunction Sanitize( value ) {\n\n value = String(value).toLowerCase();\n\n var keep = \"abcdefghijklmnopqrstuvwxyz0123456789 \";\n const allowed = new Set(keep.split(\"\"));\n\n value = value\n .split(\"\")\n .filter(char => allowed.has(char))\n .join(\"\");\n\n\n return String(value);\n}\n\n\nfor (var i = 1; i < 4; i++) {\n\n //let key = keys[i];\n\n msg.cleaned += String(\n '{\"question\": \"' + Sanitize(msg.http.form['q' + String(i)]) + \n '\", \"answer\": \"$(echo -n ' + Sanitize(msg.http.form['a' + String(i)]).replace(' ', '') + ' | openssl dgst -sha256 | awk \\'{print $2}\\')\" }');\n\n if( i < 3) {\n msg.cleaned += String(',')\n }\n\n}\n\nmsg.payload = msg.cleaned + \"]\\n\\nEOF\";\n\ndelete msg.cleaned;\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [
|
|
{
|
|
"var": "childProcess",
|
|
"module": "child_process"
|
|
}
|
|
],
|
|
"x": 530,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"e9f50265154e4b83"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "e9f50265154e4b83",
|
|
"type": "exec",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"command": "",
|
|
"addpay": "payload",
|
|
"append": "",
|
|
"useSpawn": "false",
|
|
"timer": "",
|
|
"winHide": false,
|
|
"oldrc": false,
|
|
"name": "Expand bash variables",
|
|
"x": 760,
|
|
"y": 240,
|
|
"wires": [
|
|
[
|
|
"1e3c2b23420d6e40"
|
|
],
|
|
[],
|
|
[
|
|
"629b7df0515c7d83"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "1e3c2b23420d6e40",
|
|
"type": "json",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "",
|
|
"property": "payload",
|
|
"action": "obj",
|
|
"pretty": false,
|
|
"x": 970,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"fba98a197970c6ee"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "cee76f9f914dd0fa",
|
|
"type": "function",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "Response message",
|
|
"func": "msg.payload = 'Your Password Questions have been saved';\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 2140,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"96836f5a4c7c756c",
|
|
"8b70b96b1f62a785"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fba98a197970c6ee",
|
|
"type": "json",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "",
|
|
"property": "payload",
|
|
"action": "str",
|
|
"pretty": false,
|
|
"x": 1070,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"6ec9911b7ad7d042"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "edf62fa2ca3cd812",
|
|
"type": "file",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "Save Questions",
|
|
"filename": "filename",
|
|
"filenameType": "msg",
|
|
"appendNewline": true,
|
|
"createDir": false,
|
|
"overwriteFile": "true",
|
|
"encoding": "utf8",
|
|
"x": 1840,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"5210f540af1eb2e5"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5210f540af1eb2e5",
|
|
"type": "change",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "Cleanup",
|
|
"rules": [
|
|
{
|
|
"t": "delete",
|
|
"p": "rc",
|
|
"pt": "msg"
|
|
},
|
|
{
|
|
"t": "delete",
|
|
"p": "payload",
|
|
"pt": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1980,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"cee76f9f914dd0fa"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "96836f5a4c7c756c",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "HTTP Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 2320,
|
|
"y": 200,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "6ec9911b7ad7d042",
|
|
"type": "function",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "Fetch: User Name",
|
|
"func": "msg.user = 'john.smith';\nmsg.file_contents = msg.payload;\n\n//msg.payload = 'echo -n $(echo -n ' + msg.user + '| sha256sum) | awk \\'{print $1 }\\'';\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 1210,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"3f128f23d72e0492",
|
|
"7ce13238fa87d636"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "3f128f23d72e0492",
|
|
"type": "link call",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "",
|
|
"links": [
|
|
"8c13bbcc86d93be8"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 1430,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"858fd2b2fac0f719"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "7ce13238fa87d636",
|
|
"type": "debug",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "Fetch: UserName",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1450,
|
|
"y": 160,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "8b70b96b1f62a785",
|
|
"type": "debug",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "debug 94",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 2340,
|
|
"y": 160,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "858fd2b2fac0f719",
|
|
"type": "change",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "3b96ab15b1a54e33",
|
|
"name": "Prepare File Content",
|
|
"rules": [
|
|
{
|
|
"t": "move",
|
|
"p": "file_contents",
|
|
"pt": "msg",
|
|
"to": "payload",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1660,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"edf62fa2ca3cd812"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "311e184a2397eb19",
|
|
"type": "ldap-search in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "c41dc5b999e5cc21",
|
|
"name": "Find LDAP User",
|
|
"ldap": "160d0b5ed597dc51",
|
|
"baseDn": "dc=nww",
|
|
"searchScope": "sub",
|
|
"filter": "",
|
|
"attributes": "dn,cn,givenName,sn,uid,mail",
|
|
"x": 840,
|
|
"y": 440,
|
|
"wires": [
|
|
[
|
|
"fe1f0a50300d9224"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "faa5e7380a3092a2",
|
|
"type": "template",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "c41dc5b999e5cc21",
|
|
"name": "Create LDAP Search Filter",
|
|
"field": "filter",
|
|
"fieldType": "msg",
|
|
"format": "handlebars",
|
|
"syntax": "mustache",
|
|
"template": "(&(objectclass=*)(cn={{ http.form.givenName }} {{ http.form.sn }})(givenName={{ http.form.givenName }})(sn={{ http.form.sn }})(uid={{ http.form.uid }})(mail={{ http.form.mail }}))",
|
|
"output": "str",
|
|
"x": 640,
|
|
"y": 440,
|
|
"wires": [
|
|
[
|
|
"311e184a2397eb19"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "fe1f0a50300d9224",
|
|
"type": "switch",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "c41dc5b999e5cc21",
|
|
"name": "User Found",
|
|
"property": "$count(msg.payload)",
|
|
"propertyType": "jsonata",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "1\t",
|
|
"vt": "num"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 990,
|
|
"y": 440,
|
|
"wires": [
|
|
[
|
|
"5fd67e7434f3fcd1",
|
|
"04818ddd8782b0a1"
|
|
],
|
|
[
|
|
"0308c42b587c3794"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "b10e8a45ff44f80d",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "c41dc5b999e5cc21",
|
|
"name": "LDAP: User Found",
|
|
"mode": "link",
|
|
"links": [
|
|
"4a4676456c27f256"
|
|
],
|
|
"x": 1410,
|
|
"y": 420,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "0308c42b587c3794",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "c41dc5b999e5cc21",
|
|
"name": "Response: Invalid User",
|
|
"mode": "link",
|
|
"links": [
|
|
"72721ec69edf230f"
|
|
],
|
|
"x": 1210,
|
|
"y": 460,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "cdde8116fcac6e5d",
|
|
"type": "link in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "a9d52eb951c5f037",
|
|
"name": "Process: Password Reset",
|
|
"links": [
|
|
"b7fde07e47cc852e"
|
|
],
|
|
"x": 270,
|
|
"y": 400,
|
|
"wires": [
|
|
[
|
|
"faa5e7380a3092a2"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "72721ec69edf230f",
|
|
"type": "link in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "aea0a3398dafab4c",
|
|
"name": "Respond: Invalid User",
|
|
"links": [
|
|
"0308c42b587c3794",
|
|
"58d1108b52842808"
|
|
],
|
|
"x": 2180,
|
|
"y": 740,
|
|
"wires": [
|
|
[
|
|
"8eca6e69b809790c"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "8eca6e69b809790c",
|
|
"type": "function",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "aea0a3398dafab4c",
|
|
"name": "Give impression of success",
|
|
"func": "msg.payload = 'Your Password has been reset';\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 2420,
|
|
"y": 740,
|
|
"wires": [
|
|
[
|
|
"4cdbeaa8f5f3ddb7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4cdbeaa8f5f3ddb7",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "a9d52eb951c5f037",
|
|
"name": "Response",
|
|
"mode": "link",
|
|
"links": [
|
|
"7db929503cf13635"
|
|
],
|
|
"x": 2680,
|
|
"y": 640,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "4a4676456c27f256",
|
|
"type": "link in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "ITSM: Search for User",
|
|
"links": [
|
|
"b10e8a45ff44f80d"
|
|
],
|
|
"x": 480,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"a43bd1f944ef851c"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "a43bd1f944ef851c",
|
|
"type": "switch",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "Conduct ITSM Search?",
|
|
"property": "itsm_search",
|
|
"propertyType": "env",
|
|
"rules": [
|
|
{
|
|
"t": "true"
|
|
},
|
|
{
|
|
"t": "false"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 690,
|
|
"y": 600,
|
|
"wires": [
|
|
[
|
|
"bc29c53d4ef04184"
|
|
],
|
|
[
|
|
"dbeedddce12963de"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "eeb2b5a4e44d0c24",
|
|
"type": "link call",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "",
|
|
"links": [
|
|
"b8c9f1cf125efd2e"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 1130,
|
|
"y": 580,
|
|
"wires": [
|
|
[
|
|
"445623ba528e5df1"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "5fd67e7434f3fcd1",
|
|
"type": "debug",
|
|
"z": "4b5e055cd6b1e387",
|
|
"name": "debug 96",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1400,
|
|
"y": 320,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "04818ddd8782b0a1",
|
|
"type": "change",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "c41dc5b999e5cc21",
|
|
"name": "",
|
|
"rules": [
|
|
{
|
|
"t": "move",
|
|
"p": "payload[0]",
|
|
"pt": "msg",
|
|
"to": "ldap",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1200,
|
|
"y": 420,
|
|
"wires": [
|
|
[
|
|
"b10e8a45ff44f80d"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "bc29c53d4ef04184",
|
|
"type": "template",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "ITSM User SearchData",
|
|
"field": "payload",
|
|
"fieldType": "msg",
|
|
"format": "json",
|
|
"syntax": "mustache",
|
|
"template": "{\n \"data\": {\n \"givenName\": \"{{ ldap.givenName }}\",\n \"sn\": \"{{ ldap.sn }}\",\n \"uid\": \"{{ ldap.uid }}\"\n },\n \"platform\": \"{{ env.itsm_platform }}\",\n \"action\": \"search\",\n \"action_for\": \"user\"\n}",
|
|
"output": "json",
|
|
"x": 970,
|
|
"y": 580,
|
|
"wires": [
|
|
[
|
|
"eeb2b5a4e44d0c24"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "b1bc2e62654b04e2",
|
|
"type": "function",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "82ccba0e0a13970a",
|
|
"name": "return msg.payload to client",
|
|
"func": "msg.payload = msg.payload = 'Your Password has been reset, dont forget to take note of the first half of your password!!';\nreturn msg;\n",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 2420,
|
|
"y": 640,
|
|
"wires": [
|
|
[
|
|
"4cdbeaa8f5f3ddb7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "f125e4c474dd2e5c",
|
|
"type": "link in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "82ccba0e0a13970a",
|
|
"name": "Respond: Success",
|
|
"links": [
|
|
"07ed8c85583c5a2e"
|
|
],
|
|
"x": 2170,
|
|
"y": 640,
|
|
"wires": [
|
|
[
|
|
"b1bc2e62654b04e2"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "68628b6f32ec8b74",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "LDAP: User Found",
|
|
"mode": "link",
|
|
"links": [
|
|
"1a29880acc851ff5"
|
|
],
|
|
"x": 1630,
|
|
"y": 560,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "dbeedddce12963de",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "Continue",
|
|
"mode": "link",
|
|
"links": [
|
|
"1a29880acc851ff5"
|
|
],
|
|
"x": 920,
|
|
"y": 620,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "1a29880acc851ff5",
|
|
"type": "link in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "5e535ca826ad969c",
|
|
"name": "ITSM: Create Ticket",
|
|
"links": [
|
|
"dbeedddce12963de",
|
|
"68628b6f32ec8b74"
|
|
],
|
|
"x": 630,
|
|
"y": 740,
|
|
"wires": [
|
|
[
|
|
"dce8db9b841faf7f"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "dce8db9b841faf7f",
|
|
"type": "switch",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "5e535ca826ad969c",
|
|
"name": "Conduct ITSM Search?",
|
|
"property": "itsm_create_ticket",
|
|
"propertyType": "env",
|
|
"rules": [
|
|
{
|
|
"t": "true"
|
|
},
|
|
{
|
|
"t": "false"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 830,
|
|
"y": 740,
|
|
"wires": [
|
|
[
|
|
"93434028042529b8"
|
|
],
|
|
[
|
|
"ad66e8c05ee9a664"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "ad66e8c05ee9a664",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "5e535ca826ad969c",
|
|
"name": "Continue",
|
|
"mode": "link",
|
|
"links": [
|
|
"073709e754dd98a3"
|
|
],
|
|
"x": 1060,
|
|
"y": 760,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "93434028042529b8",
|
|
"type": "template",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "5e535ca826ad969c",
|
|
"name": "ITSM Ticket Data",
|
|
"field": "payload",
|
|
"fieldType": "msg",
|
|
"format": "json",
|
|
"syntax": "mustache",
|
|
"template": "{\n \"data\": {\n \"task\": {\n \"category\": 6\n },\n \"ticket\": {\n \"approval_required\": 0,\n \"category\": 6,\n \"entity\": 1,\n \"requester_id\": 1,\n \"requesttypes_id\": 6\n }\n \n },\n \"platform\": \"{{ env.itsm_platform }}\",\n \"action\": \"create\",\n \"action_for\": \"ticket\"\n}\n",
|
|
"output": "json",
|
|
"x": 1090,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"00066fdae59433b8"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8dd7c0779eac59f0",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "5e535ca826ad969c",
|
|
"name": "Ticket Created",
|
|
"mode": "link",
|
|
"links": [
|
|
"073709e754dd98a3"
|
|
],
|
|
"x": 1400,
|
|
"y": 720,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "00066fdae59433b8",
|
|
"type": "link call",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "5e535ca826ad969c",
|
|
"name": "",
|
|
"links": [
|
|
"b8c9f1cf125efd2e"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 1270,
|
|
"y": 720,
|
|
"wires": [
|
|
[
|
|
"8dd7c0779eac59f0"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "445623ba528e5df1",
|
|
"type": "switch",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "Found User",
|
|
"property": "payload",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "hask",
|
|
"v": "id",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 1250,
|
|
"y": 580,
|
|
"wires": [
|
|
[
|
|
"f6fc2010d0af1e33"
|
|
],
|
|
[
|
|
"58d1108b52842808"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "58d1108b52842808",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "Response: Invalid User",
|
|
"mode": "link",
|
|
"links": [
|
|
"72721ec69edf230f"
|
|
],
|
|
"x": 1470,
|
|
"y": 600,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "f6fc2010d0af1e33",
|
|
"type": "change",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "20eb97dd0c088b3d",
|
|
"name": "Store User Data",
|
|
"rules": [
|
|
{
|
|
"t": "move",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "glpi.user",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 1440,
|
|
"y": 560,
|
|
"wires": [
|
|
[
|
|
"68628b6f32ec8b74"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "853e6c15b5317007",
|
|
"type": "ldap-update in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "d0dc259791aed430",
|
|
"name": "Update Password",
|
|
"ldap": "160d0b5ed597dc51",
|
|
"operation": "replace",
|
|
"dn": "",
|
|
"attribute": "userPassword",
|
|
"value": "",
|
|
"x": 1350,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"9090daaf8a5892b0"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "073709e754dd98a3",
|
|
"type": "link in",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "d0dc259791aed430",
|
|
"name": "LDAP: Update Password",
|
|
"links": [
|
|
"8dd7c0779eac59f0",
|
|
"ad66e8c05ee9a664"
|
|
],
|
|
"x": 350,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"c66c2a0c3817433c"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "142f9ce43cb63dd7",
|
|
"type": "link call",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "d0dc259791aed430",
|
|
"name": "Convert Password to LDAP Hashed Password",
|
|
"links": [
|
|
"c19ba5f86ea40757"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 1080,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"853e6c15b5317007"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "c66c2a0c3817433c",
|
|
"type": "link call",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "d0dc259791aed430",
|
|
"name": "Fetch Second half of password",
|
|
"links": [
|
|
"869469819396a632"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 590,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"c710ba5a1416cfd8"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "c710ba5a1416cfd8",
|
|
"type": "change",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "d0dc259791aed430",
|
|
"name": "Prepare LDAP data",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "$string(msg.http.form.random & msg.payload)",
|
|
"tot": "jsonata"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "dn",
|
|
"pt": "msg",
|
|
"to": "ldap.dn",
|
|
"tot": "msg"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 810,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"142f9ce43cb63dd7"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "07ed8c85583c5a2e",
|
|
"type": "link out",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "d0dc259791aed430",
|
|
"name": "Processing Complete",
|
|
"mode": "link",
|
|
"links": [
|
|
"f125e4c474dd2e5c"
|
|
],
|
|
"x": 1800,
|
|
"y": 860,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "ec52cbc3aa0fec25",
|
|
"type": "debug",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "d0dc259791aed430",
|
|
"name": "LDAP Error",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1770,
|
|
"y": 900,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "9090daaf8a5892b0",
|
|
"type": "switch",
|
|
"z": "4b5e055cd6b1e387",
|
|
"g": "d0dc259791aed430",
|
|
"name": "LDAP: Changed?",
|
|
"property": "ldapStatus.success",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "true"
|
|
},
|
|
{
|
|
"t": "false"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 1530,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"07ed8c85583c5a2e"
|
|
],
|
|
[
|
|
"ec52cbc3aa0fec25"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0eeaba70b043a226",
|
|
"type": "exec",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "0d96945ec7d069cb",
|
|
"command": "",
|
|
"addpay": "payload",
|
|
"append": "",
|
|
"useSpawn": "false",
|
|
"timer": "1",
|
|
"winHide": false,
|
|
"oldrc": false,
|
|
"name": "Run Hash Command",
|
|
"x": 620,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"540882a95f65754c"
|
|
],
|
|
[],
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "9c9c7bbd71c78d8e",
|
|
"type": "function",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "0d96945ec7d069cb",
|
|
"name": "Create Hash Command",
|
|
"func": "\nmsg.payload = 'echo -n $(echo -n ' + msg.hash.string + '| ' + msg.hash.type + 'sum) | awk \\'{print $1 }\\' | tr -dc \\'A-Fa-f0-9\\'';\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 370,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"0eeaba70b043a226"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "43eebf1623f29074",
|
|
"type": "link in",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "0d96945ec7d069cb",
|
|
"name": "Hash String",
|
|
"links": [],
|
|
"x": 190,
|
|
"y": 220,
|
|
"wires": [
|
|
[
|
|
"9c9c7bbd71c78d8e"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "8fadd3c4294a6939",
|
|
"type": "link out",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "0d96945ec7d069cb",
|
|
"name": "Return",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 990,
|
|
"y": 200,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "540882a95f65754c",
|
|
"type": "function",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "0d96945ec7d069cb",
|
|
"name": "Save Hash Value",
|
|
"func": "msg.hash.value = msg.payload;\n\ndelete msg.payload;\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 850,
|
|
"y": 200,
|
|
"wires": [
|
|
[
|
|
"8fadd3c4294a6939"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "8c13bbcc86d93be8",
|
|
"type": "link in",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "bcd2727d77a80ce3",
|
|
"name": "Hash: User-Questions-Filename",
|
|
"links": [],
|
|
"x": 250,
|
|
"y": 360,
|
|
"wires": [
|
|
[
|
|
"858268a5d48a4486"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "a35b8cc53c276d62",
|
|
"type": "link call",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "bcd2727d77a80ce3",
|
|
"name": "",
|
|
"links": [
|
|
"43eebf1623f29074"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 630,
|
|
"y": 360,
|
|
"wires": [
|
|
[
|
|
"0f2ff2f433d17eef"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "858268a5d48a4486",
|
|
"type": "function",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "bcd2727d77a80ce3",
|
|
"name": "Build: Hash Details",
|
|
"func": "msg.hash = {};\nmsg.hash.string = msg.user;\nmsg.hash.type = 'sha256';\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 470,
|
|
"y": 360,
|
|
"wires": [
|
|
[
|
|
"a35b8cc53c276d62"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "998b007182d85455",
|
|
"type": "link out",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "bcd2727d77a80ce3",
|
|
"name": "Return",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 930,
|
|
"y": 360,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "0f2ff2f433d17eef",
|
|
"type": "function",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "bcd2727d77a80ce3",
|
|
"name": "Build: Hash Details",
|
|
"func": "msg.filename = msg.hash.value + '.json'\n\nreturn msg;",
|
|
"outputs": 1,
|
|
"noerr": 0,
|
|
"initialize": "",
|
|
"finalize": "",
|
|
"libs": [],
|
|
"x": 790,
|
|
"y": 360,
|
|
"wires": [
|
|
[
|
|
"998b007182d85455"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "804feccd90b3276c",
|
|
"type": "exec",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "10a6c6b12749dda9",
|
|
"command": "bash -c \"tr -dc 'A-Za-z0-9' </dev/urandom | head -c 6 ; echo -n\"",
|
|
"addpay": "random",
|
|
"append": "",
|
|
"useSpawn": "false",
|
|
"timer": "1",
|
|
"winHide": false,
|
|
"oldrc": false,
|
|
"name": "Generate random 6 char string",
|
|
"x": 550,
|
|
"y": 520,
|
|
"wires": [
|
|
[
|
|
"c4e40d6f6678bb55"
|
|
],
|
|
[
|
|
"c4e40d6f6678bb55",
|
|
"e62119d30db09cce"
|
|
],
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "869469819396a632",
|
|
"type": "link in",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "10a6c6b12749dda9",
|
|
"name": "Generate random 6 char string",
|
|
"links": [],
|
|
"x": 250,
|
|
"y": 520,
|
|
"wires": [
|
|
[
|
|
"804feccd90b3276c"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "c4e40d6f6678bb55",
|
|
"type": "link out",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "10a6c6b12749dda9",
|
|
"name": "Return",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 810,
|
|
"y": 500,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "e62119d30db09cce",
|
|
"type": "debug",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "10a6c6b12749dda9",
|
|
"name": "STDERR",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 820,
|
|
"y": 540,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "33d710f97adb5298",
|
|
"type": "http request",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "f9d8741c4385a7eb",
|
|
"name": "User ITSM Search",
|
|
"method": "GET",
|
|
"ret": "txt",
|
|
"paytoqs": "body",
|
|
"url": "",
|
|
"tls": "",
|
|
"persist": false,
|
|
"proxy": "",
|
|
"insecureHTTPParser": false,
|
|
"authType": "",
|
|
"senderr": false,
|
|
"headers": [
|
|
{
|
|
"keyType": "Content-Type",
|
|
"keyValue": "",
|
|
"valueType": "application/json",
|
|
"valueValue": ""
|
|
}
|
|
],
|
|
"x": 890,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"6aac3151138c4af9"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6aac3151138c4af9",
|
|
"type": "json",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "f9d8741c4385a7eb",
|
|
"name": "",
|
|
"property": "payload",
|
|
"action": "obj",
|
|
"pretty": false,
|
|
"x": 1030,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"269cbacf5274d6d8"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "b8c9f1cf125efd2e",
|
|
"type": "link in",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9b1493c4ae19a935",
|
|
"name": "ITSM",
|
|
"links": [],
|
|
"x": 170,
|
|
"y": 700,
|
|
"wires": [
|
|
[
|
|
"f5cae04225998e3b"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "f5cae04225998e3b",
|
|
"type": "switch",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9b1493c4ae19a935",
|
|
"name": "ITSM Platform",
|
|
"property": "payload.platform",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "glpi",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 360,
|
|
"y": 700,
|
|
"wires": [
|
|
[
|
|
"002457f33834fc91"
|
|
],
|
|
[
|
|
"6840ab77f76439db"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "002457f33834fc91",
|
|
"type": "link call",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9b1493c4ae19a935",
|
|
"name": "GLPI",
|
|
"links": [
|
|
"160bc27f7530e52d"
|
|
],
|
|
"linkType": "static",
|
|
"timeout": "30",
|
|
"x": 590,
|
|
"y": 680,
|
|
"wires": [
|
|
[
|
|
"d4d1ce730aa1c15b"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "d4d1ce730aa1c15b",
|
|
"type": "link out",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9b1493c4ae19a935",
|
|
"name": "Return",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 730,
|
|
"y": 680,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "160bc27f7530e52d",
|
|
"type": "link in",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9858d84dc9d001be",
|
|
"name": "GLPI",
|
|
"links": [],
|
|
"x": 230,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"4cdb1540cd4c8744"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "269cbacf5274d6d8",
|
|
"type": "link out",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9858d84dc9d001be",
|
|
"name": "Return",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 1230,
|
|
"y": 1020,
|
|
"wires": [],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "6840ab77f76439db",
|
|
"type": "debug",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9b1493c4ae19a935",
|
|
"name": "ITSM Platform Doesn't exist",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 660,
|
|
"y": 720,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "42f157ed01b737f4",
|
|
"type": "change",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "f9d8741c4385a7eb",
|
|
"name": "User",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "payload.data",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "http://nodered:1880/api/user",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 750,
|
|
"y": 900,
|
|
"wires": [
|
|
[
|
|
"33d710f97adb5298"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "4cdb1540cd4c8744",
|
|
"type": "switch",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9858d84dc9d001be",
|
|
"name": "Action",
|
|
"property": "payload.action",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "search",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "eq",
|
|
"v": "create",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "false",
|
|
"repair": false,
|
|
"outputs": 3,
|
|
"x": 350,
|
|
"y": 880,
|
|
"wires": [
|
|
[
|
|
"0676d69c05236349"
|
|
],
|
|
[
|
|
"edbb6827a8b33085"
|
|
],
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "0676d69c05236349",
|
|
"type": "switch",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9858d84dc9d001be",
|
|
"name": "Search",
|
|
"property": "payload.action_for",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "user",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 560,
|
|
"y": 860,
|
|
"wires": [
|
|
[
|
|
"42f157ed01b737f4"
|
|
],
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "edbb6827a8b33085",
|
|
"type": "switch",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "9858d84dc9d001be",
|
|
"name": "Create",
|
|
"property": "payload.action_for",
|
|
"propertyType": "msg",
|
|
"rules": [
|
|
{
|
|
"t": "eq",
|
|
"v": "ticket",
|
|
"vt": "str"
|
|
},
|
|
{
|
|
"t": "else"
|
|
}
|
|
],
|
|
"checkall": "true",
|
|
"repair": false,
|
|
"outputs": 2,
|
|
"x": 550,
|
|
"y": 960,
|
|
"wires": [
|
|
[
|
|
"d4de6eab89782579"
|
|
],
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"id": "d4de6eab89782579",
|
|
"type": "change",
|
|
"z": "8179bf22c4c31682",
|
|
"g": "ed0645c12f7435b2",
|
|
"name": "Ticket",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "payload.data",
|
|
"tot": "msg"
|
|
},
|
|
{
|
|
"t": "set",
|
|
"p": "url",
|
|
"pt": "msg",
|
|
"to": "http://nodered:1880/api/ticket",
|
|
"tot": "str"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 750,
|
|
"y": 1000,
|
|
"wires": [
|
|
[
|
|
"269cbacf5274d6d8",
|
|
"6de60d145e2e49f5"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "6de60d145e2e49f5",
|
|
"type": "debug",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "debug 98",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1080,
|
|
"y": 1140,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "c6c63174053774b7",
|
|
"type": "change",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "Build Command",
|
|
"rules": [
|
|
{
|
|
"t": "set",
|
|
"p": "payload",
|
|
"pt": "msg",
|
|
"to": "'echo -n \"{sha512}$(echo -n \"$(echo -n ' & msg.payload &'| sha512sum)\" | xxd -r -p | openssl enc -base64 | tr -dc \"A-Za-z0-9+\\\\/=\")\"'",
|
|
"tot": "jsonata"
|
|
}
|
|
],
|
|
"action": "",
|
|
"property": "",
|
|
"from": "",
|
|
"to": "",
|
|
"reg": false,
|
|
"x": 560,
|
|
"y": 1380,
|
|
"wires": [
|
|
[
|
|
"0a8a08fff2cf8bc6",
|
|
"38ef027aea02e3b9"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0a8a08fff2cf8bc6",
|
|
"type": "debug",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "debug 51",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 740,
|
|
"y": 1340,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "38ef027aea02e3b9",
|
|
"type": "exec",
|
|
"z": "8179bf22c4c31682",
|
|
"command": "",
|
|
"addpay": "payload",
|
|
"append": "",
|
|
"useSpawn": "false",
|
|
"timer": "",
|
|
"winHide": false,
|
|
"oldrc": false,
|
|
"name": "Generate LDAP Password String",
|
|
"x": 820,
|
|
"y": 1380,
|
|
"wires": [
|
|
[
|
|
"0041766d05e6184c",
|
|
"55a05bb281e1f7a8"
|
|
],
|
|
[
|
|
"f284a3ecbe8cdbe6",
|
|
"55a05bb281e1f7a8"
|
|
],
|
|
[
|
|
"00064453b16cedac"
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": "0041766d05e6184c",
|
|
"type": "debug",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "debug 53",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1100,
|
|
"y": 1300,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "f284a3ecbe8cdbe6",
|
|
"type": "debug",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "debug 54",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1100,
|
|
"y": 1420,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "00064453b16cedac",
|
|
"type": "debug",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "debug 55",
|
|
"active": true,
|
|
"tosidebar": true,
|
|
"console": false,
|
|
"tostatus": false,
|
|
"complete": "true",
|
|
"targetType": "full",
|
|
"statusVal": "",
|
|
"statusType": "auto",
|
|
"x": 1100,
|
|
"y": 1460,
|
|
"wires": []
|
|
},
|
|
{
|
|
"id": "c19ba5f86ea40757",
|
|
"type": "link in",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "LDAP Password String {sha256}",
|
|
"links": [],
|
|
"x": 350,
|
|
"y": 1380,
|
|
"wires": [
|
|
[
|
|
"c6c63174053774b7"
|
|
]
|
|
],
|
|
"l": true
|
|
},
|
|
{
|
|
"id": "55a05bb281e1f7a8",
|
|
"type": "link out",
|
|
"z": "8179bf22c4c31682",
|
|
"name": "Return",
|
|
"mode": "return",
|
|
"links": [],
|
|
"x": 1090,
|
|
"y": 1360,
|
|
"wires": [],
|
|
"l": true
|
|
}
|
|
] |