I’m not sure that I got the goal properly, but hope, that yes)
We had similar problem - authentication with several method, when one way was with pam (password auth) and another way goes through ssh itself (gssapi). So we had to little recompile pam_...