Giter Site home page Giter Site logo

Comments (3)

kwart avatar kwart commented on August 13, 2024

I've tried following arguments:

-Dorg.slf4j.simpleLogger.log.org.apache.directory.server.xdbm.search.impl.DefaultSearchEngine=DEBUG
-Dorg.slf4j.simpleLogger.levelInBrackets=true
-Dorg.slf4j.simpleLogger.showThreadName=true
-Dorg.slf4j.simpleLogger.showDateTime=true
-Dorg.slf4j.simpleLogger.dateTimeFormat="yyyy-MM-dd'T'HH:mm:ss.SSS"

and after a search query execution, the output contains:

2020-03-02T09:26:29.635 [pool-3-thread-1] [DEBUG] org.apache.directory.server.xdbm.search.impl.DefaultSearchEngine - Nb results : 9223372036854775807 for filter : (&:[5](uid=*:[∞])(#{SUBTREE_SCOPE (Estimated), 'dc=jboss,dc=org', DEREF_ALWAYS}:[5]))

from ldap-server.

kwart avatar kwart commented on August 13, 2024

Another possibility is to add your own interceptor to the directory service. There is one test interceptor included within the code, you have to "just" (programmatically) plug it in.

In LdapServer.LdapServer(CLIArguments) uncomment following line:

directoryService.addLast(new CountLookupInterceptor());

https://github.com/kwart/ldap-server/blob/1604819e2bc023d78dbf79d994f8b3caa9abddd3/src/main/java/org/jboss/test/ldap/LdapServer.java#L90-L92

It outputs similar lines:

>> lookup: FilteringOperationContext for Dn 'uid=admin,ou=system', * (counter=3)
>> search: SearchContext for Dn 'dc=jboss,dc=org', filter :'(uid=*)' (counter=4)

Closing this question, feel free to reopen it if needed.

from ldap-server.

mckenziec avatar mckenziec commented on August 13, 2024

Awesome. Thanks so much!

from ldap-server.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.