The enabling of PAM with gdal corresponds to aux.xml support and not to pluggable authentication modules. Reproducible: Always Steps to Reproduce:
Sorry, this was fixed a while back but the bug wasn't closed...