[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: HTPasswdPassword



Hi,

It is not auth error. I guess you login to the openshift with "root" user. And it caused current issue.[1]

My guess may be wrong, could you please confirm it by

  # oc login --config=/etc/openshift/master/admin.kubeconfig

[1] https://github.com/openshift/openshift-docs/issues/682

Regards,
Kenjiro


On Thu, Oct 22, 2015 at 5:22 PM, Lorenz Vanthillo <lorenz vanthillo outlook com> wrote:
I'm able to login with every user with this (standard config)

identityProviders:
  - name: allow_all
    challenge: True
    login: True
    provider:
      apiVersion: v1
      kind: AllowAllPasswordIdentityProvider     
  masterCA: ca.crt
  masterPublicURL: https://ec2-52-18-247-58.eu-west-1.compute.amazonaws.com:8443
  masterURL: https://ip-10-0-0-104.eu-west-1.compute.internal:8443

With the following configration it's not able to login. I get a 401.

identityProviders:
  - name: deny_all
    challenge: True
    login: True
    provider:
      apiVersion: v1
      kind: DenyAllPasswordIdentityProvider 
  masterCA: ca.crt

  masterPublicURL: https://ec2-52-18-247-58.eu-west-1.compute.amazonaws.com:8443
  masterURL: https://ip-10-0-0-104.eu-west-1.compute.internal:8443


So that's fine, but when I'm trying to use HTPasswdPasswordIdentityProvider with the following config:

identityProviders:
  - name: htpasswd
    challenge: True
    login: True
    provider:
      apiVersion: v1
      kind: HTPasswdPasswordIdentityProvider  
      file: /etc/origin/users.htpasswd #this file exsists and is created in the right way 

  masterCA: ca.crt
  masterPublicURL: https://ec2-52-18-247-58.eu-west-1.compute.amazonaws.com:8443
  masterURL: https://ip-10-0-0-104.eu-west-1.compute.internal:8443

I get the following error:
[root ip-10-0-0-104 master]# oc login
The connection to the server ip-10-0-0-104.eu-west-1.compute.internal:8443 was refused - did you specify the right host or port?

What am I doing wrong?

_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users




--
Kenjiro NAKAYAMA <nakayamakenjiro gmail com>
GPG Key fingerprint = ED8F 049D E67A 727D 9A44  8E25 F44B E208 C946 5EB9

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]