Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-69 adds an chrony server to samba-dc to provide NTP for windows clients #87

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion images/samba-dc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ ARG SAMBA_VERSION=4.15.7-r0

COPY *.conf.j2 /root/
COPY entrypoint.sh /usr/local/bin/
COPY chrony.conf /etc/chrony/
RUN apk add --update --no-cache krb5 ldb-tools samba-dc=$SAMBA_VERSION tdb \
bind bind-libs bind-tools libcrypto1.1 libxml2 tzdata && \
bind bind-libs bind-tools libcrypto1.1 libxml2 tzdata chrony && \
chmod 0755 /usr/local/bin/entrypoint.sh

VOLUME /etc/samba /var/lib/samba
Expand Down
8 changes: 8 additions & 0 deletions images/samba-dc/chrony.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pool pool.ntp.org iburst
initstepslew 10 pool.ntp.org
driftfile /var/lib/chrony/chrony.drift
rtcsync
cmdport 0

allow all
ntpsigndsocket /var/lib/samba/ntp_signd/socket
1 change: 1 addition & 0 deletions images/samba-dc/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ for file in $(ls -A /etc/samba/conf.d/*.conf); do
done
ln -fns /var/lib/samba/private/krb5.conf /etc/

chronyd -4 -d &
exec samba --model=$MODEL -i </dev/null