Skip to content

Commit

Permalink
Merge pull request #126 from ibm-client-engineering/adam-updates
Browse files Browse the repository at this point in the history
Adam updates
  • Loading branch information
adamhayden-ibm authored Jun 10, 2024
2 parents 9304f99 + 73ff71a commit 5104d86
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docs/2-Deployment/1-Infrastructure/2-UPI_Install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -698,3 +698,50 @@ nvme0n1 259:1 0 500G 0 disk
sudo xfs_growfs -d /
```

### Add users to OpenShift using HTPassword

#### Install HTTP Tools:

```
yum install httpd-tools
```

#### Create a HTPassword File:

Create a HTPassword file:

```
htpassword -c <file_name> <username>
```

After running the command, you will be prompted for a password and then asked to confirm password.

#### Create the HTPassword secret:

```
oc create secret generic htpasswd-secret --from-file=htpasswd=<file_name> -n openshift-config
```

####

Edit the OpenShift OAuth settings:

```
oc edit oauth cluster
```

Then add the following to the file:

```
spec:
identityProviders:
- name: my_htpasswd_provider
mappingMethod: claim
type: HTPasswd
htpasswd:
fileData:
name: htpasswd-secret
```

After this has been added, try opening Openshift in a private browser, and select 'HTPasswd'. Then enter the username and password.

0 comments on commit 5104d86

Please sign in to comment.