Hi, We are using jmix 2.6
I follow pages
I have problems configuring ldap plugin for authentication ( not full user synchronzation ) on my active directory servers
my config :
jmix:
# https://docs.jmix.io/jmix/ldap/getting-started.html
# https://docs.jmix.io/jmix/ldap/properties.html
ldap:
enabled: true
use-active-directory-configuration: true
urls: ldap://ad1.mydomain:389,ldap://ad2.mydomain:389
base-dn: CN=xxx,OU=yyy,DC=zzzz,DC=mydomain
active-directory-domain: FLV
user-search-filter: (&(objectClass=user)(sAMAccountName={0}))
# also tried
# user-search-filter: (&(objectClass=user)(sAMAccountName={1}))
standardAuthenticationUsers: admin
default-roles: ui-minimal,ui-filter
synchronize-role-assignments: false
# authentication
manager-dn: CN=xxx,OU=yyy,DC=zzzz,DC=mydomain
manager-password: mypassword
I created the class CustomUserSynchronizationStrategy (Getting Started with LDAP :: Jmix Documentation)
In logs, I see :
WARN [main] o.s.s.c.a.a.c.InitializeUserDetailsBeanManagerConfigurer$InitializeUserDetailsManagerConfigurer - Found 2 UserDetailsService beans, with names [my_UserRepository, ldapUserRepository]. Global Authentication Manager will not use a UserDetailsService for username/password login. Consider publishing a single UserDetailsService bean.
the bean my_UserRepository is the one generated by jmix when creating the project
[...]
@Primary
@Component("emr_UserRepository")
public class DatabaseUserRepository extends AbstractDatabaseUserRepository<User> {
}
[...]
What do I do wrong?
Best Regards,
Guillaume