Karim_Paul
(Karim Paul)
December 19, 2018, 2:15pm
1
Dear Team,
I am currently trying to install the following package to Mattermost team edition:
https://github.com/Crivaledaz/Mattermost-LDAP without any success,
It advises to cp -r oauth/ /var/www/html however, mattermost runs on a vhost, then I have no idea how to modify this,
Anyone has an advice?
Thank you
danb35
(Dan)
December 19, 2018, 2:28pm
2
Karim_Paul:
It advises to cp -r oauth/ /var/www/html however, mattermost runs on a vhost, then I have no idea how to modify this,
I’ve never worked with that package, but I’d expect the answer would be to copy the oauth directory to wherever mattermost is installed. Shouldn’t be too hard to figure out where that is.
Karim_Paul
(Karim Paul)
December 23, 2018, 8:57am
3
Thank you, I did it and it seems that it wants to call back on gitlabs website,
I am not sure if I implemented it correctly,
Any pointers?
dnutan
(Marc)
December 23, 2018, 11:18am
4
Do you have step-by-step instructions that others can follow?
Any concrete error from script output or logs?
Karim_Paul:
Any pointers?
hard to say, maybe you already have gone through this:
mattermost is located under /opt/mattermost
Make sure the correct url is set in config_init.sh
of Mattermost-LDAP and remove port from it if not required.
if init_postgres.sh
is failing remember that in nethserver mattermost implementation postgresdb comes from Red Hat SCL:
#
# NethServer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with NethServer. If not, see COPYING.
#
su - postgres -c "scl enable rh-postgresql94 -- psql --port=55432 -lqt | cut -d \| -f 1 | grep -q -w mattermost"
if [ $? -eq 1 ]; then # database do not exists
# create db and users
tmp_sql=`mktemp`
chmod a+r $tmp_sql
password=`perl -e "use NethServer::Password; print NethServer::Password::store('mattermost');"`
cat << EOF > $tmp_sql
CREATE database mattermost;
CREATE USER mattuser WITH PASSWORD '$password';
ALTER USER mattuser WITH SUPERUSER;
opened 12:00PM - 19 Nov 17 UTC
closed 10:16AM - 11 Feb 19 UTC
Hey!
Thank for the effort to support LDAP for Mattermost!
I'm having issue… with the latest Mattemost version (4.3.0)
The Mattermost server is installed on https://chat.mydomain.com/
The LDAP oauth setup is installed on https://chat.mydomain.com/oauth/
The issue I'm having is that the "Sign in with: Gitlab" link points to:
https://chat.mydomain.com/oauth/gitlab/login
and there is nothing to handle this url - I'm getting error 404
May be mattermost changed something or I'm missing some part of the configuration?
Martin