Open
Description
Excellent looking plugin, however I am running into an error in the configuration. I've got it configured as follows:
{
"storage": "ldap",
"two-factor": {
"enabled": false,
"length": 6
},
"proxy": {
"enabled": false,
"port": 7575,
"remote": "localhost:5601"
},
"authentication": {
"kbnVersion": "6.6.0",
"cookie": {
"ttl": 1209600,
"path": "/",
"encoding": "none",
"isSecure": false,
"isHttpOnly": true,
"clearInvalid": true,
"strictHeader": true
},
"secret": null
},
"file": {
"filename": "users.json"
},
"ldap": {
"url": "ldap://SERVERIP:389",
"admin": {
"dn": "cn=Username,ou=level2,ou=level1,dc=domain,dc=com",
"password": "UserPassword"
},
"search": {
"scope": "sub",
"user-dn": "ou=accounts,ou=level2,ou=level1,dc=domain,dc=com",
# "group-dn": "ou=groups,ou=system"
}
},
"mongodb": {
"remote": "mongodb://localhost/plugin"
}
}
I get the following error on Kibana startup:
{"type":"log","@timestamp":"2019-02-21T10:36:49-06:00","tags":["fatal","root"],"pid":404,"message":"SyntaxError: Unexpected token # in JSON at position 873\n at JSON.parse (<anonymous>)\n at load (D:/ElasticStack/Apps/Kibana/6.6/plugins/kibana-mithril/src/config.js:17:19)\n at Object.<anonymous> (D:/ElasticStack/Apps/Kibana/6.6/plugins/kibana-mithril/src/config.js:21:1)\n at Module._compile (internal/modules/cjs/loader.js:688:30)\n at loader (D:\\ElasticStack\\Apps\\Kibana\\6.6\\node_modules\\babel-register\\lib\\node.js:144:5)\n at Object.require.extensions.(anonymous function) [as .js] (D:\\ElasticStack\\Apps\\Kibana\\6.6\\node_modules\\babel-register\\lib\\node.js:154:7)\n at Module.load (internal/modules/cjs/loader.js:598:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:537:12)\n at Function.Module._load (internal/modules/cjs/loader.js:529:3)\n at Module.require (internal/modules/cjs/loader.js:636:17)\n at require (internal/modules/cjs/helpers.js:20:18)\n at Object.<anonymous> (D:/ElasticStack/Apps/Kibana/6.6/plugins/kibana-mithril/src/authentication/auth.js:9:16)\n at Module._compile (internal/modules/cjs/loader.js:688:30)\n at loader (D:\\ElasticStack\\Apps\\Kibana\\6.6\\node_modules\\babel-register\\lib\\node.js:144:5)\n at Object.require.extensions.(anonymous function) [as .js] (D:\\ElasticStack\\Apps\\Kibana\\6.6\\node_modules\\babel-register\\lib\\node.js:154:7)\n at Module.load (internal/modules/cjs/loader.js:598:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:537:12)\n at Function.Module._load (internal/modules/cjs/loader.js:529:3)\n at Module.require (internal/modules/cjs/loader.js:636:17)\n at require (internal/modules/cjs/helpers.js:20:18)\n at Object.<anonymous> (D:/ElasticStack/Apps/Kibana/6.6/plugins/kibana-mithril/src/api/filter.js:12:24)\n at Module._compile (internal/modules/cjs/loader.js:688:30)\n at loader (D:\\ElasticStack\\Apps\\Kibana\\6.6\\node_modules\\babel-register\\lib\\node.js:144:5)\n at Object.require.extensions.(anonymous function) [as .js] (D:\\ElasticStack\\Apps\\Kibana\\6.6\\node_modules\\babel-register\\lib\\node.js:154:7)\n at Module.load (internal/modules/cjs/loader.js:598:32)\n at tryModuleLoad (internal/modules/cjs/loader.js:537:12)\n at Function.Module._load (internal/modules/cjs/loader.js:529:3)\n at Module.require (internal/modules/cjs/loader.js:636:17)"}
I'm not well versed in the language but it looks like it isn't happy with the path
setting in config.json? I have not made any modifications to the users.json file as I'm unsure of what exactly its supposed to contain. I've currently got MFA set to disable as I just want to verify LDAP authentication is up and running.