@Bean
    @ConditionalOnMissingBean
    public LdapContextSource contextSource(final LdapProperties ldapProp) {
        LdapContextSource contextSource = new LdapContextSource();
        contextSource.setUrl(ldapProp.getUrl());
        contextSource.setUserDn(ldapProp.getBindDn());
        contextSource.setPassword(ldapProp.getPassword());
        contextSource.setPooled(true);
        Map<String, Object> config = new HashMap<>();
        config.put("java.naming.ldap.attributes.binary", "objectGUID");
        config.put("com.sun.jndi.ldap.connect.timeout", String.valueOf(ldapProp.getConnectTimeout()));
        config.put("com.sun.jndi.ldap.read.timeout", String.valueOf(ldapProp.getReadTimeout()));
        contextSource.setBaseEnvironmentProperties(config);
        return contextSource;
    }
register ldap client in spring ioc.

@param ldapProp the ldap configuration
@return LdapContextSource {@linkplain LdapContextSource}
shenyu-admin/src/main/java/org/apache/shenyu/admin/config/LdapConfiguration.java