Asynchronous notification to enable user space to validate SASL DIGEST MD5 received requests.
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 identifier to authenticate |
|authorization_id ||If set, requesting auth_id is asking to get authorized to act as this value. |
|realm ||Optional realm value where the auth_id and the authorization_id will be validated. |
|user_data ||The user defined pointer to be passed to future SASL callbacks.|
- 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.