Damjan Jovanovic damjan.jov@gmail.com wrote:
Hans reported GSSAPI and GSS-SPNEGO want an empty AUTH_CB_USER. I verified DIGEST-MD5 wants AUTH_CB_AUTHNAME and doesn't mind if AUTH_CB_USER is supplied. Dmitry reported that for his mechanism (some variation of Kerberos?) AUTH_CB_AUTHNAME is used for initial tickets but AUTH_CB_USER is mandatory thereafter. This patch should hopefully make all those mechanisms happy.
There's some miscommuniation here it seems, I don't see AUTH_CB_AUTHNAME in the callback at all. I'd still suggest simply add AUTH_CB_AUTHNAME as an alias for existing AUTH_CB_USER and don't add any code for mechanisms.