util.sasl_cyrus: Support for specifying the application name (to pass to Cyrus SASL's init())

Thu, 20 May 2010 11:13:51 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 20 May 2010 11:13:51 +0100
changeset 3063
ca149818083d
parent 3062
892c49869293
child 3064
596303990c7c

util.sasl_cyrus: Support for specifying the application name (to pass to Cyrus SASL's init())

util/sasl_cyrus.lua file | annotate | diff | comparison | revisions
--- a/util/sasl_cyrus.lua	Thu May 20 11:08:51 2010 +0100
+++ b/util/sasl_cyrus.lua	Thu May 20 11:13:51 2010 +0100
@@ -45,10 +45,10 @@
 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;

mercurial