|
|
|
@ -18476,10 +18476,11 @@ in LDAP")%zoneName)
|
|
|
|
|
"""Проверка ключа sdb-ldap bind"""
|
|
|
|
|
pathBind = "/var/db/pkg/net-dns"
|
|
|
|
|
if os.path.exists(pathBind):
|
|
|
|
|
subPathsBind = filter(lambda x: "bind" in x, os.listdir("."))
|
|
|
|
|
subPathsBind = filter(lambda x: re.search("bind-\d",x),\
|
|
|
|
|
os.listdir(pathBind))
|
|
|
|
|
if subPathsBind:
|
|
|
|
|
pathsUSE = (os.path.join(pathBind,subPathsBind,"IUSE"),
|
|
|
|
|
os.path.join(pathBind,subPathsBind,"USE"))
|
|
|
|
|
pathsUSE = (os.path.join(pathBind,subPathsBind[0],"IUSE"),
|
|
|
|
|
os.path.join(pathBind,subPathsBind[0],"USE"))
|
|
|
|
|
if filter(lambda x: not os.path.exists(x), pathsUSE):
|
|
|
|
|
return False
|
|
|
|
|
for pathUSE in pathsUSE:
|
|
|
|
|