Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195079 - sys-auth/pam_ldap doesn't work with multiple config files (at least not in one pam-config)
Summary: sys-auth/pam_ldap doesn't work with multiple config files (at least not in on...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-10-08 11:04 UTC by Huemi
Modified: 2007-10-08 11:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Modified pam_ldap (pam_ldap_183_different_configfiles.patch,1.75 KB, text/plain)
2007-10-08 11:05 UTC, Huemi
parallel (pam_ldap_multiple_config_c_patch,583 bytes, text/plain)
2007-10-08 11:07 UTC, Huemi
parallel (patch for pam_ldap.h) (pam_ldap_multiple_config_h_patch,872 bytes, text/plain)
2007-10-08 11:08 UTC, Huemi

Note You need to log in before you can comment on or make changes to this bug.
Description Huemi 2007-10-08 11:04:47 UTC
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:
Comment 1 Huemi 2007-10-08 11:05:47 UTC
Created attachment 132901 [details]
Modified pam_ldap

might be a quick fix, although not well tested
Comment 2 Huemi 2007-10-08 11:07:17 UTC
Created attachment 132903 [details]

Used with pam_ldap_multiple_h_patch, when compiled as can be used parallel with, so that you can use configfile1 with and configfile2 with (you could extend this to
Comment 3 Huemi 2007-10-08 11:08:01 UTC
Created attachment 132905 [details]
parallel (patch for pam_ldap.h)

see description for parallel
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-10-08 11:17:14 UTC
Please, get this accepted upstream, we are not going to do something they explicitely do not wish to support.