Spring boot Springboot与Jumpcloud LDAP的集成始终提供;“不良凭证”;

Spring boot Springboot与Jumpcloud LDAP的集成始终提供;“不良凭证”;,spring-boot,ldap,Spring Boot,Ldap,我正在使用官方文档中存在的参考代码,但是,我无法使其工作。我想将其用于Jumpcloud LDAP: auth .ldapAuthentication() .userDnPatterns("uid={0},ou=Users,o=mycompany,dc=jumpcloud,dc=com") .groupSearchBase("ou=Users")

我正在使用官方文档中存在的参考代码,但是,我无法使其工作。我想将其用于Jumpcloud LDAP:

auth
                .ldapAuthentication()
                .userDnPatterns("uid={0},ou=Users,o=mycompany,dc=jumpcloud,dc=com")
                .groupSearchBase("ou=Users")
                .contextSource()
                .url("ldaps://ldap.jumpcloud.com:636/o=mycompany,dc=jumpcloud,dc=com")
                .and()
                .passwordCompare()
                .passwordEncoder(BCryptPasswordEncoder())
                .passwordAttribute("userPassword");

我尝试了多种配置,但所有配置都给了我“错误的凭据”。

错误的凭据通常意味着进行LDAP查询所需的LDAP服务帐户存在问题。由于JumpCloud不支持匿名查询,您必须创建具有LDAP绑定DN权限的帐户