1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24:21 +01:00

more debugging

This commit is contained in:
root 2015-04-14 22:15:58 +02:00
parent c8f0aa1051
commit 876cc238f9

View File

@ -34,14 +34,25 @@ role=dc
sambacmd=samba-tool sambacmd=samba-tool
adpass=qwertyP455 adpass=qwertyP455
echo "deploy AD"
printf '' > "${smbconffile}" && \ printf '' > "${smbconffile}" && \
${sambacmd} domain provision ${hostip} \ ${sambacmd} domain provision ${hostip} \
--domain="${domain}" --realm="${realm}" --dns-backend="${sambadns}" \ --domain="${domain}" --realm="${realm}" --dns-backend="${sambadns}" \
--targetdir="${targetdir}" --workgroup="${domain}" --use-rfc2307 \ --targetdir="${targetdir}" --workgroup="${domain}" --use-rfc2307 \
--configfile="${smbconffile}" --server-role="${role}" -d 1 --adminpass="${adpass}" && \ --configfile="${smbconffile}" --server-role="${role}" -d 1 --adminpass="${adpass}"
echo "Move configuration"
mv "${targetdir}/etc/smb.conf" "${smbconffile}" mv "${targetdir}/etc/smb.conf" "${smbconffile}"
sh -x /etc/init.d/samba restart mv /var/lib/samba/private/krb5.conf /etc/krb5.conf
sleep 5
sh -x /etc/init.d/samba start
sh -x /etc/init.d/samba-ad-dc start
sh -x /etc/init.d/smbd start
sh -x /etc/init.d/nmbd start
sleep 5 sleep 5