mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 01:14:21 +01:00
more debuging for ad-dc setup
This commit is contained in:
parent
cfe31ae62b
commit
bb05934284
@ -24,6 +24,14 @@ cat /etc/hosts
|
|||||||
|
|
||||||
df -h
|
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
|
smbconffile=/etc/samba/smb.conf
|
||||||
domain=dc
|
domain=dc
|
||||||
realm=dc.ldapcherry.org
|
realm=dc.ldapcherry.org
|
||||||
@ -44,15 +52,14 @@ printf '' > "${smbconffile}" && \
|
|||||||
echo "Move configuration"
|
echo "Move configuration"
|
||||||
mv "${targetdir}/etc/smb.conf" "${smbconffile}"
|
mv "${targetdir}/etc/smb.conf" "${smbconffile}"
|
||||||
|
|
||||||
|
cat ${targetdir}/etc/smb.conf
|
||||||
|
|
||||||
mv /var/lib/samba/private/krb5.conf /etc/krb5.conf
|
mv /var/lib/samba/private/krb5.conf /etc/krb5.conf
|
||||||
|
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
/etc/init.d/samba stop
|
/etc/init.d/samba-ad-dc start
|
||||||
/etc/init.d/smbd stop
|
|
||||||
/etc/init.d/nmbd stop
|
|
||||||
/etc/init.d/samba-ad-dc restart
|
|
||||||
|
|
||||||
cat /var/log/samba/*
|
cat /var/log/samba/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user