Previous section.

X/Open Single Sign-on Service (XSSO) -<br> Pluggable Authentication Modules

X/Open Single Sign-on Service (XSSO) -
Pluggable Authentication Modules
Copyright © 1997 The Open Group


pam_setcred - modify/delete user credentials for an authentication service


#include <security/pam_appl.h>

int pam_setcred ( pam_handle_t *pamh, int flags );


The pam_setcred() function is used to establish, modify, or delete the credentials of the current user associated with the authentication handle, pamh.

The arguments for pam_setcred() are:

pamh (in)

The PAM authentication handle, which has been returned from a previous call to pam_start().

flags (in)

Flags may be set to one of the following:


To disable messages from the authentication service.


To set user credentials. This is the default value.


To delete user credentials associated with the authentication service.


To reinitialize user credentials.


To extend the lifetime of the user credentials.


The following PAM status codes shall be returned:


Successful completion.


The authentication service cannot retrieve the user credentials.


The user credentials have expired.


The user is unknown to the service.


Failure in setting user credentials.


The caller does not possess the required authority.


Failure when dynamically loading a service module.


Symbol not found.


Error in service module.


System error.


Memory buffer error.


Conversation error.

[??] Some characters or strings that appear in the printed document are not easily representable using HTML.

Why not acquire a nicely bound hard copy?
Click here to return to the publication details or order a copy of this publication.

Contents Next section Index