Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is an example:</p> <pre><code>#include &lt;stdlib.h&gt; // for NULL #include &lt;security/pam_appl.h&gt; // for pam_ functions // compile with 'gcc -lpam filename.c' int main ( int argc , char * * argv ) { //function used to get user input int function_conversation ( ) { /* ToDo prompt user for input */ } ; const char * local_service = "Example Service" ; // name of the authentication service const char * local_user = "Example User" ; //Name of the user void * local_app_data = NULL ; // ToDo Make this valid. const struct pam_conv local_conversation = { function_conversation , local_app_data } ; pam_handle_t * local_auth_handle = NULL ; // this gets set by pam_start int local_status = 0 ; // result of each function call // local_auth_handle gets set based on the service local_status = pam_start ( local_service , local_user , &amp; local_conversation , &amp; local_auth_handle ) ; int local_auth_flags = 0 ; // ToDo Are there any relevent flags? // Authenticate the user with the authentication handle set by pam_start local_status = pam_athenticate ( local_auth_handle , local_auth_flags ) ; // terminate transaction local_status = pam_end ( local_auth_handle , local_status ) ; return local_status ; } </code></pre> <p>References:</p> <p><a href="http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.basetechref/doc/basetrf1/pam_start.htm" rel="nofollow">http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.basetechref/doc/basetrf1/pam_start.htm</a></p> <p><a href="http://www.kapet.de/kb/pam_interpose/pam_interpose.c" rel="nofollow">http://www.kapet.de/kb/pam_interpose/pam_interpose.c</a></p> <p><a href="http://pubs.opengroup.org/onlinepubs/8329799/pam_start.htm" rel="nofollow">http://pubs.opengroup.org/onlinepubs/8329799/pam_start.htm</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload