FreeRDP
|
#include <winpr/config.h>
#include <winpr/assert.h>
#include <winpr/sspicli.h>
#include <winpr/crt.h>
#include <pthread.h>
#include <pwd.h>
#include <grp.h>
#include "../handle/handle.h"
#include "../security/security.h"
Functions | |
static BOOL | LogonUserCloseHandle (HANDLE handle) |
static BOOL | LogonUserIsHandled (HANDLE handle) |
static int | LogonUserGetFd (HANDLE handle) |
BOOL | LogonUserA (LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken) |
BOOL | LogonUserW (LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken) |
BOOL | LogonUserExA (LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken, PSID *ppLogonSid, PVOID *ppProfileBuffer, LPDWORD pdwProfileLength, PQUOTA_LIMITS pQuotaLimits) |
BOOL | LogonUserExW (LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPassword, DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken, PSID *ppLogonSid, PVOID *ppProfileBuffer, LPDWORD pdwProfileLength, PQUOTA_LIMITS pQuotaLimits) |
BOOL | GetUserNameExA (EXTENDED_NAME_FORMAT NameFormat, LPSTR lpNameBuffer, PULONG nSize) |
BOOL | GetUserNameExW (EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize) |
Variables | |
static HANDLE_OPS | ops |
BOOL GetUserNameExA | ( | EXTENDED_NAME_FORMAT | NameFormat, |
LPSTR | lpNameBuffer, | ||
PULONG | nSize | ||
) |
BOOL GetUserNameExW | ( | EXTENDED_NAME_FORMAT | NameFormat, |
LPWSTR | lpNameBuffer, | ||
PULONG | nSize | ||
) |
BOOL LogonUserA | ( | LPCSTR | lpszUsername, |
LPCSTR | lpszDomain, | ||
LPCSTR | lpszPassword, | ||
DWORD | dwLogonType, | ||
DWORD | dwLogonProvider, | ||
PHANDLE | phToken | ||
) |
|
static |
WinPR: Windows Portable Runtime Security Support Provider Interface
Copyright 2012 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. sspicli.dll:
EnumerateSecurityPackagesA EnumerateSecurityPackagesW GetUserNameExW ImportSecurityContextA LogonUser LogonUserEx LogonUserExExW SspiCompareAuthIdentities SspiCopyAuthIdentity SspiDecryptAuthIdentity SspiEncodeAuthIdentityAsStrings SspiEncodeStringsAsAuthIdentity SspiEncryptAuthIdentity SspiExcludePackage SspiFreeAuthIdentity SspiGetTargetHostName SspiIsAuthIdentityEncrypted SspiLocalFree SspiMarshalAuthIdentity SspiPrepareForCredRead SspiPrepareForCredWrite SspiUnmarshalAuthIdentity SspiValidateAuthIdentity SspiZeroAuthIdentity
BOOL LogonUserExA | ( | LPCSTR | lpszUsername, |
LPCSTR | lpszDomain, | ||
LPCSTR | lpszPassword, | ||
DWORD | dwLogonType, | ||
DWORD | dwLogonProvider, | ||
PHANDLE | phToken, | ||
PSID * | ppLogonSid, | ||
PVOID * | ppProfileBuffer, | ||
LPDWORD | pdwProfileLength, | ||
PQUOTA_LIMITS | pQuotaLimits | ||
) |
BOOL LogonUserExW | ( | LPCWSTR | lpszUsername, |
LPCWSTR | lpszDomain, | ||
LPCWSTR | lpszPassword, | ||
DWORD | dwLogonType, | ||
DWORD | dwLogonProvider, | ||
PHANDLE | phToken, | ||
PSID * | ppLogonSid, | ||
PVOID * | ppProfileBuffer, | ||
LPDWORD | pdwProfileLength, | ||
PQUOTA_LIMITS | pQuotaLimits | ||
) |
|
static |
|
static |
BOOL LogonUserW | ( | LPCWSTR | lpszUsername, |
LPCWSTR | lpszDomain, | ||
LPCWSTR | lpszPassword, | ||
DWORD | dwLogonType, | ||
DWORD | dwLogonProvider, | ||
PHANDLE | phToken | ||
) |