version 1.6.32.1, 2008/01/04 20:13:03 |
version 1.7, 2007/05/25 18:35:14 |
| |
// | // |
//============================================================================== | //============================================================================== |
// | // |
| // Author: Ben Heilbronn, Hewlett-Packard Company(ben_heilbronn@hp.com) |
| // |
| // Parts of this code originated within PAMBasicAuthenticator. |
| // |
| // Modified By: Sushma Fernandes, Hewlett-Packard Company(sushma_fernandes@hp.com) |
| // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
// NOCHKSRC | |
| |
#include <Pegasus/Common/System.h> | #include <Pegasus/Common/System.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/FileSystem.h> | #include <Pegasus/Common/FileSystem.h> |
| |
// copy the user password | // copy the user password |
// | // |
resp[i]->resp = (char *)malloc(PAM_MAX_MSG_SIZE); | resp[i]->resp = (char *)malloc(PAM_MAX_MSG_SIZE); |
strncpy(resp[i]->resp, mydata->userPassword, PAM_MAX_MSG_SIZE); | strcpy(resp[i]->resp, mydata->userPassword); |
resp[i]->resp[PAM_MAX_MSG_SIZE - 1] = 0; | |
resp[i]->resp_retcode = 0; | resp[i]->resp_retcode = 0; |
break; | break; |
| |