-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
配置LDAP登录,但始终无法成功登录 #7924
Comments
Same problem. It seems only user in the root dir can be authorized, others in the subtree can not be. Here is the exception info:
|
@i will solve it@ |
我这边也是能正常登录. 可能是 ldap 的配置问题 |
ldap 是不是启用了 SASL ? |
找到了问题, 我这边公司内的结构包含多级, 且存在多个可变的量。因此配置文件中单一变量的方式不能解决我的问题,所以我从源码中更改了ldap相关方法 |
@StandardStudent 感谢,请提交PR参考! |
感谢! |
@onewe @karsonto @KomachiSion 2.0.4 upgrade to 2.1.0,升级到最新版发现数据库不兼容,字段报错,有没有升级文档 |
你这边指的是ldap login的问题吧?配置文件参考如下 |
@karsonto 感谢提供参考配置! 不过我的问题还没到 ldap 配置,我的测试环境是跑在 k8s 集群上,我把镜像版本替换成最新的 2.1.0 之后,集群起不来,看日志提示数据库字段不兼容,不知道是不是要更新数据库呢? |
@KeithTt 最新的版本增加配置加密功能,数据库需要增加字段,分别在 |
通过 blame 这个文件 https://github.com/alibaba/nacos/blob/develop/distribution/conf/nacos-mysql.sql ,分别给 再次更新镜像版本到 2.1.0 已经正常启动。遗憾的是,容器版本看起来不支持 ldap。
|
@KeithTt 容器支持 ldap 有点点麻烦 |
@onewe Sigh... 如果是本地非容器实例的话,要怎么升级呢?
这样操作对吗?会影响已经在使用 Nacos 的服务吗? |
应该行吧,可以演练一下,我没升级过 @KeithTt |
在application中,更改了如下内容
nacos.core.auth.system.type=ldap
nacos.core.auth.ldap.url=ldap://**:389
nacos.core.auth.ldap.userdn=cn={0},ou=example,dc=com,dc=cn
nacos.core.auth.enabled=true
但仍然无法正常登陆,我这边用相同的参数可以使用ldapsearch命令查到信息
The text was updated successfully, but these errors were encountered: