1. Set the black listed DCs
/opt/likewise/bin/lwregshell set_value '[HKEY_THIS_MACHINE\Services\netlogon\Parameters]' BlacklistedDCs ip1,ip2 Eg # /opt/likewise/bin/lwregshell set_value '[HKEY_THIS_MACHINE\Services\netlogon\Parameters]' BlacklistedDCs 10.108.124.21,10.108.124.23
2. Restart the lwregistry.
# /opt/likewise/bin/lwsm restart lwreg
Friday, June 25, 2021
likewise Active Directory - black list of domain controllers
Wednesday, June 23, 2021
Meeting Minutes format
Dear Team,
Thank you for attending today’s regular bi-weekly call. As always, we really appreciate your update regarding the current status of all on-going activities connected with XXXXXXX.
Below you can find my very short meeting minutes:
Meeting: TBD
Recording: URL
Agenda / discussed topics:
- Topic 1: description
- Topic 2: description
Next steps / follow-ups:
- step1
- step2
- step3
Thank you and have a great evening!
Kind Regards,
Friday, June 4, 2021
Google Cloud : TerraForm
Google Terraform Provider initialization
file provider.tf
provider "google" {}
In shell, run:
terraform init
NOW YOU CAN WORK ON TERRAFORM LOGICAL SPECIFICATIONS.
SEE EXAMPLE BELOW IN THE BOTTOM OF PAGE.
Other commands ...
To rewrite the Terraform configuration files to a canonical format and style, run the following command:
terraform fmt
To initialize Terraform, run the following command
terraform init
To create an execution plan, run the following command:
terraform plan
To apply the desired changes, run the following command:
terraform apply
RESOURCE TEMPLATE
TerraForm Google RESOURCE TEMPLATE
# Create the mynetwork network
resource [RESOURCE_TYPE] "mynetwork" {
name = [RESOURCE_NAME]
#RESOURCE properties go here
}
DOCUMENTATION
Google Cloud TerraForm provider documentation
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Terraform Module variables
https://learn.hashicorp.com/tutorials/terraform/aws-variables
EXAMPLE OF GOOGLE INFRASTRUCTURE AS A CODE
mynetwork.tf
# Create the mynetwork network
resource "google_compute_network" "mynetwork" {
name = "mynetwork"
#RESOURCE properties go here
auto_create_subnetworks = "true"
}
# Add a firewall rule to allow HTTP, SSH, RDP and ICMP traffic on mynetwork
resource "google_compute_firewall" "mynetwork-allow-http-ssh-rdp-icmp" {
name = "mynetwork-allow-http-ssh-rdp-icmp"
#RESOURCE properties go here
network = google_compute_network.mynetwork.self_link
allow {
protocol = "tcp"
ports = ["22", "80", "3389"]
}
allow {
protocol = "icmp"
}
}
# Create the mynet-us-vm instance
module "mynet-us-vm" {
source = "./instance"
instance_name = "mynet-us-vm"
instance_zone = "us-central1-a"
instance_network = google_compute_network.mynetwork.self_link
}
# Create the mynet-eu-vm" instance
module "mynet-eu-vm" {
source = "./instance"
instance_name = "mynet-eu-vm"
instance_zone = "europe-west1-d"
instance_network = google_compute_network.mynetwork.self_link
}
instance/main.tf
variable "instance_name" {}
variable "instance_zone" {}
variable "instance_type" {
default = "n1-standard-1"
}
variable "instance_network" {}
resource "google_compute_instance" "vm_instance" {
name = "${var.instance_name}"
zone = "${var.instance_zone}"
machine_type = "${var.instance_type}"
boot_disk {
initialize_params {
image = "debian-cloud/debian-9"
}
}
network_interface {
network = "${var.instance_network}"
access_config {
# Allocate a one-to-one NAT IP to the instance
}
}
}
Thursday, June 3, 2021
Google Cloud - how to get my IP address
Here is the command
curl -H "Metadata-Flavor: Google" http://169.254.169.254/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip && echo
Generate a CSEK key
AES-256 base-64 key.
Run the following command to create a key:
python3 -c 'import base64; import os; print(base64.encodebytes(os.urandom(32)))'