Added check for inequality netbios name and workgroup name, when you install Samba service

develop
Самоукин Алексей 15 years ago
parent d6901e60db
commit 39d02c0d9f

@ -6616,6 +6616,11 @@ options '-w, --workgroup'"))
# Задаем netbios имя
if options.has_key("n"):
netbios = options['n'].strip()
# Проверка на неравенство workgroup и netbios
if options.has_key("w") and workgroup == netbios:
self.printERROR(_("Value of command line option \
'-w, --workgroup' equal to value of command line option '-n, --netbios'"))
return False
self.clVars.Set("sr_samba_netbios",netbios)
# Удаляем из автозапуска демона
if not self.delDaemonAutostart("samba"):
@ -11889,7 +11894,7 @@ if %%errorlevel%%==0 NET USE T: \\\\%s\\ftp' %(netbios,netbios,netbios)
@adminConnectLdap
def isReplDNExists(self):
"""Существуют ли ветка репликации LDAP"""
"""Существует ли ветка репликации LDAP"""
if not self.isSysDNExists():
return False
sysLogin = self.clVars.Get("ld_ldap_login")

Loading…
Cancel
Save