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] |