Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all 25529 articles
Browse latest View live

ADFS SAML information users_file

$
0
0

@mathurin I wrote a new version more though for Active Directory, and with pagination support.

import ldap
import json
import getpass

ldap_host = input('Ldap Host (example ldap://localhost:389): ')
base_dn = input('Base DN (example dc=mm,dc=test,dc=com): ')
bind_dn = input('Bind DN (example ORGANIZATION\username): ')
password = getpass.getpass('Password: ')
user_object_class = input('User object class (example organizationalPerson): ')
username_field = input('Username field (example sAMAccountName): ')
mail_field = input('Mail field (example mail): ')

l = ldap.initialize(ldap_host)
l.simple_bind_s(bind_dn, password)
page_control = ldap.controls.libldap.SimplePagedResultsControl(True, size=1000, cookie='')
r = l.search_ext(base_dn, ldap.SCOPE_SUBTREE, '(objectClass='+user_object_class+')', [username_field, mail_field], serverctrls=[page_control])

mapping = {}
while True:
    rtype, rdata, rmsgid, serverctrls = l.result3(r)

    for dn, entry in rdata:
        if mail_field in entry and len(entry[mail_field]) >= 1 and username_field in entry and len(entry[username_field]) >= 1:
            mapping[entry[mail_field][0].decode('utf-8')] = entry[username_field][0].decode('utf-8')

    controls = [control for control in serverctrls if control.controlType == ldap.controls.libldap.SimplePagedResultsControl.controlType]
    if not controls:
        print('The server ignores RFC 2696 control')
        break
    if not controls[0].cookie:
        break
    page_control.cookie = controls[0].cookie
    r = l.search_ext(base_dn, ldap.SCOPE_SUBTREE, '(objectClass='+user_object_class+')', [username_field, mail_field], serverctrls=[page_control])

with open("saml_users.json", "w") as fd:
    json.dump(mapping, fd)

Upgraded to v5.6, Get an error when attaching files

$
0
0

Hi @lindy65, Strange that you weren’t able to reproduce the issue. Could be something specific to our setup. I saw that 5.6.1 was released yesterday. I’ll upgrade either today after work or tomorrow when I can do it without interrupting the users.

I’ll definitely post back with the results. Hopefully, I won’t see the issue, but if I do, I’ll do more testing while I have it installed to see if I can figure out a cause.

Thank you all for your help! :grinning:

JIRA Plugin "not configured"

$
0
0

Check if you have one or two jira plugin within the plugin folder

Error when i upload Picture from New Android App

$
0
0

Thanks @Nicolas for the report.

A few questions to help us troubleshoot the issue:

  1. What kind of an error are you seeing? Is it that picture upload doesn’t work?
  2. How are you uploading the picture? Via an extension or directly in the Mattermost app?
  3. What Android version do you have, and which device? (E.g. Android 8.0, Samsung Galaxy S8)

If you need any clarifications on the above questions, don’t hesitate to let me know!

JIRA Plugin "not configured"

$
0
0

@ShakaZzzz @sanjisanjisanji

  1. Which version did you upgrade from? 5.5?
  2. Also, do you seen any errors in the Server Logs (System Console > Logs) that would indicate a potential cause. Is it the 403 error you’re referencing above?

Missing Messages on iOS App

iOS App Message Stuck in Send

$
0
0

Hi all,

MM Server: 5.6
iOS: 12.1.1
MM iOS App: 1.15

I have some messages getting stuck in “send” state. They never get delivered and It seems MM app stop trying to send after a while.

They are displayed grayed out at the bottom and just stay there.

The only way to remove those is by “reset cache”.

Cheers

JIRA Plugin "not configured"


Missing Messages on iOS App

iOS App Message Stuck in Send

ADFS SAML information users_file

$
0
0

Great holiday gift - thank you so much for this!

Upgraded to v5.6, Get an error when attaching files

$
0
0

I’ve upgraded to 5.6.1 and everything seems to be good. No issues attaching files to messages. :+1: Thank you, I appreciate the help.

How to disable Youtube previews?

$
0
0

is there a possibility to disable Youtube preview images when a youtube link is posted?
Because with the preview the browser does already load an image from an external server which is not really EU GDPR compliant.
For example a video link like the link below which automatically does create a preview image.
Or is the image stored locally inside the Mattermost server when the link is posted and then accessed from there?

how it looks like in Mattermost:
image

Upgraded to v5.6, Get an error when attaching files

How to disable Youtube previews?

$
0
0

Hey @GuidoD - indeed there is!

If you go to System Console > Customization > Posts, there is a setting for enabling/disabling website link previews. If you turn that setting off, it’ll disable all link previews, including YouTube previews.

https://docs.mattermost.com/administration/config-settings.html#enable-link-previews

Note: Make sure you have Mattermost 5.4 or later installed. Earlier versions had a bug where YouTube previews were not affected by this setting.

Let me know if you have any questions :slight_smile:


Error connecting to Zapier

$
0
0

Summary

Adding an OAuth2 connection to zapier produces “invalid_request: Supplied redirect_uri did not match registered callback_url

Steps to reproduce

  1. On a Mattermost Team docker installation, from the Mattermost System Console enable incoming webhooks, outgoing webhooks, custom slash commands, OAuth 2.0 service provider,

  2. Then from the Integrations menu for my team, create a new OAuth 2.0 application for Zapier, following the directions at https://docs.mattermost.com/integrations/zapier.html#register-zapier-as-an-oauth-2-0-application, using callback URL https://zapier.com/dashboard/auth/oauth/return/MattermostDevAPI/

  3. Next, at Zapier, create a new connected account for Mattermost, providing my Mattermost server URL with no trailing slash, the client ID and client secret copied from the Mattermost integration.

  4. Click “Yes, continue,”

Expected behavior

Successful registration of the connected account.

Observed behavior

Error message from my mattermost server: “invalid_request: Supplied redirect_uri did not match registered callback_url

The log (on debug setting) shows

{"level":"debug","ts":1545597347.7134793,"caller":"web/handlers.go:50","msg":"GET - /oauth/authorize"}
{"level":"debug","ts":1545597347.8739557,"caller":"web/handlers.go:50","msg":"GET - /error"}
{"level":"debug","ts":1545597348.4264553,"caller":"web/handlers.go:50","msg":"GET - /api/v4/config/client"}
{"level":"debug","ts":1545597348.426538,"caller":"web/handlers.go:50","msg":"GET - /api/v4/license/client"}
{"level":"debug","ts":1545597348.4576566,"caller":"web/handlers.go:50","msg":"GET - /api/v4/users/me"}
{"level":"debug","ts":1545597348.4589357,"caller":"web/handlers.go:50","msg":"GET - /api/v4/users/me/preferences"}
{"level":"debug","ts":1545597348.5027037,"caller":"web/handlers.go:50","msg":"GET - /api/v4/users/me/teams"}
{"level":"debug","ts":1545597348.5081077,"caller":"web/handlers.go:50","msg":"GET - /api/v4/users/me/teams/members"}
{"level":"debug","ts":1545597348.5148346,"caller":"web/handlers.go:50","msg":"GET - /api/v4/users/me/teams/unread"}
{"level":"debug","ts":1545597348.5615678,"caller":"web/handlers.go:50","msg":"GET - /api/v4/plugins/webapp"}
{"level":"debug","ts":1545597350.0335193,"caller":"web/handlers.go:50","msg":"GET - /api/v4/logs"}

JIRA Plugin "not configured"

Error connecting to Zapier

Linux Mattermost desktop start minimized from command line

$
0
0

Hello @wget. Sorry for a long response. Yes I do have a dbus installed and it works fine with i3. I don’t know exactly what you mean by

Because I don’t have any issues with that.

Here is the output of dbus-monitor when I start mattermost with --hidden option:

method call time=1545640115.193415 sender=:1.38 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method return time=1545640115.193441 sender=org.freedesktop.DBus -> destination=:1.38 serial=1 reply_serial=1
   string ":1.38"
signal time=1545640115.193457 sender=org.freedesktop.DBus -> destination=(null destination) serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.38"
   string ""
   string ":1.38"
signal time=1545640115.193500 sender=org.freedesktop.DBus -> destination=:1.38 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.38"
method call time=1545640115.193876 sender=:1.38 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',path='/org/freedesktop/DBus',arg0='org.gtk.vfs.Daemon'"
method return time=1545640115.193902 sender=org.freedesktop.DBus -> destination=:1.38 serial=3 reply_serial=2
method call time=1545640115.193958 sender=:1.38 -> destination=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=StartServiceByName
   string "org.gtk.vfs.Daemon"
   uint32 0
method return time=1545640115.193982 sender=org.freedesktop.DBus -> destination=:1.38 serial=4 reply_serial=3
   uint32 2
method call time=1545640115.194195 sender=:1.38 -> destination=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.gtk.vfs.Daemon"
method return time=1545640115.194219 sender=org.freedesktop.DBus -> destination=:1.38 serial=5 reply_serial=4
   string ":1.3"
method call time=1545640115.194418 sender=:1.38 -> destination=:1.3 serial=5 path=/org/gtk/vfs/mounttracker; interface=org.gtk.vfs.MountTracker; member=ListMountableInfo
method return time=1545640115.194826 sender=:1.3 -> destination=:1.38 serial=13 reply_serial=5
   array [
      struct {
         string "davs+sd"
         string "davs+sd"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "dav+sd"
         string "dav+sd"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "cdda"
         string "cdda"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "afp-server"
         string "afp"
         array [
         ]
         int32 548
         boolean true
      }
      struct {
         string "dns-sd"
         string "dns-sd"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "afp-volume"
         string "afp"
         array [
         ]
         int32 548
         boolean true
      }
      struct {
         string "http"
         string "http"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "computer"
         string "computer"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "ftp"
         string "ftp"
         array [
         ]
         int32 21
         boolean true
      }
      struct {
         string "trash"
         string "trash"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "archive"
         string "archive"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "ftps"
         string "ftps"
         array [
         ]
         int32 21
         boolean true
      }
      struct {
         string "localtest"
         string "localtest"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "admin"
         string "admin"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "recent"
         string "recent"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "davs"
         string "davs"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "dav"
         string "dav"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "ftpis"
         string "ftpis"
         array [
         ]
         int32 990
         boolean true
      }
      struct {
         string "burn"
         string "burn"
         array [
         ]
         int32 0
         boolean false
      }
      struct {
         string "sftp"
         string "sftp"
         array [
            string "ssh"
         ]
         int32 22
         boolean true
      }
      struct {
         string "network"
         string "network"
         array [
         ]
         int32 0
         boolean false
      }
   ]
method call time=1545640115.195891 sender=:1.38 -> destination=org.freedesktop.DBus serial=6 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',path='/org/freedesktop/DBus',arg0='org.gtk.vfs.Daemon'"
method return time=1545640115.195914 sender=org.freedesktop.DBus -> destination=:1.38 serial=6 reply_serial=6
method call time=1545640115.517371 sender=:1.39 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method return time=1545640115.517391 sender=org.freedesktop.DBus -> destination=:1.39 serial=1 reply_serial=1
   string ":1.39"
signal time=1545640115.517402 sender=org.freedesktop.DBus -> destination=(null destination) serial=6 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.39"
   string ""
   string ":1.39"
signal time=1545640115.517415 sender=org.freedesktop.DBus -> destination=:1.39 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.39"
method call time=1545640115.517540 sender=:1.39 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.gnome.SessionManager"
error time=1545640115.517559 sender=org.freedesktop.DBus -> destination=:1.39 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=2
   string "Could not get owner of name 'org.gnome.SessionManager': no such name"
signal time=1545640115.517768 sender=org.freedesktop.DBus -> destination=:1.39 serial=7 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.39"
signal time=1545640115.517785 sender=org.freedesktop.DBus -> destination=(null destination) serial=8 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.39"
   string ":1.39"
   string ""
method call time=1545640115.700885 sender=:1.40 -> destination=org.freedesktop.DBus serial=1 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=Hello
method return time=1545640115.700910 sender=org.freedesktop.DBus -> destination=:1.40 serial=1 reply_serial=1
   string ":1.40"
signal time=1545640115.700932 sender=org.freedesktop.DBus -> destination=(null destination) serial=9 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.40"
   string ""
   string ":1.40"
signal time=1545640115.700955 sender=org.freedesktop.DBus -> destination=:1.40 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.40"
method call time=1545640115.701066 sender=:1.40 -> destination=org.freedesktop.DBus serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal', path='/org/freedesktop/DBus/Local',interface='org.freedesktop.DBus.Local', member='Disconnected'"
method return time=1545640115.701105 sender=org.freedesktop.DBus -> destination=:1.40 serial=3 reply_serial=2
method call time=1545640115.701251 sender=:1.40 -> destination=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=ListNames
method return time=1545640115.701266 sender=org.freedesktop.DBus -> destination=:1.40 serial=4 reply_serial=3
   array [
      string "org.freedesktop.DBus"
      string "org.freedesktop.Notifications"
      string ":1.7"
      string "org.freedesktop.network-manager-applet"
      string ":1.8"
      string ":1.9"
      string ":1.40"
      string "org.freedesktop.systemd1"
      string "org.a11y.Bus"
      string ":1.24"
      string ":1.0"
      string "org.gtk.vfs.Daemon"
      string ":1.15"
      string ":1.2"
      string ":1.38"
      string ":1.27"
      string ":1.3"
      string ":1.28"
      string ":1.4"
      string ":1.5"
      string ":1.6"
   ]
method call time=1545640115.701515 sender=:1.40 -> destination=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal', path='/org/freedesktop/DBus/Local',interface='org.freedesktop.DBus.Local', member='Disconnected'"
method return time=1545640115.701535 sender=org.freedesktop.DBus -> destination=:1.40 serial=5 reply_serial=4
signal time=1545640115.701697 sender=org.freedesktop.DBus -> destination=:1.40 serial=10 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.40"
signal time=1545640115.701717 sender=org.freedesktop.DBus -> destination=(null destination) serial=11 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.40"
   string ":1.40"
   string ""

Override username and icon_url using posts request REST API

$
0
0

Hello there,
I creating a bot using REST API. I create an admin user in Mattermost with a personal token and allow overriding pictures and names in integrations.
I need to override the username and icon_url in api/v4/posts when post message using REST API.
But seems that in this case, it didn’t work.
I was spent quite a lot of time figuring out in the internet and doing requests by myself - but no luck.

I am wonder - do we have option to override username and icon_url in api/v4/posts?

Viewing all 25529 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>