javax.naming.InvalidNameException: [LDAP: error code 34 - invalid DN]

前端 未结 2 642
别跟我提以往
别跟我提以往 2021-01-19 04:58

I\'m a college student. Now, i\'m doing a project that must use LDAP connection to authenticate the username and password of the user in log in process. So, my website is de

2条回答
  •  终归单人心
    2021-01-19 05:58

    The "javax.naming.InvalidNameException: [LDAP: error code 34 - invalid DN] " in your stack trace is the key. Your LDAP server doesn't like the value you are sending it. I would suggest fully qualifying the user name, something like cn=username, ou=some_container, o=mycompany. The actual syntax will be driven by your LDAP server.

提交回复
热议问题