diff --git a/jap-ldap/src/main/java/com/fujieid/jap/ldap/LdapConfig.java b/jap-ldap/src/main/java/com/fujieid/jap/ldap/LdapConfig.java index 8d82d38..d131f82 100644 --- a/jap-ldap/src/main/java/com/fujieid/jap/ldap/LdapConfig.java +++ b/jap-ldap/src/main/java/com/fujieid/jap/ldap/LdapConfig.java @@ -47,7 +47,7 @@ public class LdapConfig extends AuthenticateConfig { /** * Query conditions, such as: (&(objectClass=organizationalPerson)(uid=%s)) */ - private String filters; + private String filters = "(&(objectClass=inetOrgPerson)(uid=%s))"; /** * This parameter must be configured when using ldaps, which means a trusted certificate */