plugins/mod_saslauth.lua

changeset 296
21835c4fc34f
parent 295
bb078eb1f1de
child 297
15b375870b40
equal deleted inserted replaced
295:bb078eb1f1de 296:21835c4fc34f
48 local func = function(x) return x; end; 48 local func = function(x) return x; end;
49 if password then 49 if password then
50 if mechanism == "PLAIN" then 50 if mechanism == "PLAIN" then
51 return func, password; 51 return func, password;
52 elseif mechanism == "DIGEST-MD5" then 52 elseif mechanism == "DIGEST-MD5" then
53 return func, require "hashes".md5(node..":"..host..":"..password); 53 return func, require "md5".sum(node..":"..host..":"..password);
54 end 54 end
55 end 55 end
56 return func, nil; 56 return func, nil;
57 end 57 end
58 58

mercurial