After following these this article and this forum post, we are still unable to get PAM authentication working.
It is still wanting to use the .htaccess file for some reason. I am not sure what we are doing wrong.
OS Info: CentOS 7 - 3.10.0-1127.18.2.el7.x86_64
OnDemand version: v1.7.14
Any help is much appreciated.