git-svn-id: http://svn.calculate.ru/calculate2/calculate-lib/trunk@36 c91db197-33c1-4113-bf15-f8a5c547ca64

develop
okovalenko 16 years ago
parent cbb0e3bdce
commit 693c540c17

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

Loading…
Cancel
Save