comparison mod_auth_ldap/mod_auth_ldap.lua @ 218:4a91047f9b5e

mod_auth_ldap: Update for new usermanager.test_password syntax
author Matthew Wild <mwild1@gmail.com>
date Wed, 21 Jul 2010 21:04:02 +0100
parents fa7165dd82ee
children ca6199d73d68
comparison
equal deleted inserted replaced
217:3da3d6480e65 218:4a91047f9b5e
46 local prepped_username = nodeprep(username); 46 local prepped_username = nodeprep(username);
47 if not prepped_username then 47 if not prepped_username then
48 log("debug", "NODEprep failed on username: %s", username); 48 log("debug", "NODEprep failed on username: %s", username);
49 return "", nil; 49 return "", nil;
50 end 50 end
51 return provider.test_password(prepped_username, password, realm), true; 51 return provider.test_password(prepped_username, realm, password), true;
52 end 52 end
53 }; 53 };
54 return new_sasl(realm, testpass_authentication_profile); 54 return new_sasl(realm, testpass_authentication_profile);
55 end 55 end
56 56