-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathOperationAddAccountIfMissing.cpp
More file actions
25 lines (20 loc) · 1 KB
/
OperationAddAccountIfMissing.cpp
File metadata and controls
25 lines (20 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "OperationAddAccountIfMissing.h"
#include "OperationCheckCanonical.h"
#include "InputOutput.h"
#include "Helpers.h"
ClassFactory<OperationAddAccountIfMissing> OperationAddAccountIfMissing::RegisteredFactory(GetCommand());
OperationAddAccountIfMissing::OperationAddAccountIfMissing(std::queue<std::wstring> & oArgList, const std::wstring & sCommand) : Operation(oArgList)
{
// exit if there are not enough arguments to parse
const std::vector<std::wstring> sSubArgs = ProcessAndCheckArgs(1, oArgList);
// defer construction to delegate
std::queue<std::wstring> oArgListAlt;
oArgListAlt.push(sSubArgs.at(0) + L":(OI)(CI)(F)");
oDelegate = new OperationGrantDenyPerms(oArgListAlt, L"AddPerms");
// flag this as being an ace-level action
AppliesToDacl = true;
}
bool OperationAddAccountIfMissing::ProcessAclAction(const WCHAR * const sSdPart, ObjectEntry & tObjectEntry, PACL & tCurrentAcl, bool & bAclReplacement)
{
return oDelegate->ProcessAclAction(sSdPart, tObjectEntry, tCurrentAcl, bAclReplacement);
}