executeNetDomainControllers lists hosts from the Domain Controllers group on the specified domain
(ctx context.Context, client *csclient.Client, beaconID string, action Action)
| 121 | |
| 122 | // executeNetDomainControllers lists hosts from the Domain Controllers group on the specified domain |
| 123 | func (e *Executor) executeNetDomainControllers(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
| 124 | domain, _ := action.Parameters["domain"].(string) // optional |
| 125 | resp, err := client.NetDomainControllers(ctx, beaconID, domain) |
| 126 | if err != nil { |
| 127 | return "", err |
| 128 | } |
| 129 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 130 | } |
| 131 | |
| 132 | // executeNetDcList lists domain controllers for the specified domain |
| 133 | func (e *Executor) executeNetDcList(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected