[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Pam-list Digest, Vol 16, Issue 15

Hi Andreas ,

I think that the client-server concept is not forbidding pam_get_item
from return the right value. Anyway, there is not apparently way to get
the name of the service used. In xscreensaver somebody tried to
implement a functionality using /etc/pam.d/ etc, but now is not more

For the second problem was my mistake. Sorry! I tried only on SLES9
systems. Now I started my tests with RH - Debian , ... And it works
fine. So I think my problem is just a specific SuSE problem.

Thank You & Regards, 

-----Original Message-----
From: pam-list-bounces redhat com [mailto:pam-list-bounces redhat com]
On Behalf Of Andreas Schindler
Sent: Tuesday, June 28, 2005 12:26 AM
To: pam-list redhat com
Subject: Re: Pam-list Digest, Vol 16, Issue 15


let me add some comments:

> 1) I think the question is why after pam_start, the function
> pam_get_item(..., PAM_SERVICE,..), doesn't return the name of the real
> loaded service? I sow in the source of xscreensaver the same comment
> about this problem.

pam_get_item() on client side (what the user program calls) is not the
same as pam_get_item() you see on the module side (though it's in fact
much the same code). It returns to you (the user) willingly just what
you put in, _NOT_ what it makes from your input. Remember User/Modules
are quite like Client/Server.

However: if anybody outside konws a dirty trick to do this without a
SUID helper, please let me know, maybe alas we found the circle's

> 2) Yes. This was an option that I tried. But I saw that xscreensaver
> have the same problem, so it must be a solution without start a Sbit
> program (maybe?)!

Of cousrse this has to be a SUID helper program, because all the
PAM client calls run in the context of the calling user.

Regards Andreas
Dr.-Ing. Andreas Schindler

Alpha Zero One Computersysteme GmbH
Frankfurter Str. 141
63303 Dreieich

Telefon 06103-57187-21
Telefax 06103-373245

schindler az1 de

Pam-list mailing list
Pam-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]