コード例 #1
0
ファイル: encrypt.py プロジェクト: nocl/calculate-2.2-lib
 def createCnfFile(self, textCnf):
     '''Generate openssl.cnf file'''
     if not os.path.exists(self.sslFile):
         self.printERROR(_("%s not found")%self.sslFile)
         return False
     strData = time.strftime("%Y%m%d%H%M%S",time.localtime(time.time()))
     cnfFileName = "%s.%s.cnf" %(strData,genpassword())
     if not os.path.exists(self.tmpDir):
         self._createDir(self.tmpDir)
     cnfFile = os.path.join(self.tmpDir,cnfFileName)
     self._createFile(cnfFile, textCnf)
     return cnfFile
コード例 #2
0
 def get_ld_unix_pw(self):
     """пароль администратора сервиса Unix"""
     return cl_utils.genpassword().strip()
コード例 #3
0
 def get_ld_admin_pw(self):
     """пароль root"""
     return cl_utils.genpassword().strip()
コード例 #4
0
 def get_ld_temp_pw(self):
     """пароль временного пользователя root"""
     return cl_utils.genpassword().strip()
コード例 #5
0
 def get_ld_dns_pw(self):
     """пароль администратора сервиса DNS"""
     return cl_utils.genpassword().strip()
コード例 #6
0
 def get_ld_repl_pw(self):
     """пароль ветки репликации"""
     return cl_utils.genpassword().strip()
コード例 #7
0
 def get_ld_proxy_pw(self):
     """пароль администратора сервиса Proxy"""
     return cl_utils.genpassword().strip()
コード例 #8
0
 def get_ld_jabber_pw(self):
     """пароль администратора сервиса Jabber"""
     return cl_utils.genpassword().strip()
コード例 #9
0
 def get_ld_mail_pw(self):
     """пароль администратора сервиса Mail"""
     return cl_utils.genpassword().strip()
コード例 #10
0
 def get_ld_samba_pw(self):
     """пароль администратора сервиса Samba"""
     return cl_utils.genpassword().strip()
コード例 #11
0
ファイル: cl_fill.py プロジェクト: nocl/calculate-2.2-lib
 def get_ld_admin_pw(self):
     """password root"""
     return genpassword()
コード例 #12
0
ファイル: cl_fill_ldap.py プロジェクト: nocl/calculate-3-ldap
 def get_ld_temp_pw(self):
     """пароль временного пользователя root"""
     return genpassword()
コード例 #13
0
 def get_cl_builder_iso_path(self):
     directory = "/var/calculate/tmp/iso"
     newDirectoryName = directory
     while path.exists(newDirectoryName):
         newDirectoryName = "%s.%s"%(directory,genpassword(8))
     return newDirectoryName