public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] The Pluggable Hell - aka Linux-PAM and non-linux gentoos
@ 2005-03-28 13:46 Diego "Flameeyes" Pettenò
  2005-03-28 14:18 ` Luca Barbato
  2005-04-06 20:48 ` Martin Schlemmer
  0 siblings, 2 replies; 5+ messages in thread
From: Diego "Flameeyes" Pettenò @ 2005-03-28 13:46 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 2341 bytes --]

Hi,
as I've already posted on gentoo-bsd mailing list[1], I'm trying to get 
gentoo/fbsd behave the same as gentoo/linux wrt pam stuff.
Main problem is that g/fbsd and g/linux uses two different pam 
implementations: Linux-PAM and OpenPAM.

Also if PAM should be quite standard, most linux distribution (gentoo 
included) ships Linux-PAM with some added modules, one of which (pam_stack) 
it's useful to avoid copy-and-pasting pam configuration files for different 
services, using the same authentication methods of another service (usually 
system-auth).
This is useful, as allow to change a single configuration file to get all the 
services use a defined authentication scheme, but it has a big drawback: it's 
not portable, depends on the internal structure of Linux-PAM library.
If this could be acceptable for a linux only distribution, with gentoo, the 
problem is quite serious.

Ok we could switch g/fbsd to use Linux-PAM, as Linux-PAM is multiplatform, in 
spite of its name, but this won't fix the problem, as g/osx would have the 
same problem: macosx's pam implementation is compatible with openpam, 
linuxpam and so on, but it doesn't support pam_stack.

Now, solution of that is quite simple: just don't use pam_stack, and convert 
all the pam configuration file to duplicate the default system-auth 
authentication scheme. If someone needs to change the way system-auth works, 
adding ldap, samba or something like that for authentication, they should 
also be able to change the needed other services, such as sshd, ftpd, pop3 
and imapd stuff.

This is not the only thing needed to fix everything up. All the packages which 
depends on sys-libs/pam should be changed, as g/fbsd, g/osx and other 
g/non-linux can have other implementations of pam. My suggestion is adding a 
virtual/pam which could be used, so that g/osx will provide it directly, 
g/fbsd could provide it via its own packages (or using an openpam package, 
which could be used on linux, too), and linux still can use sys-libs/pam.

Also, it could be better rename sys-libs/pam into sys-libs/linux-pam: also if 
the name isn't restrictive, that's the right name for them: it's not "The 
PAM".

[1] http://news.gmane.org/gmane.linux.gentoo.bsd
-- 
Diego "Flameeyes" Pettenò
http://wwwstud.dsi.unive.it/~dpetteno/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-06 21:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-28 13:46 [gentoo-dev] The Pluggable Hell - aka Linux-PAM and non-linux gentoos Diego "Flameeyes" Pettenò
2005-03-28 14:18 ` Luca Barbato
2005-03-28 15:11   ` Diego "Flameeyes" Pettenò
2005-04-06 20:48 ` Martin Schlemmer
2005-04-06 21:09   ` Diego "Flameeyes" Pettenò

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox