OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.32k stars 932 forks source link

Setting up OpenCTI using Docker with Ldap #764

Closed Sreejith2k closed 4 years ago

Sreejith2k commented 4 years ago

Description

Setting up OpenCTI using Docker and login using ldap

Environment

Docker version 19.03.11, build 42e35e61f3 OpenCTI version: { 3.3.1 } OpenCTI client: { frontend}

Reproducable steps

version: '3' services: grakn: image: graknlabs/grakn:1.7.2 ports:

Expected Output

Users in the OU should be able to login

Actual Output

name or password is wrong. I can use the local user and pwd to login. Only LDAP part is not working

SamuelHassine commented 4 years ago

Hello @Sreejith2k, could you please set the - APP__LOGS_LEVEL= to debug and provide us with the log output of the platform when you try to login?

Sreejith2k commented 4 years ago

opencti_1 | {"error":null,"info":{"message":"Invalid username/password"},"level":"warn","message":"[AUTH ERROR] > ldapauth","timestamp":"2020-06-23T13:46:12.830Z

Sreejith2k commented 4 years ago

The issue fixed by itself. Bit strange. Thanks @SamuelHassine for your help. :)

Sreejith2k commented 4 years ago

Ahh sorry forgot to add...

Instead of using - PROVIDERSLDAPCONFIG__SEARCH_FILTER=(sAMAccountName={{Opencti}})" pls use- PROVIDERSLDAPCONFIG__SEARCH_FILTER=(sAMAccountName={{username}}) this fixed the issue :)