Skip to content
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

An LDAP authentication error occurs #7954

Closed
zhangwenliang012 opened this issue Mar 18, 2022 · 3 comments
Closed

An LDAP authentication error occurs #7954

zhangwenliang012 opened this issue Mar 18, 2022 · 3 comments
Labels
status/duplicate This issue or pull request already exists

Comments

@zhangwenliang012
Copy link

2022-03-18 14:03:26,941 ERROR login error:[LDAP: error code 49 - 80090308: LdapErr: DSID-0C090447, comment: AcceptSecurityContext error, data 52e, v3839]

2022-03-18 14:03:26,942 ERROR CONSOLE /nacos/v1/auth/users/login

java.lang.RuntimeException: login error!
at com.alibaba.nacos.console.security.nacos.LdapAuthenticationProvider.ldapLogin(LdapAuthenticationProvider.java:145)
at com.alibaba.nacos.console.security.nacos.LdapAuthenticationProvider.authenticate(LdapAuthenticationProvider.java:97)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:175)
at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:200)

config:
nacos.core.auth.system.type=ldap

If turn on auth system:

nacos.core.auth.enabled=true

worked when nacos.core.auth.system.type=ldap,{0} is Placeholder,replace login username

nacos.core.auth.ldap.url=ldap://...:389
nacos.core.auth.ldap.userdn=cn={0},dc=prenp,dc=cn

@zhangwenliang012
Copy link
Author

Whether to configure the user name and password

@KomachiSion
Copy link
Collaborator

LDAP is contributed by community fully, need community help

@KomachiSion KomachiSion added the help wanted Extra attention is needed label Mar 23, 2022
@karsonto
Copy link
Contributor

Please reference #7924 comment

@KomachiSion KomachiSion added status/duplicate This issue or pull request already exists and removed help wanted Extra attention is needed labels Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants