Help needed to figure out URL and username for the LDAP server

Given that LDAP directory parameters as follows, how can i identify the exact parameters to be used in my LDAP service access Java code. Im using JNDI to access a LDAP server given by an Ip address (say, 10.1.1.20) and the port number (say, 389)
Given: -D "cn=mycn,ou=mystaff,o=myorg,dc=test,dc=my,dc=org" -w secret
Heres my sample Java code
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "<URL>");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "<PRINCIPAL>");
env.put(Context.SECURITY_CREDENTIALS, "secret");
ctx = new InitialDirContext(env);
SearchControls controls = new SearchControls();
controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
results = ctx.search("ou=mystaff,o=myorg", null);Could any one please help me to recognize what will be the values to be comes to URL, and PRINCIPAL , so that i can search all the objects inside "ou"
Note: Actually i tried several times, bt i was getting "Invalid Credentials" exception.. i doubt that is because the URL or the user name i gave was not syntactically correct. Thats y i need to verify with you all.
Thanks in advance
Saj

env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "<URL>");env.put(Context.PROVIDER_URL, "ldap://10.1.1.20:389");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "<PRINCIPAL>");env.put(Context.SECURITY_PRINCIPAL, "cn=mycn,ou=mystaff,o=myorg,dc=test,dc=my,dc=org");
env.put(Context.SECURITY_CREDENTIALS, "secret");
ctx = new InitialDirContext(env);
SearchControls controls = new SearchControls();
controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
results = ctx.search("ou=mystaff,o=myorg", null);

Similar Messages

  • Hello, I just purchase Adobe Premier elements 12. I installed it but the only problem is when I try to open "new project" it tells me I have to put my password in and username for the first seven days of installation, but when I do that the project never

    Hello, I just purchase Adobe Premier elements 12. I installed it but the only problem is when I try to open "new project" it tells me I have to put my password in and username for the first seven days of installation, but when I do that the project never opens, it just has the loading bar loading and then it stops, so I have no idea wat the problem is, please help

    new project help
    What computer operating system is your Premiere Elements running on?
    Have you gone through the typical drills of
    1. Latest version of QuickTime installed on your computer with Premiere Elements?
    2. Running program from User Account with Administrative Privileges as well as from Run As Administrator applied to the desktop icon
    with right click of the icon, followed by selecting Run As Administrator?
    3. Does problem exist with and without the antivirus and firewall(s) disabled?
    4. Even though the Premiere Elements 12 Editor will not open, can you open the Elements Organizer 12?
    If Yes to all of the above, please review the following for a possible solution...
    ATR Premiere Elements Troubleshooting: PE12: Premiere Elements 12 Editor Will Not Open
    Please review and consider the above and then we can decide what next which might include trying to open
    the program directly from the .exe files.  (If Windows 7, 8, or 8.1 64 bit, Local Disk C\Program Files\Adobe\
    Adobe Premiere Elements 12\ and in the Adobe Premiere Elements 12 Folder are the Adobe Premiere Elements 12.exe
    and Adobe Premiere Elements.exe files. Double click the Adobe Premiere Elements .exe file to try to open the project.)
    We will watching for your results.
    ATR

  • I need to figure out how to pay for another month of premiere... and it is very confusing... can someone help me?

    Need help figuring out how to pay for my renewal for Adobe Premiere. Anyone can tell me what to do?
    Thanks!

    Go to this webpage:
    Creative Cloud pricing and membership plans | Adobe Creative Cloud
    Click on the chat button (in the lower center of the page) or use the telephone number there.
    MtD

  • Help needed to figure out a strange thing

    I am running GJ and Java 1.4 on window 2k and I have been spending hours trying to figure out what's wrong with the following codes. Any help would be greatly appreciated. The code is simplified (doesn't use any util class at all), but it still throws runtime exception:
    C:\test>java D
    Exception in thread "main" java.lang.AbstractMethodError: E.test()LE;
    at C.test(C.java:1)
    at D.main(D.java:17)
    The strange thing is that, when I change the name of class E to B, it runs fine. It seems that classes B and C have to be ordered. For example, using name C1 and C2 will be fine, but using C2 and C1 throws exception. It's getting late and I am tired.
    public interface A {
    public A test();
    public abstract class E implements A {
    public abstract E test();
    public abstract class C extends E {
    public C() {}
    // the main class
    import java.io.*;
    public class D extends C {
    public D() {
    super();
    public D test() {
    System.out.println("D called");
    return new D();
    public static void main(String[] agrs) {
    A obj = new D();
    obj.test();

    Its a bug. The compiler neglected to generate a required bridge method.
    I have reported 4821489 for this problem.

  • My account has been hacked and someone has ordered stuff from your site in my name. i need to find out some more information for the police. do you have an email adres that i can send my questions to?

    They have ordered for just under 100 euros!! i now need to find out more! any suggestions?!
    thanks!

    You can report a problem with unauthorized purchases >  How to report an issue with Your iTunes Store purchase
    Change your Apple ID password > Apple - Support - Apple ID

  • HXXCEDT0 need to find out where are inputs for the form zk- zkq-rest

    Hi guys,
    im trying to modify by custumer exit, the program H99CEDT0 (the one that prints the payrroll for employees)
    my problem is that i need to find where some value is stored before printed in the form.
    the field is zkq-rest, i find a zq and i know that is from that table that get the field that i need, i need to find a form, method or something that extract and compute data from the zq table and stored in the zkq (absences quota)
    any ideas?

    Hi,
    where you maintain critical limit for each items?
    Try with below
    You can customized batch program to perform every day to check all open PO items to check GR Qty and then send e-mail reminder
    Take help from your ABAPer on this
    Hope this will help to you
    Regards,
    Sankaran

  • Wht is default User name  and password for the J2ee server

    Hi , All
    I had downloaded JSC for evaluation to get to creator hero ....
    After Complete Instalation I had started PointBase then start default Server Domain1
    when I try to start the deploy tool for that wht is username and password 'coz while installing server it doesn't ask me for user name and password for domain1......
    even same in apllication server .... username ==?? and pwd =??
    help me out...
    Thanks in adv..
    --Sudhir                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    user admin
    password adminadmin

  • I need to figure out how to properly install the pixel film studio plugins, can someone assist me please and thank you !

    Need some assistance, if anybody has successfully installed plugins by "pixel film studios" i would appreciate the help i'm very new to the plugin world.

    Is this for FCP-X?
    You need to post here:
    https://discussions.apple.com/community/professional_applications/final_cut_pro_ x
    MtD

  • Starting iPlanet Application server reports an error and shuts down the ldap server

    Hi,
    This has been happening to me starting today. I have kept the service to
    be interactive with the desktop. The starting of the service doesn't even
    open up the command prompt.
    The specific error is
    Error 2147 : Internal server error.
    Looking up on this error on gave me a statement :
    "Error 2147
    The specified parameter could not be found in the configuration information.
    Explanation: Windows NT could not find a particular entry in your
    configuration.
    Action: Ask your network administrator to check your configuration. The
    administrator should make sure your system configuration contains all
    information required to run Windows NT and any associated applications. "
    Can anybody put some light on this. The version of iplanet is 6.0 SP2 and is
    being run on windows NT workstation.
    Kind regards,
    Gurjit

    I ran into this error the other night talking to an openldap server running on solaris ... after hours and hours and hours and hours it turned out to be ...
    wait for it
    wait
    My client was sending ldap V2 and I set this in my openldap slapd.conf file
    allow bind_v2
    I hope this helps.

  • I just bought a new mac mini and an external DVD burner. I want to burn a DVD video and it will not play on the TV but only on the computer? Need this figured out for tomorrow.

    I just bought a new mac mini and an external DVD burner. I want to burn a DVD video and it will not play on the TV but only on the computer? Need this figured out for tomorrow. Can anyone help me?

    Congratulations on the new Mini. Are you saying you tried burning and it does not play, or do you want to burn it only for the computer to be able to play it?
    OS X Mountain Lion: Burn a CD or DVD may help.

  • HT201365 Hello, someone stole my sons IPhone today in his gym class. I have the find my iphone app on my phone BUT he is not a listed device. I went into his itunes account and downloaded the app under his account. Now I just need to figure out how to use

    Hello, someone stole my sons IPhone today in his gym class. I have the "find my iphone app" on my phone BUT he is not a listed device. I went into his itunes account and downloaded the "find my iphone app" app under his account. When I try to log into "find my iphone" under his name on my device I get an error msg involving icloud......he is MUCH better at this stuff then I am BUT he is in school and now I  need to figure out how to use the "find my iphone app". PLEASE HELP

    It doesn't matter whick account you use to download the app.
    You have to sign into the app (or iCloud.com from a web browser on your computer) with his Apple ID & password.
    Find My iPhone will only work if it was enabled in the iCloud settings on the device and it was powered on with a connection to the internet

  • I am moving from Southern California to Maui, Hawaii and I need to figure out the best way to get my 24 inch iMac across the ocean. Does anyone know the best way to do this?

    I am moving from Southern California to Maui, Hawaii and I need to figure out the best way to get my 24 inch iMac across the ocean. Does anyone know the best way to do this? I have found GearGrip's LCD harness so that I can do carry-on onto the plane...  Or maybe use a Pelican Case to do it as a "checked bag"? Or any other suggestions??! Please help!
    Thanks so much!!

    I don't recommend you send the iMac in a checked bag. Might get damaged.
    Check the airlines website for carry on guidelines.
    Or, if you have the original box that the iMac came in, if you have someone who can pick up the iMac for you, send it ahead Fed Ex and insure the package.
    Just make sure the display is covered to protect it. A blanket perhaps.
    Aloha ...

  • Trying to figure out pricing and plan options to add multiple computers to current subscirption. We currently have a subscription that allows the programs on two computers, but now I need 5 computers to be updated with CC.

    Trying to figure out pricing and plan options to add multiple computers to current subscirption. We currently have a subscription that allows the programs on two computers, but now I need 5 computers to be updated with CC. Have looked in to Small Business teams, but do not understand how many computers that is good for and if there is a professor or previous customer discount. Any help would be great, thanks!

    Hi,
    I presume that the new configuration is missing some parts as you seem to have the IP address of the external interface configured staticly on the interface but you have not configured any default route on the firewall? (Original configuration got default route dynamically and added it to the routing table)
    You also mentioned that you were able to connect to the Internet which would indicate there was indeed a default route with the new configuration?
    I am a bit confused about the host mask on the external interface (/32 - 255.255.255.255) ? Does the ASA really let you configure a host address on the interface? It can't lead anywhere as there is no next hop with a host mask. I think the ASA even blocks using a /31 mask link network which works with Cisco Routers.
    I guess I would go through the basic troubleshooting step when the new configuration is in use
    Check logs for any blocked connections or error messages
    Check the Static PAT (Port Forward) configuration with the "packet-tracer" command
    Capture traffic on the ASAs external interface (with the ASA itself) and confirm that you are seeing the TCP SYN of any connection attempts, or perhaps capture ICMP
    - Jouni

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • HT5622 I need help trying to figure out why I'm not able to purchase anythi iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

    I need help trying to figure out why I'm not able to purchase anything on iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

    I need help trying to figure out why I'm not able to purchase anything on iTunes. I changed my password, that didn't help. I changed my payment type, that didn't help. It initially started when my password got disabled. Any advice?

Maybe you are looking for

  • Too Many Index in a Table

    Dear Gurus, I´ve got some performance problems of an especific table called CC_FICHA_FINANCEIRA, the structure of the table is described below: NUMBER OF RECORDS: ABOUT 1.600.000 NAME NULL TYPE CD_FUNDACAO NOT NULL VARCHAR2(2) NUM_INSCRICAO NOT NULL

  • Help i am stuck

    Hi everyone, I am new to this J2me thing i have finish dl the midp and cldc and upzip both of them but when i go through with the docs i cant install the application on the midp when it call us to input the URL thing. It always give me this error. "T

  • Invalid Executable Size?

    Recently i got this error when uploading my app: Dear developer, We have discovered one or more issues with your recent delivery for "Axiata Cup 2013". To process your delivery, the following issues must be corrected: Invalid Executable Size - The ex

  • Window works, fullscreen does not

    Hi. I wrote a class representing a surface to do drawing operations on. It can display as a Window and in fullscreen. So the constructor is the really only method different from the rest of my aplication. But still, it doesnt work right: public Playg

  • How to make editable cell in ALV TREE?

    Hi all, I have a problem to make the cell in item row (I mean not  the cell in hierarchy columns and not in the node row) in ALV tree editable. I know to make it in "normal" ALV, but my ALV is type class: cl_gui_alv_tree and the nodes are calculated