nginx and the auth_pam module

I got the task of adding ldap authentication to our puppet nginx module. Oh shit. After messing with the fucked up unintuitive package build system we have, to make it build nginx with the auth_pam module, I think I’m set and create an “nginx” auth file in pam.d and cross my fingers the shit is…