# HG changeset patch # User Matthew Wild # Date 1274352740 -3600 # Node ID 8dfa246a44138385e779fa009dbfd07f3dda6da8 # Parent 0b8bd6f6a9c707825ce5a2f853b61d70f4f2e5d7# Parent 5e5137057b5f54860e5f7d52394dd114546d7544 Merge 0.7->trunk diff -r 0b8bd6f6a9c7 -r 8dfa246a4413 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Thu May 20 11:44:41 2010 +0100 +++ b/plugins/mod_saslauth.lua Thu May 20 11:52:20 2010 +0100 @@ -27,7 +27,12 @@ local secure_auth_only = module:get_option("c2s_require_encryption") or module:get_option("require_encryption"); local sasl_backend = module:get_option("sasl_backend") or "builtin"; + +-- Cyrus config options local require_provisioning = module:get_option("cyrus_require_provisioning") or false; +local cyrus_service_realm = module:get_option("cyrus_service_realm"); +local cyrus_service_name = module:get_option("cyrus_service_name"); +local cyrus_application_name = module:get_option("cyrus_application_name"); local log = module._log; @@ -46,7 +51,11 @@ if ok then local cyrus_new = cyrus.new; new_sasl = function(realm) - return cyrus_new(module:get_option("cyrus_service_realm") or realm, module:get_option("cyrus_service_name") or "xmpp"); + return cyrus_new( + cyrus_service_realm or realm, + cyrus_service_name or "xmpp", + cyrus_application_name or "prosody" + ); end else module:log("error", "Failed to load Cyrus SASL because: %s", cyrus);