Git Product home page Git Product logo

Comments (9)

vbottu avatar vbottu commented on May 29, 2024 1

It worked,Thank you so much

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on May 29, 2024

in either the org or the portalUrl you can specify a constraint by group in the same way you would specify it in the rbac rule. So similar to the example in the README to limit access to the CN=k8s_login_ckuster_admins,CN=Users,DC=ent2k12,DC=domain,DC=com group, specify

  - constraint: CN=k8s_login_ckuster_admins,CN=Users,DC=ent2k12,DC=domain,DC=com
    scope: group

make sure you don't keep the original constraint in place otherwise everyone will see it.

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on May 29, 2024

Thanks, how do I add multiple groups to that constraint, is it comma separated or a separate entry

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on May 29, 2024

You can list multiple azRules:

apiVersion: openunison.tremolo.io/v1
kind: Org
metadata:
  name: cluster2
  namespace: openunison
spec:
  description: "My second cluster"
  uuid: 04901973-5f4c-46d9-9e22-55e88e168776
  parent: B158BD40-0C1B-11E3-8FFD-0800200C9A66
  showInPortal: true
  showInRequestAccess: false
  showInReports: false
  azRules:
  - scope: group
    constraint: CN=k8s_login_ckuster_admins,CN=Users,DC=ent2k12,DC=domain,DC=com
  - scope: group
    constraint: CN=k8s_login_cluster2_admins,CN=Users,DC=ent2k12,DC=domain,DC=com

When listing multiple groups, OpenUnison will allow access if any of the azRule definitions are satisfied

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on May 29, 2024

I tried that ,the org is not displayed even though the azRule is satisfied. Below is my org

apiVersion: openunison.tremolo.io/v1
kind: Org
metadata:
  name: test-cluster
  namespace: openunison
spec:
  description: "TEST K8S CLUSTER"
  uuid: *************************************
  parent: ******************************
  showInPortal: true
  showInRequestAccess: false
  showInReports: false
  azRules:
  - scope: group
    constraint: CN=k8s-test-devs,OU=Groups,DC=example,DC=com
  - scope: group
    constraint: CN=k8s-test-admins,OU=Groups,DC=example,DC=com

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on May 29, 2024

try

apiVersion: openunison.tremolo.io/v1
kind: Org
metadata:
  name: test-cluster
  namespace: openunison
spec:
  description: "TEST K8S CLUSTER"
  uuid: *************************************
  parent: ******************************
  showInPortal: true
  showInRequestAccess: false
  showInReports: false
  azRules:
  - scope: filter
    constraint: (memberOf=CN=k8s-test-devs,OU=Groups,DC=example,DC=com)
  - scope: filter
    constraint: (memberOf=CN=k8s-test-admins,OU=Groups,DC=example,DC=com)

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on May 29, 2024

Hi Marc,
I just tried it ,did not work. the user is member of both the groups.

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on May 29, 2024

Sorry, hopefully third time's a charm:

apiVersion: openunison.tremolo.io/v1
kind: Org
metadata:
  name: test-cluster
  namespace: openunison
spec:
  description: "TEST K8S CLUSTER"
  uuid: *************************************
  parent: ******************************
  showInPortal: true
  showInRequestAccess: false
  showInReports: false
  azRules:
  - scope: filter
    constraint: (groups=CN=k8s-test-devs,OU=Groups,DC=example,DC=com)
  - scope: filter
    constraint: (groups=CN=k8s-test-admins,OU=Groups,DC=example,DC=com)

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on May 29, 2024

I will try it out, Thank you

from openunison-k8s-login-activedirectory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.