Stubbing LDAP (Junit Question)

Posted on 2005-05-16
Last Modified: 2008-01-09
Hi I was just wondering if anyone has any experience in Stubbing LDAP? I am trying to JUNIT test some code that needs access to LDAP. Anyone have any ideas?Tutorials? Sample Code? or advice?

I am using Eclipse.

Question by:JimmyHackNSlash
    1 Comment
    LVL 13

    Accepted Solution

    Hi JimmyHackNSlash,

    Go to, openLDAP is an open source LDAP Server and can be installed on any OS, then u will need an LDAP browser, there are many, u will find in the same site links for those.

    When u setup and start openldap it will operate on port 389 (this is the defualt port for LDAP), now u can test ur LDAP code after suppling the connection parameters


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    If you have upgraded to Java2 update 10 on a Microsoft Windows client, you may have discovered that your Java application does not work as it did before.  For example, the colors of your Java2D graphic may be all wrong for no apparent reason. Aft…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now