0

我安装了 cf-admin-ui: https://github.com/cloudfoundry-incubator/admin-ui,并开始,当我使用默认用户 admin 登录时,它说:

用户“管理员”的范围不足

我该怎么办?

提前致谢!

4

1 回答 1

2

您需要做的是将组添加admin_ui.admin到该用户的范围内。您可以通过执行以下命令来做到这一点:

uaac member add admin_ui.admin <user>

当然,您需要将您的 uaac 配置为使用具有 scim.write 范围的管理员客户端令牌。如果不遵循以下说明:

# Target your UAA and get the 'admin' token
uaac target http://uaa.10.244.0.34.xip.io
uaac token client get admin -s admin-secret

# Add 'scim.write' if not already there and re-get token
uaac client update admin --authorities "`uaac client get admin | \
    awk '/:/{e=0}/authorities:/{e=1;if(e==1){$1="";print}}'` scim.write"
uaac token client get admin -s admin-secret

您还应该创建admin_ui.admin group. 如果不这样做:

# Create a new group and add the 'admin' user to it
uaac group add admin_ui.admin
uaac member add admin_ui.admin admin

# Create the new UAA admin_ui_client
uaac client add admin_ui_client \
 --authorities cloud_controller.admin,cloud_controller.read,cloud_controller.write,openid,scim.read \
 --authorized_grant_types authorization_code,client_credentials,refresh_token \
 --autoapprove true \
 --scope admin_ui.admin,admin_ui.user,openid \
 -s admin_ui_secret
于 2014-10-21T23:05:55.863 回答