mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
samba: Remove deprecated encrypt/null passwords options
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -16,10 +16,8 @@ smb ports = 445 139
|
|||||||
unix charset = CP850
|
unix charset = CP850
|
||||||
|
|
||||||
security = user
|
security = user
|
||||||
encrypt passwords = yes
|
|
||||||
guest account = samba
|
guest account = samba
|
||||||
unix password sync = false
|
unix password sync = false
|
||||||
null passwords = yes
|
|
||||||
|
|
||||||
bind interfaces only = true
|
bind interfaces only = true
|
||||||
interfaces = green0 127.0.0.1
|
interfaces = green0 127.0.0.1
|
||||||
|
|||||||
@@ -294,10 +294,8 @@ dos charset = $sambasettings{'DOSCHARSET'}
|
|||||||
unix charset = $sambasettings{'UNIXCHARSET'}
|
unix charset = $sambasettings{'UNIXCHARSET'}
|
||||||
|
|
||||||
security = $sambasettings{'SECURITY'}
|
security = $sambasettings{'SECURITY'}
|
||||||
encrypt passwords = yes
|
|
||||||
guest account = $sambasettings{'GUESTACCOUNT'}
|
guest account = $sambasettings{'GUESTACCOUNT'}
|
||||||
unix password sync = $sambasettings{'PASSWORDSYNC'}
|
unix password sync = $sambasettings{'PASSWORDSYNC'}
|
||||||
null passwords = yes
|
|
||||||
|
|
||||||
bind interfaces only = true
|
bind interfaces only = true
|
||||||
interfaces = $sambasettings{'INTERFACES'}
|
interfaces = $sambasettings{'INTERFACES'}
|
||||||
|
|||||||
@@ -36,6 +36,8 @@ restore_backup ${NAME}
|
|||||||
# Migrate configuration from Samba 3.6 to 4.x
|
# Migrate configuration from Samba 3.6 to 4.x
|
||||||
sed -i /var/ipfire/samba/smb.conf \
|
sed -i /var/ipfire/samba/smb.conf \
|
||||||
-e "/^display charset =/d" \
|
-e "/^display charset =/d" \
|
||||||
|
-e "/^encrypt passwords =/d" \
|
||||||
|
-e "/^null passwords =/d" \
|
||||||
-e "/^socket options =/d" \
|
-e "/^socket options =/d" \
|
||||||
-e "/^syslog/d" \
|
-e "/^syslog/d" \
|
||||||
-e "s/^security = share$/security = user/"
|
-e "s/^security = share$/security = user/"
|
||||||
|
|||||||
Reference in New Issue
Block a user