Public Member Functions | Protected Attributes | List of all members
AppSecInc::LSA::LoggedOnUser Class Reference

A logged-on user. More...

#include <LoggedOnUser.h>

Inheritance diagram for AppSecInc::LSA::LoggedOnUser:
AppSecInc::LSA::ImpersonatedUser

Public Member Functions

 LoggedOnUser ()
 
virtual ~LoggedOnUser ()
 
void Logon (const std::wstring &username, const std::wstring &domain, const std::wstring &password, DWORD dwLogonType, DWORD dwLogonProvider=LOGON32_PROVIDER_DEFAULT)
 logon a user More...
 
void Logon (const std::wstring &username, const std::wstring &password, DWORD dwLogonType, DWORD dwLogonProvider=LOGON32_PROVIDER_DEFAULT)
 logon a user, supports various username syntaxes; supports domain\username and username@domain More...
 
void Logout ()
 logout a user More...
 
bool IsLoggedOn () const
 returns true on logon More...
 
Sid GetSid () const
 returns the user SID More...
 
std::vector< SidGetGroups () const
 returns the user group memberships (SIDs) More...
 
std::vector< PrivilegeGetPrivileges () const
 returns a set of privileges that the logged on user has More...
 
bool HasPrivilege (LUID luid) const
 return true if the user holds a specific privilege More...
 

Protected Attributes

HANDLE m_hUser
 

Detailed Description

A logged-on user.

Constructor & Destructor Documentation

LoggedOnUser::LoggedOnUser ( )
LoggedOnUser::~LoggedOnUser ( )
virtual

Member Function Documentation

std::vector< Sid > LoggedOnUser::GetGroups ( ) const

returns the user group memberships (SIDs)

std::vector< Privilege > LoggedOnUser::GetPrivileges ( ) const

returns a set of privileges that the logged on user has

Sid LoggedOnUser::GetSid ( ) const

returns the user SID

bool LoggedOnUser::HasPrivilege ( LUID  luid) const

return true if the user holds a specific privilege

bool AppSecInc::LSA::LoggedOnUser::IsLoggedOn ( ) const
inline

returns true on logon

void LoggedOnUser::Logon ( const std::wstring &  username,
const std::wstring &  domain,
const std::wstring &  password,
DWORD  dwLogonType,
DWORD  dwLogonProvider = LOGON32_PROVIDER_DEFAULT 
)

logon a user

void LoggedOnUser::Logon ( const std::wstring &  username,
const std::wstring &  password,
DWORD  dwLogonType,
DWORD  dwLogonProvider = LOGON32_PROVIDER_DEFAULT 
)

logon a user, supports various username syntaxes; supports domain\username and username@domain

void LoggedOnUser::Logout ( )

logout a user

Member Data Documentation

HANDLE AppSecInc::LSA::LoggedOnUser::m_hUser
protected

The documentation for this class was generated from the following files:


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com