version 1.51, 2005/05/09 17:21:03
|
version 1.53, 2005/05/20 21:09:45
|
|
|
#include <process.h> | #include <process.h> |
#include <lm.h> | #include <lm.h> |
| |
//Bug 3076 - define these for GetUserNameEx function |
#define SECURITY_WIN32 |
//#define SECURITY_WIN32 |
#include <security.h> |
//#include <security.h> |
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
| |
String System::getEffectiveUserName() | String System::getEffectiveUserName() |
{ | { |
//ATTN: Proposed function for Bug 3076 - hns |
#if (_MSC_VER >= 1300) || defined(PEGASUS_WINDOWS_SDK_HOME) |
/* |
|
|
//Bug 3076 fix |
char fullUserName[UNLEN+1]; | char fullUserName[UNLEN+1]; |
DWORD userNameSize = sizeof(fullUserName); | DWORD userNameSize = sizeof(fullUserName); |
char computerName[MAX_COMPUTERNAME_LENGTH+1]; | char computerName[MAX_COMPUTERNAME_LENGTH+1]; |
|
|
return String(); | return String(); |
} | } |
| |
OutputDebugString("My full name"); |
|
OutputDebugString(fullUserName); |
|
|
|
char* index = strchr(fullUserName, '\\'); | char* index = strchr(fullUserName, '\\'); |
*index = '\0'; | *index = '\0'; |
strcpy(userDomain, fullUserName); | strcpy(userDomain, fullUserName); |
|
|
} | } |
| |
return userId; | return userId; |
*/ |
|
|
#else //original getEffectiveUserName function |
|
|
int retcode = 0; | int retcode = 0; |
| |
// UNLEN (256) is the limit, not including null | // UNLEN (256) is the limit, not including null |
|
|
} | } |
| |
return String(pUserName); | return String(pUserName); |
|
#endif |
} | } |
| |
String System::encryptPassword(const char* password, const char* salt) | String System::encryptPassword(const char* password, const char* salt) |
|
|
return true; | return true; |
} | } |
| |
void System::openlog(const String &ident) |
void System::syslog(const String& ident, Uint32 severity, const char* message) |
{ |
|
return; |
|
} |
|
|
|
void System::syslog(Uint32 severity, const char *data) |
|
{ |
|
return; |
|
} |
|
|
|
void System::closelog() |
|
{ | { |
return; |
// Not implemented |
} | } |
| |
// System ID constants for Logger::put and Logger::trace | // System ID constants for Logger::put and Logger::trace |