version 1.4, 2002/06/01 00:57:28
|
version 1.9.14.1, 2006/07/27 23:12:11
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// Author: Sushma Fernandes, Hewlett Packard Company (sushma_fernandes@hp.com) | // Author: Sushma Fernandes, Hewlett Packard Company (sushma_fernandes@hp.com) |
// | // |
// Modified By: | // Modified By: |
|
// Amit K Arora, IBM (amita@in.ibm.com) for PEP#101 |
// | // |
//%//////////////////////////////////////////////////////////////////////////// | //%//////////////////////////////////////////////////////////////////////////// |
| |
|
|
#include <fstream> | #include <fstream> |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/IPC.h> |
#include <Pegasus/Common/AutoPtr.h> |
|
#include <Pegasus/Common/Mutex.h> |
| |
#include <Pegasus/Security/UserManager/PasswordFile.h> | #include <Pegasus/Security/UserManager/PasswordFile.h> |
#include <Pegasus/Security/UserManager/Linkage.h> | #include <Pegasus/Security/UserManager/Linkage.h> |
|
|
// | // |
// Instance of the PasswordFile | // Instance of the PasswordFile |
// | // |
PasswordFile* _passwordFile; |
AutoPtr<PasswordFile> _passwordFile; //PEP101 |
| |
// | // |
// Mutex variable for consistent Password File and cache updates | // Mutex variable for consistent Password File and cache updates |
// | // |
Mutex* _mutex; |
AutoPtr<Mutex> _mutex; //PEP101 |
| |
/** | /** |
generate random salt key for password encryption | generate random salt key for password encryption |