|
OpenVPN
|
#include "service.h"

Go to the source code of this file.
Macros | |
| #define | SYSTEM_ADMIN_GROUP L"Administrators" |
| #define | OVPN_ADMIN_GROUP L"OpenVPN Administrators" /* may be set in HKLM\Software\OpenVPN\ovpn_admin_group */ |
| #define | OVPN_SERVICE_USER L"OpenVPNService" /* may be set in HKLM\Software\OpenVPN\ovpn_service_user */ |
Functions | |
| BOOL | IsAuthorizedUser (PSID sid, const HANDLE token, const WCHAR *ovpn_admin_group, const WCHAR *ovpn_service_user) |
| BOOL | CheckOption (const WCHAR *workdir, int narg, WCHAR *argv[], const settings_t *s) |
| static BOOL | IsOption (const WCHAR *o) |
| #define OVPN_ADMIN_GROUP L"OpenVPN Administrators" /* may be set in HKLM\Software\OpenVPN\ovpn_admin_group */ |
Definition at line 31 of file validate.h.
| #define OVPN_SERVICE_USER L"OpenVPNService" /* may be set in HKLM\Software\OpenVPN\ovpn_service_user */ |
Definition at line 33 of file validate.h.
| #define SYSTEM_ADMIN_GROUP L"Administrators" |
Definition at line 30 of file validate.h.
| BOOL CheckOption | ( | const WCHAR * | workdir, |
| int | narg, | ||
| WCHAR * | argv[], | ||
| const settings_t * | s | ||
| ) |
Definition at line 328 of file validate.c.
References CheckConfigPath(), OptionLookup(), and white_list.
Referenced by ValidateOptions().
| BOOL IsAuthorizedUser | ( | PSID | sid, |
| const HANDLE | token, | ||
| const WCHAR * | ovpn_admin_group, | ||
| const WCHAR * | ovpn_service_user | ||
| ) |
Definition at line 150 of file validate.c.
References GetBuiltinAdminGroupName(), GetTokenGroups(), i, IsUserInGroup(), M_INFO, M_SYSERR, MAX_NAME, MsgToEventLog(), and SYSTEM_ADMIN_GROUP.
Referenced by RunOpenvpn().
|
inlinestatic |
Definition at line 47 of file validate.h.
Referenced by ValidateOptions().