|
|
|
@ -1150,7 +1150,7 @@ class Client(commandServer, encrypt):
|
|
|
|
|
error = str(e)
|
|
|
|
|
if error:
|
|
|
|
|
if self.getMountUserPaths(userDir):
|
|
|
|
|
raise ClientError(_("Failed to use crypt directory"))
|
|
|
|
|
raise ClientError(_("Failed to use directory encryption"))
|
|
|
|
|
for source in (userDir,ecryptfsPath):
|
|
|
|
|
if path.exists(source):
|
|
|
|
|
if listDirectory(source):
|
|
|
|
@ -1172,7 +1172,7 @@ class Client(commandServer, encrypt):
|
|
|
|
|
'-u',userName,'-b','-l',userPwd,stderr=STDOUT)
|
|
|
|
|
if e.failed():
|
|
|
|
|
raise ClientError(e.read()+
|
|
|
|
|
_("Failed to create encrypt user profile"))
|
|
|
|
|
_("Failed to create the encrypted user profile"))
|
|
|
|
|
|
|
|
|
|
def initEnv(self):
|
|
|
|
|
"""
|
|
|
|
@ -2276,7 +2276,7 @@ class Client(commandServer, encrypt):
|
|
|
|
|
p = process('/usr/bin/ecryptfs-rewrap-passphrase',passphraseFile, "-",stderr=STDOUT)
|
|
|
|
|
p.write("%s\n%s"%(curPassword,password))
|
|
|
|
|
if p.failed():
|
|
|
|
|
raise ClientError(p.read()+_("Failed to rewrap passphrase"))
|
|
|
|
|
raise ClientError(p.read()+_("Failed to rewrap the passphrase"))
|
|
|
|
|
self.printSUCCESS(_("%s's password changed")%
|
|
|
|
|
self.clVars.Get('ur_login'))
|
|
|
|
|
self.printSUCCESS(_("The password will be changed when you log "
|
|
|
|
|