Diff

util/sasl/plain.lua @ 2991:0fa3a7c885bd

util.sasl: Moving SASL authentication backends documentation to the mechanism files.
author Tobias Markmann <tm@ayena.de>
date Sun, 28 Feb 2010 22:32:12 +0100
parent 2314:c2e1bde4d84d
child 2994:b8448e181487
line wrap: on
line diff
--- a/util/sasl/plain.lua	Sun Feb 28 22:23:03 2010 +0100
+++ b/util/sasl/plain.lua	Sun Feb 28 22:32:12 2010 +0100
@@ -19,6 +19,21 @@
 
 -- ================================
 -- SASL PLAIN according to RFC 4616
+
+--[[
+Supported Authentication Backends
+
+plain:
+	function(username, realm)
+		return password, state;
+	end
+
+plain-test:
+	function(username, realm, password)
+		return true or false, state;
+	end
+]]
+
 local function plain(self, message)
 	if not message then
 		return "failure", "malformed-request";