hongming yyhh 注意配置文件缩进是否正确,配置项中的 loginAttribute 是否正确,外部ldap关联的账户可以通过kubectl get users -l iam.kubesphere.io/identify-provider=ldap 查询到,如配置不生效可以看看ks-apiserver日志
Jeff yyhh 这是一个issue,因为 3.0 中,username 是一个 CRD 对象的 name,而 k8s 对于对象的名称有着严格的规范,不符合上面显示的正则表达式的名称被视为无效名称,可以先在github上提个issue,我们看下如何解决
hongming yanqin001 是多集群环境还是单集群环境? 检查一下节点之间的时间差,可以将 maximumClockSkew 调大一点,重启 ks-apiserver 看看 kubectl -n kubesphere-system edit cm kubesphere-config kubectl -n kubesphere-system rollout restart deploy ks-apiserver
weekyuan 按照上面的配置ldap后,ldap用户可以正常登陆,但没有加入任何权限配置。我重新用admin登陆想进去为ldap用户配置权限,结果admin登陆不上,页面504超时。api-server日志如下: authentication.go:60] Unable to authenticate the request due to error: token is expired by 6m42s
hongming FlywinNing https://ldapwiki.com/wiki/Common%20Active%20Directory%20Bind%20Errors 配置生效了,但是密码不对