unsigned int no_login:1;
unsigned int no_password:1;
unsigned int skip_password_check:1;
+ unsigned int prefer_plain_credentials:1;
unsigned int proxy:1;
unsigned int proxy_maybe:1;
unsigned int valid_client_cert:1;
return;
}
+ auth_request->prefer_plain_credentials = TRUE;
auth_request->passdb->passdb->iface.
lookup_credentials(auth_request, lookup_credentials_callback);
}
const char *plaintext;
int ret;
+ if (auth_request->prefer_plain_credentials &&
+ password_scheme_is_alias(input_scheme, "PLAIN")) {
+ /* we've a plaintext scheme and we prefer to get it instead
+ of converting it to the fallback scheme */
+ wanted_scheme = "";
+ }
+
ret = password_decode(input, input_scheme, credentials_r, size_r);
if (ret <= 0) {
if (ret < 0) {