Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
unix charset = CP850
security = user
-encrypt passwords = yes
guest account = samba
unix password sync = false
-null passwords = yes
bind interfaces only = true
interfaces = green0 127.0.0.1
unix charset = $sambasettings{'UNIXCHARSET'}
security = $sambasettings{'SECURITY'}
-encrypt passwords = yes
guest account = $sambasettings{'GUESTACCOUNT'}
unix password sync = $sambasettings{'PASSWORDSYNC'}
-null passwords = yes
bind interfaces only = true
interfaces = $sambasettings{'INTERFACES'}
# Migrate configuration from Samba 3.6 to 4.x
sed -i /var/ipfire/samba/smb.conf \
-e "/^display charset =/d" \
+ -e "/^encrypt passwords =/d" \
+ -e "/^null passwords =/d" \
-e "/^socket options =/d" \
-e "/^syslog/d" \
-e "s/^security = share$/security = user/"