-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
xtrimf edited this page Aug 20, 2018
·
5 revisions
First create a task on the server via "Task Scheduler" and assign an action to it. no need to create a trigger. Make sure there are no spaces in the task name.
const LDAP_SERVER = 'ldap://company.com:389' // the ldap server name/address
const SERVER = 'localhost' // the ip address of the server where the tasks are configured.
const USER = 'user1' // the username with permissions to run the tasks. WITHOUT domain. This user will be used both for running tasks and to authenticate other users on the AD
const LDAP_USER_PATH = 'CN=user1,CN=Users,DC=company,DC=com' // the path to the user in the AD
const PWD = 'password' // the password of the user. make sure it is corret or the AD will lock this account!
const LDAP_SEARCH_PATH = 'DC=company,DC=com' // example: 'DC=company,DC=com'
ADExplorer is a great tool to get the AD path
//users for authentication
let rawUsers = [
{ user: 'user1', tasks:[], token:'', expiration:''}, // here enter users that have access. fill in
{ user: 'user2', tasks:[], token:'', expiration:''} // only 'user', all rest should be empty.
]
//permissions per task
const permissions = [
{task: 'task1', users: ['user1']}, // this is where you add tasks, and permissions per task.
{task: 'task2', users: ['user1','user2']}
]
var socket = io.connect('http://localhost:3131'); // change the 'localhost' to ip address of the NodeJS server
Thats it. fire it up!