-
Notifications
You must be signed in to change notification settings - Fork 50
/
adsys.proto
65 lines (53 loc) · 1.65 KB
/
adsys.proto
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
syntax = "proto3";
option go_package = "github.com/ubuntu/adsys";
service service {
rpc Cat(Empty) returns (stream StringResponse);
rpc Version(Empty) returns (stream StringResponse);
rpc Status(Empty) returns (stream StringResponse);
rpc Stop(StopRequest) returns (stream Empty);
rpc UpdatePolicy(UpdatePolicyRequest) returns (stream Empty);
rpc DumpPolicies(DumpPoliciesRequest) returns (stream StringResponse);
rpc DumpPoliciesDefinitions(DumpPolicyDefinitionsRequest) returns (stream DumpPolicyDefinitionsResponse);
rpc GetDoc(GetDocRequest) returns (stream StringResponse);
rpc ListDoc(Empty) returns (stream ListDocReponse);
rpc ListUsers(ListUsersRequest) returns (stream StringResponse);
rpc GPOListScript(Empty) returns (stream StringResponse);
rpc CertAutoEnrollScript(Empty) returns (stream StringResponse);
}
message Empty {}
message ListUsersRequest {
bool active = 1;
}
message StopRequest {
bool force = 1;
}
message StringResponse {
string msg = 1;
}
message UpdatePolicyRequest {
bool isComputer = 1;
bool all = 2; // Update policies of the machine and all the users
string target = 3;
string krb5cc = 4;
bool purge = 5;
}
message DumpPoliciesRequest {
string target = 1;
bool isComputer = 2;
bool details = 3; // Show rules in addition to GPO
bool all = 4; // Show overridden rules
}
message DumpPolicyDefinitionsRequest {
string format = 1;
string distroID = 2; // Force another distro than the built-in one
}
message DumpPolicyDefinitionsResponse {
string admx = 1;
string adml = 2;
}
message GetDocRequest {
string chapter = 1;
}
message ListDocReponse {
repeated string chapters = 1;
}