version 1.6, 2006/01/30 16:18:29 |
version 1.6.32.1, 2008/01/04 20:13:03 |
| |
// | // |
//============================================================================== | //============================================================================== |
// | // |
// 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); |
strcpy(resp[i]->resp, mydata->userPassword); | strncpy(resp[i]->resp, mydata->userPassword, PAM_MAX_MSG_SIZE); |
| resp[i]->resp[PAM_MAX_MSG_SIZE - 1] = 0; |
resp[i]->resp_retcode = 0; | resp[i]->resp_retcode = 0; |
break; | break; |
| |