jars update

This commit is contained in:
MaxKey
2022-07-19 17:22:53 +08:00
parent 0071f5c7eb
commit e2c21894f2
3 changed files with 24 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ public class LdapAuthenticationRealmService {
LdapAuthenticationRealm authenticationRealm = ldapRealmStore.getIfPresent(instId);
if(authenticationRealm == null) {
List<LdapContext> ldapContexts =
ldapContextService.find("where instid = ? ", new Object[]{instId}, new int[]{Types.VARCHAR});
ldapContextService.find("where instid = ? and status = 1 ", new Object[]{instId}, new int[]{Types.VARCHAR});
authenticationRealm = new LdapAuthenticationRealm(false);
if(ldapContexts != null && ldapContexts.size()>0) {
authenticationRealm.setLdapSupport(true);