From 6104b1fe98798f275d0fe5f81a678941ab29b184 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 16 Jan 2014 15:08:16 +1300 Subject: samba-tool classicupgrade: Remove unsued upgrade_smbconf Signed-off-by: Andrew Bartlett Reviewed-By: Jelmer Vernooij Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Thu Jan 23 23:51:56 CET 2014 on sn-devel-104 --- python/samba/upgrade.py | 117 ------------------------------------------------ 1 file changed, 117 deletions(-) (limited to 'python') diff --git a/python/samba/upgrade.py b/python/samba/upgrade.py index 67dfe88f93..c06454a78b 100644 --- a/python/samba/upgrade.py +++ b/python/samba/upgrade.py @@ -371,123 +371,6 @@ def import_wins(samba4_winsdb, samba3_winsdb): "maxVersion": str(version_id)}) -smbconf_keep = [ - "dos charset", - "unix charset", - "display charset", - "comment", - "path", - "directory", - "workgroup", - "realm", - "netbios name", - "netbios aliases", - "netbios scope", - "server string", - "interfaces", - "bind interfaces only", - "security", - "auth methods", - "encrypt passwords", - "null passwords", - "obey pam restrictions", - "password server", - "smb passwd file", - "private dir", - "passwd chat", - "lanman auth", - "ntlm auth", - "client NTLMv2 auth", - "client lanman auth", - "client plaintext auth", - "read only", - "hosts allow", - "hosts deny", - "log level", - "debuglevel", - "log file", - "smb ports", - "large readwrite", - "max protocol", - "min protocol", - "unicode", - "read raw", - "write raw", - "disable netbios", - "nt status support", - "max mux", - "max xmit", - "name resolve order", - "max wins ttl", - "min wins ttl", - "time server", - "unix extensions", - "use spnego", - "server signing", - "client signing", - "max connections", - "paranoid server security", - "socket options", - "strict sync", - "max print jobs", - "printable", - "print ok", - "printer name", - "printer", - "map system", - "map hidden", - "map archive", - "preferred master", - "prefered master", - "local master", - "browseable", - "browsable", - "wins server", - "wins support", - "csc policy", - "strict locking", - "preload", - "auto services", - "lock dir", - "lock directory", - "pid directory", - "socket address", - "copy", - "include", - "available", - "volume", - "fstype", - "panic action", - "msdfs root", - "host msdfs", - "winbind separator"] - - -def upgrade_smbconf(oldconf, mark): - """Remove configuration variables not present in Samba4 - - :param oldconf: Old configuration structure - :param mark: Whether removed configuration variables should be - kept in the new configuration as "samba3:" - """ - data = oldconf.data() - newconf = LoadParm() - - for s in data: - for p in data[s]: - keep = False - for k in smbconf_keep: - if smbconf_keep[k] == p: - keep = True - break - - if keep: - newconf.set(s, p, oldconf.get(s, p)) - elif mark: - newconf.set(s, "samba3:" + p, oldconf.get(s, p)) - - return newconf - SAMBA3_PREDEF_NAMES = { 'HKLM': registry.HKEY_LOCAL_MACHINE, } -- cgit