|
|
@ -776,11 +776,11 @@ http://distro.ibiblio.org/pub/linux/distributions/gentoo"
|
|
|
|
cstr='%s cat /etc/smbldap-tools/smbldap_bind.conf | grep masterPw'\
|
|
|
|
cstr='%s cat /etc/smbldap-tools/smbldap_bind.conf | grep masterPw'\
|
|
|
|
% self.G_path
|
|
|
|
% self.G_path
|
|
|
|
res=cm(cstr)
|
|
|
|
res=cm(cstr)
|
|
|
|
rs=re.search('[^=]+="(.+)',res.strip())
|
|
|
|
rs=re.search('[^=]+="(.+)"',res.strip())
|
|
|
|
if rs:
|
|
|
|
if rs:
|
|
|
|
Set('soft_ldap_rootpw',rs.group(1),True)
|
|
|
|
Set('soft_ldap_rootpw',rs.group(1),True)
|
|
|
|
if not Get('soft_ldap_rootpw') or\
|
|
|
|
if not Get('soft_ldap_rootpw') or\
|
|
|
|
Get('soft_ldap_rootpw')=='secret':
|
|
|
|
Get('soft_ldap_rootpw')=="secret":
|
|
|
|
Set('soft_ldap_rootpw',cl_utils.genpassword().strip(),True)
|
|
|
|
Set('soft_ldap_rootpw',cl_utils.genpassword().strip(),True)
|
|
|
|
cstr='%s slappasswd -s %s -h %s'%\
|
|
|
|
cstr='%s slappasswd -s %s -h %s'%\
|
|
|
|
(self.G_path,\
|
|
|
|
(self.G_path,\
|
|
|
@ -790,7 +790,6 @@ http://distro.ibiblio.org/pub/linux/distributions/gentoo"
|
|
|
|
res=cm(cstr)
|
|
|
|
res=cm(cstr)
|
|
|
|
if res:
|
|
|
|
if res:
|
|
|
|
Set('soft_ldap_rootpw_hash',res.strip(),True)
|
|
|
|
Set('soft_ldap_rootpw_hash',res.strip(),True)
|
|
|
|
|
|
|
|
|
|
|
|
#*****************************************************************************
|
|
|
|
#*****************************************************************************
|
|
|
|
#Заполнение глобальных переменных
|
|
|
|
#Заполнение глобальных переменных
|
|
|
|
#*****************************************************************************
|
|
|
|
#*****************************************************************************
|
|
|
|