Bug 56794

Summary: Added AuthDBDFullAuthQuery option
Product: Apache httpd-2 Reporter: Rod <rod>
Component: mod_authn_dbdAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal Keywords: PatchAvailable
Priority: P2    
Version: 2.5-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Add AuthDBDFullAuthQuery to mod_authn_dbd.c

Description Rod 2014-07-31 01:51:49 UTC
Created attachment 31861 [details]
Add AuthDBDFullAuthQuery to mod_authn_dbd.c

I'm using this to extend mod_authn_dbd for novel auth queries that don't fit in to the pattern of - fetch password and compare to provided password. In particular, cases where you need to compare to an encoded password, especially passwords encoded with non-standard means (like base64 + sha2 with mysql which turns out to be a complicated query).

AuthDBDFullAuthQuery lets you provide a full query that will take two parameters, a username and a password and will let the query do the authentication work.