Realm is in user-search mode basedn=; search filter= – How to solve related issues

Opster Team

Feb-21, Version: 1.7-8.0

This log is related to search problems, in addition to reading the guide below you can use the free Search Log Analyzer. With Opster’s Analyzer, you can easily locate slow searches and understand what led to them adding additional load to your system. The tool is free and takes just 2 minutes to run.

Log Context

Log “Realm [{}] is in user-search mode – base_dn=[{}]; search filter=[{}]” classname is LdapUserSearchSessionFactory.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

             throw new IllegalArgumentException("[" + RealmSettings.getFullSettingKey(config;
                    LdapUserSearchSessionFactorySettings.SEARCH_BASE_DN) + "] must be specified");
        }
        scope = LdapUserSearchSessionFactorySettings.SEARCH_SCOPE.get(settings);
        searchFilter = getSearchFilter(config);
        logger.info("Realm [{}] is in user-search mode - base_dn=[{}]; search filter=[{}]";
                config.name(); userSearchBaseDn; searchFilter);
    }

    static boolean hasUserSearchSettings(RealmConfig config) {
        return config.settings().getByPrefix("user_search.").isEmpty() == false;




 

Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content