You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM centos:8
RUN cd /etc/yum.repos.d/ && sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN dnf module -y enable nodejs:16
RUN dnf install -y nodejs npm
RUN dnf install -y python3 make gcc-c++
RUN npm install -g --unsafe-perm carta-controller
RUN curl https://packages.cartavis.org/cartavis-el8.repo --output /etc/yum.repos.d/cartavis.repo
RUN dnf -y install 'dnf-command(config-manager)'
RUN dnf -y install epel-release
RUN dnf -y config-manager --set-enabled powertools
RUN dnf -y install carta-backend
RUN adduser carta
RUN mkdir -p /var/log/carta
RUN chown -R carta /var/log/carta
COPY ./sudoer-carta-controller /etc/sudoers.d/carta_controller
RUN mkdir /etc/carta
RUN chown -R carta /etc/carta
WORKDIR /etc/carta
RUN openssl genrsa -out carta_private.pem 4096
RUN openssl rsa -in carta_private.pem -outform PEM -pubout -out carta_public.pem
COPY ./config.json /etc/carta/config.json
COPY ./backend.json /etc/carta/backend.json
RUN groupadd carta-users
RUN useradd -G carta-users -p $(openssl passwd -crypt test) bob
RUN groupadd shadow
RUN chgrp shadow /etc/shadow
RUN chmod g+r /etc/shadow
RUN usermod -a -G shadow carta
EXPOSE 8000
CMD carta-controller
Where
/etc/carta/config.json has the next:
{
"$schema": "./config_schema.json",
"authProviders": {
"pam": {
"publicKeyLocation": "/etc/carta/carta_public.pem",
"privateKeyLocation": "/etc/carta/carta_private.pem",
"issuer": "carta-core"
}
},
"database": {
"uri": "mongodb://192.168.100.25:27017",
"databaseName": "CARTA"
},
"serverAddress": "http://192.168.100.25:8000",
"processCommand": "/usr/bin/carta_backend",
"killCommand": "/usr/local/bin/carta-kill-script",
"rootFolderTemplate": "/",
"baseFolderTemplate": "/",
"dashboard": {
"bannerColor": "#d2dce5",
"backgroundColor": "#f6f8fa",
"infoText": "Welcome to the CARTA server.",
"loginText": "<span>Please enter your login credentials:</span>",
"footerText": "<span>If you have any problems, comments or suggestions, please <a href='mailto:[email protected]'>contact us.</a></span>"
}
}
When I connect from NGINX I see the LoginPage and I try with bob and test as user and it says: Invalid username/password combination
I added other users with useradd manually and the password inserted manually as well as adding it to the carta-users group, but the same results.
Then I checked inside the container the next
sudo su - carta
carta-controller -verbose -test mparra2
Hi @manuparra. Is this still a live issue, or are you intentionally moving to direct LDAP auth instead of PAM (or found some other way of resolving this)? (I only noticed this issue after noticing you'd opened #135).
(Not quite sure at initial glance what's up with the , paired with the username in those messages offhand if not a typo in the original command).
Hi @daikema! We did not manage to solve it, so we gave up at that time. You can close this issue and if we try again at another time we will let you know and we will restart it.
Hi! I'm dockerizing Carta Controller:
Where
/etc/carta/config.json
has the next:When I connect from NGINX I see the LoginPage and I try with
bob
andtest
as user and it says:Invalid username/password combination
I added other users with
useradd
manually and the password inserted manually as well as adding it to thecarta-users
group, but the same results.Then I checked inside the container the next
And this is the result:
Any ideas?
The text was updated successfully, but these errors were encountered: