# HG changeset patch # User Tobias Markmann # Date 1295279421 -3600 # Node ID 7d100d917243f8a2887f480eb71a38d964f04288 # Parent aa4bdabd3c0fee91b208c773428b0d750c91f0e8 mod_saslauth: Set secure socket as SASL object user data for secure sessions. diff -r aa4bdabd3c0f -r 7d100d917243 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Mon Jan 17 16:50:21 2011 +0100 +++ b/plugins/mod_saslauth.lua Mon Jan 17 16:50:21 2011 +0100 @@ -246,6 +246,10 @@ return; end origin.sasl_handler = usermanager_get_sasl_handler(module.host); + + if origin.secure then + origin.sasl_handler["userdata"] = origin.conn:socket(); + end features:tag("mechanisms", mechanisms_attr); for mechanism in pairs(origin.sasl_handler:mechanisms()) do if mechanism ~= "PLAIN" or origin.secure or allow_unencrypted_plain_auth then