Giter Club home page Giter Club logo

ldap-test's Introduction

ldap-test

A Java client to view the time spent for creating LDAP connections and querying. In the meantime, it can be used to view the results for a given query.

1. You have to configure following parameters first.
private static String LDAP_URL = "ldap://localhost:10389";
    Connectiion URL
private static String LDAP_USER = "uid=admin,ou=system";
    LDAP User
private static String LDAP_PASSWORD = "admin";
    Password of the LDAP User
private static String LDAP_SEARCH_BASE = "ou=Users,dc=wso2,dc=org";
    User/Group searchbase which you are going to search for.
private static String SEARCH_FILTER = "(&(objectClass=person)(uid=admin))";
    The filter to search for Users/Groups
private static String ATTRIBUTE_TO_PRINT = "uid";
    User/Group attribute to print in the log
private static String LDAP_REFERRAL = "follow";
    Whether to follow or ignore LDAP Referrals
private static String KEYSTORE = "";
    Java Keystore (TrustStore) file if you are going to use LDAPS
private static String KEYSTORE_PASSWORD = "wso2carbon";
    Password of the keystore, if keystore is specified
private static int NUMBER_OF_ITERATIONS = 10;
    Number of iternations to run the same test
private static long DELAY_BETWEEN_ITERATIONS = 2000; //ms
    Delay between two iterations in ms
2. Compile the LDAPTest.java using javac.

javac LDAPTest.java

3. Run the test

Some examples on specifying the parameters.

java LDAPTest
java LDAPTest ldappassword
java LDAPTest ldappassword /path/to/truststore.jks
java LDAPTest ldappassword /path/to/truststore.jks keystorepassword

TODO
  • LDAP pool configuration

Derived initial version from http://soasecurity.org and improved later.

ldap-test's People

Contributors

rksk avatar

Watchers

James Cloos avatar

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.