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