[Solved]pam module with separate configs

Fórumok

Tudtok esetleg vmi (fel)kesz megoldast arra, ha pam modult ket kulon configgal is szeretnem hasznalni eltero alkalmazasokhoz?
Peldaul pam-ldap-hoz lenne 2 config es mig ftp-hez az elsot imap-hoz a masodikat tudnam meghivni, avagy forditsam le kulon masik configgal es masik nevvel ugyanazt a modult es ugy meg tudom hivni?
Mindez csak azert kellene mert van 1-2 alkalmazas ami nem tamogatja kelloen ldap-ot nativan, ellenben pam-bol mar lekezeli de ugyanazon a rendszeren mar masra van hasznalva az a pam modul es nem ugyanaz a config kell hozza.

Hozzászólások

man pam_ldap.conf:

The following options may be specified as arguments to the pam_ldap module:

config=

Specifies that pam_ldap should use the configuration file in path instead of pam_ldap.conf to retrieve its global configuration. Configuring multiple instances of pam_ldap for the same ser‐
vice with different configuration files is not supported, because the configuration information is cached.

Csinalsz egy configot ftp-hez, egyet imaphoz, es a megfelelo pam.d/akarmi fileban megadod a kulonbozo configokat pam_ldap.so -nak.

Eljen a dokumentacio!