--On Thursday, June 19, 2008 03:52:08 PM +0200 Marco Sommella 
<marco.sommella at gmail.com> wrote:

> Hi,
> plz if this isn't correct mailing list redirect me.
>
> I'm writing a PAM module, I need to add an item to existing ones. i
> found in pam_appl.h #define of existing items, if i add mine in this
> header it's correct ? it's so easy?

No, it's not.  PAM items are specific pieces of data whose type and 
semantics are understood by the PAM framework, applications, and all 
modules.  You cannot just make up a number and use it; the library has to 
understand what you're doing.

Fortunately, you almost certainly do not need to add a new item.  If your 
module needs to store data to be used in a later invocation, take a look at 
the documentation for pam_set_data().  PAM data is private to each module 
and can be anything you want, so long as you provide a destructor.

-- Jeff

Reply via email to