Works as described in the documentation: Configuring multiple instances of pam_ldap for the same service with different configuration files is not supported, because the configuration information is cached. I don't like this behavior, because for things like the pam_auth (php-module) it would be possible to ask more than one ldap server (with different dn-bases). Reproducible: Always Steps to Reproduce:
Created attachment 132901 [details] Modified pam_ldap might be a quick fix, although not well tested
Created attachment 132903 [details] parallel pam_ldap2.so Used with pam_ldap_multiple_h_patch, when compiled as pam_ldap2.so can be used parallel with pam_ldap.so, so that you can use configfile1 with pam_ldap.so and configfile2 with pam_ldap2.so (you could extend this to pam_ldapxx.so
Created attachment 132905 [details] parallel pam_ldap2.so (patch for pam_ldap.h) see description for parallel pam_ldap2.so
Please, get this accepted upstream, we are not going to do something they explicitely do not wish to support.