AKAI TSUKI

System development or Technical something

login web console (OpenShift)

ref. Install OpenShift - AKAI TSUKI

install httpd-tools

ref. Configuring Authentication and User Agent | Installation and Configuration | OpenShift Origin Latest
at master node.

# yum install -y httpd-tools
*snip*
Installed:
  httpd-tools.x86_64 0:2.4.6-45.el7.centos.4

Dependency Installed:
  apr.x86_64 0:1.4.8-3.el7                       apr-util.x86_64 0:1.5.2-6.el7

Complete!
#

create user with password by htpasswd

at master node.

# htpasswd -c /etc/origin/master/htpasswd user01
New password:
Re-type new password:
Adding password for user user01
#

setting (HTPasswdPasswordIdentityProvider)

at master node.

# grep -A8 identityProviders /etc/origin/master/master-config.yaml
  identityProviders:
  - challenge: true
    login: true
    mappingMethod: claim
    name: htpasswd_auth
    provider:
      apiVersion: v1
      file: /etc/origin/master/htpasswd
      kind: HTPasswdPasswordIdentityProvider
#

access web console

from my client to https://opshift01:8443/ as below
f:id:akai_tsuki:20170813034025p:plain

After I created project in web console

f:id:akai_tsuki:20170813205345p:plain

use user01

login

# oc login -u user01
Authentication required for https://opshift01:8443 (openshift)
Username: user01
Password:
Login successful.

You have one project on this server: "testpj01"

Using project "testpj01".
# 

I can not get node infomation by user01.

# oc get node
Error from server (Forbidden): User "user01" cannot list all nodes in the cluster
#

logout

# oc logout
Logged "user01" out on "https://opshift01:8443"
#