diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-27 21:58:25 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-03-27 21:58:25 +0200 |
commit | 9a14a9fff41d628ced31fea188bb5344bc6f48c3 (patch) | |
tree | de09b24ea25f075193cc79316727e287ddbb9d86 /docker/Dockerfile | |
parent | 7469b90fce44ca6ab27d88e991c74b71ab8f29e8 (diff) | |
download | kube-9a14a9fff41d628ced31fea188bb5344bc6f48c3.tar.gz kube-9a14a9fff41d628ced31fea188bb5344bc6f48c3.zip |
Fixed saslauthd authentication
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r-- | docker/Dockerfile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index f6eac989..a784d1ae 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile | |||
@@ -28,13 +28,16 @@ RUN dnf -y install google-noto-serif-fonts google-noto-sans-fonts | |||
28 | 28 | ||
29 | RUN useradd -d /home/developer -m developer | 29 | RUN useradd -d /home/developer -m developer |
30 | 30 | ||
31 | |||
32 | ADD rsyslog.conf /etc/rsyslog.conf | ||
31 | #Setup cyrus imap | 33 | #Setup cyrus imap |
32 | RUN echo 'altnamespace: 0' >> /etc/imapd.conf | 34 | ADD imapd.conf /etc/imapd.conf |
33 | RUN echo 'unixhierarchysep: 0' >> /etc/imapd.conf | ||
34 | RUN usermod -p `perl -e "print crypt("admin","Q4")"` cyrus | 35 | RUN usermod -p `perl -e "print crypt("admin","Q4")"` cyrus |
35 | RUN useradd -p `perl -e "print crypt("doe","Q4")"` doe | 36 | RUN useradd -p `perl -e "print crypt("doe","Q4")"` doe |
36 | RUN /usr/bin/sscg --package cyrus-imapd --cert-file /etc/pki/cyrus-imapd/cyrus-imapd.pem --cert-key-file /etc/pki/cyrus-imapd/cyrus-imapd-key.pem --ca-file /etc/pki/cyrus-imapd/cyrus-imapd-ca.pem | 37 | RUN /usr/bin/sscg --package cyrus-imapd --cert-file /etc/pki/cyrus-imapd/cyrus-imapd.pem --cert-key-file /etc/pki/cyrus-imapd/cyrus-imapd-key.pem --ca-file /etc/pki/cyrus-imapd/cyrus-imapd-ca.pem |
37 | RUN saslauthd -a pam && /usr/libexec/cyrus-imapd/master -d && sleep 1 && echo "cm user.doe" | cyradm --auth PLAIN -u cyrus -w admin localhost | 38 | RUN saslauthd -a shadow && /usr/libexec/cyrus-imapd/master -d && sleep 1 && echo "cm user.doe" | cyradm --auth PLAIN -u cyrus -w admin localhost |
39 | #RUN echo "doe" | saslpasswd2 -p -u example.org doe | ||
40 | #RUN chown cyrus:root /etc/sasldb2 | ||
38 | 41 | ||
39 | #DBus For KCacheGrind | 42 | #DBus For KCacheGrind |
40 | RUN dbus-uuidgen --ensure | 43 | RUN dbus-uuidgen --ensure |
@@ -78,6 +81,3 @@ RUN sudo chown developer:developer /home/developer/.gnupg -R | |||
78 | RUN gpg2 --batch --generate-key /home/developer/keyconfig | 81 | RUN gpg2 --batch --generate-key /home/developer/keyconfig |
79 | #Better qt support | 82 | #Better qt support |
80 | RUN git clone https://github.com/Lekensteyn/qt5printers.git ~/.gdb/qt5printers/ | 83 | RUN git clone https://github.com/Lekensteyn/qt5printers.git ~/.gdb/qt5printers/ |
81 | |||
82 | ADD rsyslog.conf /etc/rsyslog.conf | ||
83 | ADD imapd.conf /etc/imapd.conf | ||