我们的目标是更改https://docs.openshift.com/container-platform/3.6/admin_solutions/user_role_mgmt.html#leveraging-default-groups中记录的“默认权限”。组system:authenticated , system:authenticated:oauth, system:unauthenticated应该无法访问该接口。一种使用情形是:不允许不属于管理员组的ldap用户登录到web控制台。这也是我们测试它的方式。
命令,如
oadm policy remove-cluster-role-from-user basic-user system:authenticated
oadm policy remove-cluster-role-from-user system:basic-user system:authenticated返回时不会出错。然而,我们也看不到任何效果。oc get clusterrolebindings和oc get rolebindings的输出保持不变,我们的测试用户仍然可以登录。
我们是否尝试了错误的命令?或者还需要采取进一步的行动?
https://stackoverflow.com/questions/47769456
复制相似问题