Asynchronous notification to enable user space code to validate SASL CRAM MD5 request received.
Inside this function, the programmer must implement the password lookup for the given user (auth_id) and return a copy to it in clear text.
Functions using this handler are:
|connection ||The connection where the SASL notification was received |
|auth_id ||User id to authenticate.|
- The password the given auth_id have or NULL if the request must be denied. Password returned must be the in plain text, without any modification, as it would be introduced by the remote peer. Later, the SASL engine will perform the hash operation to be compared with the hash value received from the client side. Returned value must be dynamically allocated.