Fix configuration for external AD