A user account.
More...
#include <Account.h>
|
static std::wstring | GetCurrentUserName () |
| get the current username More...
|
|
static std::wstring | GetCurrentUserName (EXTENDED_NAME_FORMAT format) |
| get the current username with extended format More...
|
|
static void | Create (USER_INFO_1 ui, const std::wstring &servername=L"") |
| create a local user More...
|
|
static void | Create (const std::wstring &username, const std::wstring &password, const std::wstring &servername=L"") |
| create a local user More...
|
|
static void | Delete (const std::wstring &username, const std::wstring &servername=L"") |
| delete a local user More...
|
|
static bool | Exists (const std::wstring &username, const std::wstring &servername=L"") |
| check whether the user exists More...
|
|
static std::wstring | Translate (const std::wstring &name, EXTENDED_NAME_FORMAT from, EXTENDED_NAME_FORMAT to) |
| converts a directory service object name from one format to another More...
|
|
void Account::AddUserRight |
( |
const std::wstring & |
right, |
|
|
const std::wstring & |
computername = L"" |
|
) |
| |
void Account::Create |
( |
USER_INFO_1 |
ui, |
|
|
const std::wstring & |
servername = L"" |
|
) |
| |
|
static |
void Account::Create |
( |
const std::wstring & |
username, |
|
|
const std::wstring & |
password, |
|
|
const std::wstring & |
servername = L"" |
|
) |
| |
|
static |
void Account::Delete |
( |
const std::wstring & |
username, |
|
|
const std::wstring & |
servername = L"" |
|
) |
| |
|
static |
bool Account::Exists |
( |
const std::wstring & |
username, |
|
|
const std::wstring & |
servername = L"" |
|
) |
| |
|
static |
check whether the user exists
std::wstring Account::GetCurrentUserName |
( |
| ) |
|
|
static |
std::wstring Account::GetCurrentUserName |
( |
EXTENDED_NAME_FORMAT |
format | ) |
|
|
static |
get the current username with extended format
const std::wstring& AppSecInc::LSA::Account::GetDomain |
( |
| ) |
const |
|
inline |
std::wstring AppSecInc::LSA::Account::GetFQN |
( |
| ) |
const |
|
inline |
const Sid& AppSecInc::LSA::Account::GetSid |
( |
| ) |
const |
|
inline |
const std::wstring& AppSecInc::LSA::Account::GetUserName |
( |
| ) |
const |
|
inline |
void Account::GetUserRights |
( |
std::vector< std::wstring > & |
rights, |
|
|
const std::wstring & |
computername = L"" |
|
) |
| const |
get a list of user rights
void Account::LookupAccount |
( |
const std::wstring & |
account_name, |
|
|
const std::wstring & |
computer_name = L"" |
|
) |
| |
lookup an account by name
void Account::LookupSid |
( |
PSID |
psid, |
|
|
const std::wstring & |
computer_name = L"" |
|
) |
| |
void Account::RemoveUserRight |
( |
const std::wstring & |
right, |
|
|
const std::wstring & |
computername = L"" |
|
) |
| |
void Account::SetFQN |
( |
const std::wstring & |
fqn | ) |
|
set FQN (username, domain\username or username@domain)
void AppSecInc::LSA::Account::SetSID |
( |
const Sid & |
sid | ) |
|
|
inline |
std::wstring Account::Translate |
( |
const std::wstring & |
name, |
|
|
EXTENDED_NAME_FORMAT |
from, |
|
|
EXTENDED_NAME_FORMAT |
to |
|
) |
| |
|
static |
converts a directory service object name from one format to another
The documentation for this class was generated from the following files: