@i.gavrilov solved,by overriding adSupplier
@Order(Ordered.HIGHEST_PRECEDENCE)
@Component
public class CustomAdAuthSupplier extends ActiveDirectoryAuthenticationManagerSupplier {
public CustomAdAuthSupplier(StandardAuthenticationProvidersProducer producers,
ApplicationEventPublisher publisher,
LdapProperties props,
UserDetailsContextMapper mapper,
JmixLdapGrantedAuthoritiesMapper authoritiesMapper) {
super(producers, publisher, props, mapper, authoritiesMapper);
}
@Override
protected AuthenticationProvider activeDirectoryLdapAuthenticationProvider() {
ActiveDirectoryLdapAuthenticationProvider p =
(ActiveDirectoryLdapAuthenticationProvider) super.activeDirectoryLdapAuthenticationProvider();
Map<String, Object> env = new HashMap<>();
env.put("java.naming.ldap.attributes.binary", "objectGUID objectSid tokenGroups");
p.setContextEnvironmentProperties(env);
return p;
}
}