Crivaledaz / Mattermost-LDAP

This module provides an external LDAP authentication in Mattermost for the Team Edition (free).
MIT License
357 stars 71 forks source link

Congratulation you are authenticated ! However there is nothing to do here #111

Open chanyshev opened 9 months ago

chanyshev commented 9 months ago

Hello I'm trying to set up integration with AD

Describe the bug Congratulation you are authenticated ! However there is nothing to do here ...

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://mattermost.website.com/oauth/access_token'
  2. I fill in the login and password
  3. See error "Congratulation you are authenticated ! However there is nothing to do here ..."

Provide commands, Mattermost and PHP logs or configuration file if possible.

  php:
    image: php-ldap-pgsql
    container_name: ldap-oauth
    volumes:
      - ./oauth:/var/www/html/oauth
    ports:
      - "9000:9000"
    environment:
      ldap_host: ldap://$ip:389/
      ldap_port: 389
      ldap_version: 3
      ldap_search_attribute: "sAMAccountName"
      ldap_base_dn: "ou=users,dc=domain,dc=com"
      ldap_filter: "(&(objectClass=user))"
      ldap_bind_dn: "CN=mattermost,OU=Service users,OU=users,DC=domain,DC=com"
      ldap_bind_pass: "password"
      db_host: "database"
      db_port: "5432"
      db_type: "pgsql"
      db_name: "oauth_db"
      db_user: "oauth"
      db_pass: "password"
    depends_on:
      - database

Screenshots image

Project (please complete the following information):

Desktop (please complete the following information):

Additional context

mattermost-mattermost-1  | {"timestamp":"2023-11-17 07:15:00.004 Z","level":"error","msg":"Failed to get system bot","caller":"app/post.go:2165","error":"GetSystemBot: List of admins is empty."}
Acsigen commented 6 months ago

I just deployed the plugin. This is not actually a bug. This message appears when you access only the plugin login page and there is no redirect.

Just navigate to your Mattermost instance, login with local credentials, go to your profile info/security and switch authentication to GitLab SSO and follow the steps. image