2016-08-23 08:31:50 +08:00
|
|
|
// +build !windows
|
|
|
|
|
|
|
|
package activedir
|
|
|
|
|
2020-10-26 00:58:43 +08:00
|
|
|
func (c *activedirAPI) getRecords(domainname string) ([]byte, error) {
|
2017-09-13 22:00:41 +08:00
|
|
|
if !c.fake {
|
2016-08-23 08:31:50 +08:00
|
|
|
panic("Can not happen: PowerShell on non-windows")
|
|
|
|
}
|
|
|
|
return c.readZoneDump(domainname)
|
|
|
|
}
|
|
|
|
|
2020-10-26 00:58:43 +08:00
|
|
|
func (c *activedirAPI) powerShellDoCommand(command string, shouldLog bool) error {
|
2017-09-13 22:00:41 +08:00
|
|
|
if !c.fake {
|
2016-08-23 08:31:50 +08:00
|
|
|
panic("Can not happen: PowerShell on non-windows")
|
|
|
|
}
|
2017-09-13 22:00:41 +08:00
|
|
|
return c.powerShellRecord(command)
|
2016-08-23 08:31:50 +08:00
|
|
|
}
|