Comparison

plugins/mod_saslauth.lua @ 2647:0ddb3c4dc9d1

mod_saslauth: Log debug message with full error if cyrussasl couldn't be loaded
author Matthew Wild <mwild1@gmail.com>
date Mon, 15 Feb 2010 22:56:36 +0000
parent 2646:064efb684aff
child 2721:cf97b85c27b5
comparison
equal deleted inserted replaced
2646:064efb684aff 2647:0ddb3c4dc9d1
43 return cyrus_new(realm, module:get_option("cyrus_service_name") or "xmpp"); 43 return cyrus_new(realm, module:get_option("cyrus_service_name") or "xmpp");
44 end 44 end
45 else 45 else
46 sasl_backend = "builtin"; 46 sasl_backend = "builtin";
47 module:log("warn", "Failed to load Cyrus SASL, falling back to builtin auth mechanisms"); 47 module:log("warn", "Failed to load Cyrus SASL, falling back to builtin auth mechanisms");
48 module:log("debug", "Failed to load Cyrus because: %s", cyrus);
48 end 49 end
49 end 50 end
50 if not new_sasl then 51 if not new_sasl then
51 if sasl_backend ~= "builtin" then module:log("warn", "Unknown SASL backend %s", sasl_backend); end; 52 if sasl_backend ~= "builtin" then module:log("warn", "Unknown SASL backend %s", sasl_backend); end;
52 new_sasl = require "util.sasl".new; 53 new_sasl = require "util.sasl".new;