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...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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: ---


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

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]
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
Comment 3 Huemi 2007-10-08 11:08:01 UTC
Created attachment 132905 [details]
parallel pam_ldap2.so (patch for pam_ldap.h)

see description for parallel pam_ldap2.so
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.