VirtualMailManager/Handler.py
branchv0.6.x
changeset 259 6c699837b4d4
parent 258 9bf8d97ced88
parent 256 ae80282301a3
child 262 6eea85d8b91d
equal deleted inserted replaced
257:5b8fde01e4f0 259:6c699837b4d4
   372             return '{%s}%s' % (self._scheme, self.__pwCrypt(password))
   372             return '{%s}%s' % (self._scheme, self.__pwCrypt(password))
   373         elif self._scheme in ['SHA', 'SHA1']:
   373         elif self._scheme in ['SHA', 'SHA1']:
   374             return '{%s}%s' % (self._scheme, self.__pwSHA1(password))
   374             return '{%s}%s' % (self._scheme, self.__pwSHA1(password))
   375         elif self._scheme in ['PLAIN-MD5', 'LDAP-MD5', 'DIGEST-MD5']:
   375         elif self._scheme in ['PLAIN-MD5', 'LDAP-MD5', 'DIGEST-MD5']:
   376             return '{%s}%s' % (self._scheme, self.__pwMD5(password, user))
   376             return '{%s}%s' % (self._scheme, self.__pwMD5(password, user))
   377         elif self._scheme == 'MD4':
   377         elif self._scheme == 'PLAIN-MD4':
   378             return '{%s}%s' % (self._scheme, self.__pwMD4(password))
   378             return '{%s}%s' % (self._scheme, self.__pwMD4(password))
   379         elif self._scheme in ['SMD5', 'SSHA', 'CRAM-MD5', 'HMAC-MD5',
   379         elif self._scheme in ['SMD5', 'SSHA', 'CRAM-MD5', 'HMAC-MD5',
   380                 'LANMAN', 'NTLM', 'RPA']:
   380                 'LANMAN', 'NTLM', 'RPA']:
   381             cmd_args = [self._Cfg.dget('bin.dovecotpw'), '-s', self._scheme,
   381             cmd_args = [self._Cfg.dget('bin.dovecotpw'), '-s', self._scheme,
   382                         '-p', password]
   382                         '-p', password]