mirror of
				https://github.com/StackExchange/dnscontrol.git
				synced 2024-05-11 05:55:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			419 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			419 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// +build !windows
 | 
						|
 | 
						|
package activedir
 | 
						|
 | 
						|
func (c *activedirProvider) getRecords(domainname string) ([]byte, error) {
 | 
						|
	if !c.fake {
 | 
						|
		panic("Can not happen: PowerShell on non-windows")
 | 
						|
	}
 | 
						|
	return c.readZoneDump(domainname)
 | 
						|
}
 | 
						|
 | 
						|
func (c *activedirProvider) powerShellDoCommand(command string, shouldLog bool) error {
 | 
						|
	if !c.fake {
 | 
						|
		panic("Can not happen: PowerShell on non-windows")
 | 
						|
	}
 | 
						|
	return c.powerShellRecord(command)
 | 
						|
}
 |