door lock

Hashicorp Vault – Creating a new root Token

The best practices for Hashicorp Vault are to destroy your default root token after you have finished the initial setup of Vault. However, you will still find times when you need a new root token for certain advanced functions.This article describes how to create a new root token using your vault unseal keys.Instructions were found here: https://www.hashicorp.com/blog/vault-0-5/Generate One time Password:First we will use the vault generate-root command with the genopt argument. This will generate Read more […]


lock

Hashicorp Vault – Configure Authentification

There are many authentication methods for vault. This article descibes how to configure LDAP authentication and Userpass Authentication LDAP Authentication: The following command will configure LDAP to point at a domain controller named mydomaincontroller.mydomain.com. It will then search the search base for groups to the top of mydomain.com domain: vault write auth/ldap/config url=”ldap://mydomaincontroller.mydomain.com:389″ userattr=sAMAccountName userdn=“dc=mydomain,dc=com” groupdn=“dc=mydomain,dc=com” Read more […]


padlock

Hashicorp Vault – Rekey or Unseal Vault

After the Hashicorp Vault service has been restarted, the password vault is in a sealed state. This means that the encryption keys are not in memory, and the encrypted database on the disk cannot be read. More on this topic can be read here: https://www.vaultproject.io/docs/concepts/seal.htmlThis article will discuss the process for unsealing and re-keying the vault.To unseal the vaultGenerally to unseal the vault you will need at least two unseal keys. Whoever created the vault, or last re-keyed Read more […]


padlock green door chain

Hashicorp Vault – Reading and Writing Secrets to Vault

This article will describe how to read and write secrets to vault using the vault CLI and CURL. These instructions are assuming you are on either Linux or Mac OSX. Later we will add instructions for windows. That said, most of the Vault CLI commands should work fine on windows as well.Before you can proceed, you need to be sure you have authenticated against vault. For details on that, you can check out one of our articles about configuring vault authentication. To use the CURL commands you also Read more […]


chain

Hashicorp Vault – Install Client CLI and GUI

Hashicorp Vault has a variety of ways to access it. You can access it via a CLI client, via the rest api/CURL, and via a third party GUI client. This article will discuss how to setup the CLI and one of the 3rd party GUI’s available on Github.Installing the CLI ClientVault has a client for a variety of platforms. Lets start by downloading the appropriate client for your platform from here:https://www.vaultproject.io/downloads.htmlOSX/MacOS:The installation on OSX/MacOS is very easy. There are Read more […]


robot with a square head and yellow eyes

Automatically deploy Puppet agent on VMWare Templates

Ensuring your Puppet Agent is installed on all machines in your environment can be a challenging task.  Today I will share a tip on how you can ensure that the puppet agent us automatically deployed to all of your new virtual machines. Explanation When you deploy a VMWare template, you have the option to create a customization specification.  You can add a command to this customization specification to automatically deploy the puppet agent, after the template has finished deploying. One of Read more […]


backlit keyboard

Manually create TCP Printer Port using Powershell

Adding Network printers to a print server can be cumbersome when doing it through the GUI. For that reason, you may want to attempt to do it via a CLI interface. In this article I describe the Powershell commands for adding a TCP port for a TCP printer. As well as how to bulk create the TCP printer ports using a Powershell For loop.SyntaxThe syntax for adding the TCP print port via powershell is as follows:Add-PrinterPort -Name “ip_IPAddress” -PrinterHostAddress IPAddressExamplesHere is an example Read more […]


spider web

Fixing Error 500 in WordPress

WordPress can break for a variety of reasons.  Generally when it breaks, you will have one of a few symptoms.  You will get an HTTP error, you will get a blank page, or there will be some broken functionality.  The goal of this article is to troubleshoot the HTTP Error 500 you may see. HTTP Error 500 means internal server error. This can have a variety of causes. With wordpress there are 4 common causes: Allocated Memory has been exhausted Corrupted .htaccess file corrupted php file Read more […]


code screenshot

Squashing GIT Commits

When you are working with version control. You may have multiple commits that you would like to combine into a single commit. Or perhaps you want to change their order, etc… First you need to determine how far back you want to go. Open a command prompt or terminal window, navigate to your Git Repository. next, type> git log -10 The above command will show the last 10 commits. If that does not go far enough back, in increase the number 10 Once you have identified the commits you wish to Read more […]


laptop on desk

Enable BranchCache On Netapp CIFS shares

Branch Cache is a caching technology to help with performance when accessing file shares over a WAN. Netapp supports this technology and it can be used with compatible clients such as Windows 7 Enterprise and newer, and Server 2008r2 and newer Enable Branch Cache on a storage system Enable SMB 2.1:

The command enables both SMB 2.0 and SMB 2.1. Enable BranchCache:

Optional: Configure the time (in seconds) to keep Read more […]