From bb0593428439088211c45877184a6589c6a48caf Mon Sep 17 00:00:00 2001 From: kakwa Date: Fri, 22 Jul 2016 21:19:38 +0200 Subject: [PATCH] more debuging for ad-dc setup --- tests/test_env/deploy.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/test_env/deploy.sh b/tests/test_env/deploy.sh index c782b42..0a5fc51 100755 --- a/tests/test_env/deploy.sh +++ b/tests/test_env/deploy.sh @@ -24,6 +24,14 @@ cat /etc/hosts df -h +/etc/init.d/samba stop +/etc/init.d/smbd stop +/etc/init.d/nmbd stop +/etc/init.d/samba-ad-dc stop + + +find /var/log/samba/ -type f -exec rm -f {} \; + smbconffile=/etc/samba/smb.conf domain=dc realm=dc.ldapcherry.org @@ -44,15 +52,14 @@ printf '' > "${smbconffile}" && \ echo "Move configuration" mv "${targetdir}/etc/smb.conf" "${smbconffile}" +cat ${targetdir}/etc/smb.conf + mv /var/lib/samba/private/krb5.conf /etc/krb5.conf sleep 5 -/etc/init.d/samba stop -/etc/init.d/smbd stop -/etc/init.d/nmbd stop -/etc/init.d/samba-ad-dc restart +/etc/init.d/samba-ad-dc start cat /var/log/samba/*