我们使用Mattermost使用“Production”设置,如Mattermost文档中所述。对于身份验证,我们使用GitHub:Enterprise联合。
为了建立我们最重要的团队,我导入了整个史莱克历史。这导致了每个还没有通过GitHub登录到Mattermost的人的问题:企业无法登录。“最有用的”返回错误消息
“现有用户已附加到您的gitlab帐户”
我如何解决这个问题,而不必设置一个新的Mattermost实例,并强制每个人在导入Slack数据之前登录一次?
发布于 2016-06-15 16:47:41
先决条件
为了让它起作用,你需要
步骤
ssh进入最重要的vm/机器(其中最重要的码头容器正在运行)。docker ps并注意容器mattermostdocker_db的散列。我们假设它从5c23开始。docker inspect 5c23 | grep IPAddress。注意容器的IP地址。我们假设它是172.17.0.2。- On debian: `apt-get install postgresql-client`
- `psql -h 172.17.0.2 -p 5432 -d mattermost -U postgres -W`
- The (default?) password seems to be `postgres`.
- `mattermost-# select email, authdata from users where email = 'john@example.com'`;
https://github.example.com。- Click on the rocket symbol, or
- [https://github.example.com/stafftools](https://github.example.com/stafftools)
john,它对应于https://github.example.com/john- [https://github.example.com/stafftools/users/john/security](https://github.example.com/stafftools/users/john/security)
- `update users set authservice = 'gitlab', authdata = '37' where email = 'john@example.com' ;`
\q退出psql控制台- `mattermost-# \q`
备注
;完成psql中的每个语句gitlab,而不是github,即使您使用GitHub:Enterprisehttps://stackoverflow.com/questions/37840650
复制相似问题