Mercurial > prosody-modules
diff mod_auth_ldap2/mod_auth_ldap2.lua @ 902:490cb9161c81
mod_auth_{external,internal_yubikey,ldap,ldap2,sql}: No need to nodeprep in SASL handler.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 26 Jan 2013 04:34:05 +0500 |
parents | 675945ea2ed6 |
children | f2b29183ef08 |
line wrap: on
line diff
--- a/mod_auth_ldap2/mod_auth_ldap2.lua Sat Jan 26 00:15:24 2013 +0100 +++ b/mod_auth_ldap2/mod_auth_ldap2.lua Sat Jan 26 04:34:05 2013 +0500 @@ -13,7 +13,6 @@ local ldap = module:require 'ldap'; local new_sasl = require 'util.sasl'.new; -local nodeprep = require 'util.encodings'.stringprep.nodeprep; local jsplit = require 'util.jid'.split; if not ldap then @@ -52,12 +51,7 @@ function provider.get_sasl_handler() local testpass_authentication_profile = { plain_test = function(sasl, username, password, realm) - local prepped_username = nodeprep(username); - if not prepped_username then - module:log("debug", "NODEprep failed on username: %s", username); - return "", nil; - end - return provider.test_password(prepped_username, password), true; + return provider.test_password(username, password), true; end, mechanisms = { PLAIN = true }, };