develop
asamoukin 16 years ago
parent 6fb332dc0c
commit 23815abcd0

@ -132,6 +132,9 @@ chown=root:root
[share]
path = #-sr_samba_share_path-#
#?pkg(openldap)>2.4&ld_repl_set==on#
magic script = .reprun
#pkg#
comment = Share Files
browseable = yes
writable = yes

@ -313,6 +313,7 @@ class fillVars(object, cl_base.glob_attr):
filter="(|(|(ou:dn:=Samba)(ou:dn:=Unix))(ou:dn:=Replication))"
searchbase="%s"
attrs="*,+"
schemachecking=on
bindmethod=simple
binddn="%s"
credentials=%s\n""" %(replIds[i],
@ -328,6 +329,7 @@ class fillVars(object, cl_base.glob_attr):
filter="(|(ou:dn:=Unix)(ou:dn:=Replication))"
searchbase="%s"
attrs="*,+"
schemachecking=on
bindmethod=simple
binddn="%s"
credentials=%s\n""" %(replIds[i],

@ -5173,6 +5173,18 @@ outdated. If the backup is obsolete, use cl-backup."))
for service in servInstalled:
if service == "ldap":
continue
# Добавляем файл в директорию share в случае репликации
# сервиса Samba
sharePath = self.clVars.Get("sr_samba_share_path")
# Файл для определения к какому из серверов подключился клиент
fileReplRun = os.path.join(sharePath,".reprun")
if service == "samba" and self.clVars.Get("sr_ldap_set"):
if not os.path.exists(fileReplRun):
# Создаем файл
self.createUserFile(fileReplRun,"",0,0,mode=0644)
else:
if os.path.exists(fileReplRun):
os.remove(fileReplRun)
if not flagError:
files = self.applyProfilesFromService(service, verbose)
if not files:

Loading…
Cancel
Save