VirtualMailManager/VirtualMailManager.py
changeset 258 9bf8d97ced88
parent 238 8f56166a3283
equal deleted inserted replaced
247:dbcb29ac89fa 258:9bf8d97ced88
   409             return '{%s}%s' % (self.__scheme, self.__pwCrypt(password))
   409             return '{%s}%s' % (self.__scheme, self.__pwCrypt(password))
   410         elif self.__scheme in ['SHA', 'SHA1']:
   410         elif self.__scheme in ['SHA', 'SHA1']:
   411             return '{%s}%s' % (self.__scheme, self.__pwSHA1(password))
   411             return '{%s}%s' % (self.__scheme, self.__pwSHA1(password))
   412         elif self.__scheme in ['PLAIN-MD5', 'LDAP-MD5', 'DIGEST-MD5']:
   412         elif self.__scheme in ['PLAIN-MD5', 'LDAP-MD5', 'DIGEST-MD5']:
   413             return '{%s}%s' % (self.__scheme, self.__pwMD5(password, user))
   413             return '{%s}%s' % (self.__scheme, self.__pwMD5(password, user))
   414         elif self.__scheme == 'MD4':
   414         elif self.__scheme == 'PLAIN-MD4':
   415             return '{%s}%s' % (self.__scheme, self.__pwMD4(password))
   415             return '{%s}%s' % (self.__scheme, self.__pwMD4(password))
   416         elif self.__scheme in ['SMD5', 'SSHA', 'CRAM-MD5', 'HMAC-MD5',
   416         elif self.__scheme in ['SMD5', 'SSHA', 'CRAM-MD5', 'HMAC-MD5',
   417                 'LANMAN', 'NTLM', 'RPA']:
   417                 'LANMAN', 'NTLM', 'RPA']:
   418             cmd_args = [self.__Cfg.get('bin', 'dovecotpw'), '-s',
   418             cmd_args = [self.__Cfg.get('bin', 'dovecotpw'), '-s',
   419                         self.__scheme, '-p', password]
   419                         self.__scheme, '-p', password]