The user account armstrong=indionce The user account collins=veraster The user account<br />
aldrin=roonkere The user account jobs=sestiver<br />
The user account wozniak=glegunge
<br />
Solution:<br />
$ sudo yum install httpd-tools -y<br />
$ htpasswd -c -B -b htpasswd-file-upload armstrong indionce<br />
$ htpasswd $ htpasswd $ htpasswd $ htpasswd -B -b htpasswd-file collins veraster<br />
<br />
-B -b htpasswd-file aldrin roonkere<br />
<br />
-B -b htpasswd-file jobs sestiver<br />
<br />
-B -b htpasswd-file wozniak glegunge<br />
$ oc create secret generic ex280-idp-secret --from-file<br />
htpasswd=htpasswd-file -n openshift-config<br />
$ oc get oauth/cluster -o yaml> oauth.yaml<br />
$ vim oauth.yaml<br />
$<br />
esc--> type :set paste --> enter --> insert --> then paste the content for correct indent pasting<br />
spec: identityProviders:<br />
<br />
- name: ex280-htpasswd mappingMethod: claim type: HTPasswd htpasswd:<br />
fileData: name: ex280-idp-secret<br />
$ oc replace -f oauth.yaml<br />
$ oc login -u armstrong -p indionce<br />
$ oc login -u collins -p veraster<br />
$ oc login -u aldrin roonkere<br />
$ oc login -u jobs sestiver<br />
$ oc login -u wozniak -p glegunge<br />
#This below part of operation is completely optional and done just for handy login purpose<br />
$ alias _kube="oc login -u kubeadmin -p ${kube_pass} ${api_url}"<br />
$ alias _armstrong="oc login -u armstrong -p ${armstrong}<br />
${api_url}"<br />
$ alias _collins="oc login -u collins -p ${collins} ${api_url}"<br />
$ alias _aldrin="oc login -u aldrin -p ${aldrin} ${api_url}"<br />
$ alias _jobs="oc login -u jobs -p ${jobs} ${api_url}"<br />
$ alias _wozniak="oc login -u wozniak -p ${wozniak} ${api_url}"<br />
$ _armstrong;_armstrong;_collins;_aldrin;_jobs;_wozniak;