|
|
@ -6622,7 +6622,6 @@ class servFtp(shareLdap):
|
|
|
|
userPwdHash =\
|
|
|
|
userPwdHash =\
|
|
|
|
self.execProg("slappasswd -s %s -h %s"\
|
|
|
|
self.execProg("slappasswd -s %s -h %s"\
|
|
|
|
%(userPwd, self.userCrypt))
|
|
|
|
%(userPwd, self.userCrypt))
|
|
|
|
userPwdHash = userPwd
|
|
|
|
|
|
|
|
if resSearch[0][0][1].has_key('userPassword'):
|
|
|
|
if resSearch[0][0][1].has_key('userPassword'):
|
|
|
|
modAttrs.append((ldap.MOD_REPLACE, 'userPassword',
|
|
|
|
modAttrs.append((ldap.MOD_REPLACE, 'userPassword',
|
|
|
|
userPwdHash))
|
|
|
|
userPwdHash))
|
|
|
@ -6630,7 +6629,7 @@ class servFtp(shareLdap):
|
|
|
|
modAttrs.append((ldap.MOD_ADD, 'userPassword',
|
|
|
|
modAttrs.append((ldap.MOD_ADD, 'userPassword',
|
|
|
|
userPwdHash))
|
|
|
|
userPwdHash))
|
|
|
|
if modAttrs:
|
|
|
|
if modAttrs:
|
|
|
|
uid = res[0][0][1]['uid'][0]
|
|
|
|
uid = resSearch[0][0][1]['uid'][0]
|
|
|
|
DN = self.addDN("uid="+uid, self.relUsersDN)
|
|
|
|
DN = self.addDN("uid="+uid, self.relUsersDN)
|
|
|
|
if not self.modAttrsDN(DN, modAttrs):
|
|
|
|
if not self.modAttrsDN(DN, modAttrs):
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|