Skip to content

Commit

Permalink
more debuging for ad-dc setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kakwa committed Jul 22, 2016
1 parent cfe31ae commit bb05934
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/test_env/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*

Expand Down

0 comments on commit bb05934

Please sign in to comment.