diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-05-20 11:13:51 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-05-20 11:13:51 +0100 |
commit | 95f7a472e0b1b9d055179039fc0380d697356be6 (patch) | |
tree | a4a3e4df3d94290701381fe51a7e234b6e49fd7c /util/sasl_cyrus.lua | |
parent | 06fe337d67c941d8a9e9bb176a42f1e68340518e (diff) | |
download | prosody-95f7a472e0b1b9d055179039fc0380d697356be6.tar.gz prosody-95f7a472e0b1b9d055179039fc0380d697356be6.zip |
util.sasl_cyrus: Support for specifying the application name (to pass to Cyrus SASL's init())
Diffstat (limited to 'util/sasl_cyrus.lua')
-rw-r--r-- | util/sasl_cyrus.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua index b5b0e08d..b5f505eb 100644 --- a/util/sasl_cyrus.lua +++ b/util/sasl_cyrus.lua @@ -45,10 +45,10 @@ local function init(service_name) end -- create a new SASL object which can be used to authenticate clients -function new(realm, service_name) +function new(realm, service_name, app_name) local sasl_i = {}; - init(service_name); + init(app_name or service_name); sasl_i.realm = realm; sasl_i.service_name = service_name; |