Oemapp console invalid credentials

I cant get the oemapp console running. I've used it before with
ifs81 so I know how it works. No matter what password I put in
I get Incorrect login credientials.
I created a second account and was sure to type the password
slowly and that account cant login either. If I launch it as
standalone it works.
If I do a "oemctl stop oms" I get
F:\oracle\ora90\9ifs\bin>oemctl stop oms
OEMCTL for Windows NT: Version 9.0.1.0.0
Copyright (c) 1998, 1999, 2000, 2001 Oracle Corporation. All
rights reserved.
Stopping the Oracle Management Server...
VXA-1003 : Administrator login credentials are invalid.
VXA-2012 : Failed to log in
I assume this is the sysman/sysman account but system/manager
and sys/change_on_install did not work either.
Someone posted something about a credentials manager.
Please help!
Thanks
Mitch

When you create the OMS repository the OMS login password is
initially set to sysman/oem_temp Try entering that and check
if it works

Similar Messages

  • Stop SAP from mmc console invalid credentials

    Hi everybody
    I'm trying to stop the SAP System over the MMC console 5xx13
    After right clicking the instance and selecting stop SAP system I type in the user credentials <sid>adm and password.
    the message invalid credentials appears.
    Has somebody ever tried this way?
    thanks for your help
    Murat

    > After right clicking the instance and selecting stop SAP system I type in the user credentials <sid>adm and password.
    > the message invalid credentials appears.
    Is this a local system (on Windows) or is this a remote system on Unix?
    Markus

  • Console error : Start failed: 2, Invalid Credentials

    HI,
    I have ECC 6.0 on my own computer.everyt
    hing has worked fine. But after few days when iam trying to start the SAP Console, it is showing the following error :
    Start failed: 2, Invalid Credentials
    i haven't made any changes like computer name or password,
    Please can you give some solutions to fix it.
    Regards,
    Balu.

    Hi ,
       Logically in SAP if you are able to login to OS level with SIDadm account then it must be able to start SAP system cia MMC form same credentials.
        You amy refer to below link which can be useful to troubleshoot your issue::
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/58/7d8f671e0fa54db744991e200f9111/content.htm
    Thanks..
    Mohit

  • Could not connect to Orchestrator web service - Unauthorized: Access is denied due to invalid credentials

    I am trying to set up the Orchestrator Connector for Service Manager, when running the test, I get the error
     <h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>
      <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
    The account I am using is the system account for Service Manager. I have added that account to the local admin group on the Orchestrator server as well as the Orchestrator admin group. But to no avail.
    Now when I am logged on to the Orchestrator server locally with my account, I can access the Orchestration Console with no problem, however when I try to connect to it remotely using my account, it will not accept my credentials. I need to sort this out,
    can anyone help?
    Paul Arbogast

    I found the solution, using the IIS Manager I changed the Windows authentication providers by moving NTLM above negotiate.
    Paul Arbogast

  • SSGD 4.40.907 and SLES10-SP1 64bit - Invalid credentials while logging in

    Hello everybody.
    As a test, I installed SSGD 4.40.907 on a SLES10-SP1 64bit virtual operating system (it's operating using the XEN hypervisor, paravirtualized mode).
    The installation went well (I had to copy old libraries - namely, libexpat.so.0.5.0 and libgdbm.so.2.0.0 - from a previous version of SLES + ldconfig) and I was able to get to the login prompt but as soon as I entered the "root" password I got "Invalid credentials".
    I tried again (in my test environment, the root password is VERY simple) but no dice; I checked the root password by logging into the system using SSH and it worked fine.
    I tried with different local accounts (eg, ttaserv and ttasys) but got the same message.
    Please notice that, under the very same piece of HW but using a SLES10-SP1 *32bit* under XEN, everything works as expected so it seems a 64bit OS related issue.
    Thanks,
    Rob

    Casper,
    Can you please try the following.
    On the protected server please try to remove the account and remove the DPM agent. Reboot, after that please manually reinstall the DPM agent on the protected server -
    http://technet.microsoft.com/en-us/library/hh757789.aspx.  Run the setdpmserver command and after completing successfully check the account to ensure the following.
    1) It is set for the password not to expire and user cannot change password
    2) Is included in the following groups, DCOM Distributed Users, DPMRADCOMTrustedMachines, and DPMRADmTrustedMachines.
    If that all checks out, please goto the DPM console and tried to attach from the DPM console first and then try the powershell command if the console errors out. 
    Here are some other things to check as well:
    Step 1) Ensure NTLM is working - UNC from DPM to PS and back
    Step 2) Ensure DCOM is enabled on protected server - Type DCOMCNFG > Computers > My Computer, right click and select properties, go to Default Properties and ensure "Enable Distributed COM on this computer" is checked
    Step 3) Ensure all firewalls have needed ports open -
    http://technet.microsoft.com/en-us/library/hh758204.aspx
    Step 4) Ensure user account is set to never expire and user cannot change password
    Step 5) Try attach from DPM console first then DPM powershell
    If that still does not work please ensure you are on the latest DPM patch and try again. 
    For DPM2012 SP1 that is DPM3.6(Note: you will need to have RU3 installed prior)
    4.1.3419.0 - DPM RU3.6 - Hotfix for System Center 2012 SP1 Data Protection Manager (KB2886362)
    http://www.microsoft.com/en-us/download/details.aspx?id=40318
    4.1.3417.0 - DPM RU3 - Description of Update Rollup 3 for System Center 2012 Service Pack 1
    http://support.microsoft.com/kb/2836751
    Regards, A.Nadar, This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.

  • Netweaver CE 7.1 gives Invalid credentials

    Hi,
    I am new to SAP NetWeaver Composition Environment 7.1. I tried to install the CE 7.1. when I try to start, it asks me for OS user id and password. The OS user by default is my laptop user id which has admin rights and I don't have a password set. Every time it throws error "invalid credentials" and I am stuck up having no clue.
    Appreciate your help.

    Hi Naveen,
    The systemrequirements.htm page in the download package says:
    "Note: If you use a Windows XP account without a password , SAP Management Console can not start/stop your instance via Web Service - use system services instead"
    I believe the "Start Application Server" shortcut in the Start Menu should also work in this case.
    HTH!
    -- Vladimir

  • Management Console "Provide Credentials" can't authenticate.

    At this screen during install, it asks for
    User name:
    Password:
    Context:
    I put CN=admin,o=(his context), and this then fades the Context box, and then I enter I know to be the password in, but get "The authentication attempt failed: Confidentiality is required for this operation". I also get this if I leave the default context it opened up the screen in. ( [root] Treename )
    If I put in just "admin" for the name, the known password, and the correct context, I get "The user name admin is invalid"
    What am I doing wrong?

    "Confidentiality is required" means that eDirectory is configured to require a SSL-secured connection over the LDAP port.
    You can change that setting in the LDAP Group/Server object in eDir. Also, you can choose ZESM to establish an SSL-secured connection to eDir over the SLDAP (Secure LDAP) port and avoid changing the eDir side.
    Check to see if you can connect using an LDAP browser to eDir using 389 (LDAP) and 636 (SLDAP) ports.
    >>>
    From: asld<[email protected]>
    To:novell.support.zenworks.endpoint-security-management
    Date: 6/3/2009 7:36 PM
    Subject: Management Console "Provide Credentials" can't authenticate.
    At this screen during install, it asks for
    User name:
    Password:
    Context:
    I put CN=admin,o=(his context), and this then fades the Context box,and then I enter I know to be the password in, but get "The
    authentication attempt failed: Confidentiality is required for this
    operation". I also get this if I leave the default context it opened
    up the screen in. ( [root] Treename )
    If I put in just "admin" for the name, the known password, and the
    correct context, I get "The user name admin is invalid"
    What am I doing wrong?
    asld
    asld's Profile: http://forums.novell.com/member.php?userid=9224
    View this thread: http://forums.novell.com/showthread.php?t=374989

  • LDAP configuration - invalid credentials : error 49

    Hi
    Hope someone can shed some light on my problem. I'm trying to setup LDAP on a 2504 but keep on getting invalid credentials. What this tells me is that when I try to connect the WLC sees the AD but somewhere there is a credential issue. 
    *webauthRedirect: Nov 20 13:06:25.858: #LOG-3-Q_IND: ldap_db.c:1063 Could not connect to LDAP server 1, reason: 49 (Invalid credentials).[...It occurred 2 times.!]
    *LDAP DB Task 1: Nov 20 13:06:18.732: #AAA-3-LDAP_CONNECT_SERVER_FAILED: ldap_db.c:1063 Could not connect to LDAP server 1, reason: 49 (Invalid credentials).
    *Dot1x_NW_MsgTask_2: Nov 20 13:04:21.135: #LOG-3-Q_IND: ldap_db.c:1063 Could not connect to LDAP server 1, reason: 49 (Invalid credentials).[...It occurred 2 times.!]
    Server Index..................................... 1
    Address.......................................... *.*.*.*
    Port............................................. 389
    Server State..................................... Enabled
    User DN.......................................... DC=corp,DC=samint,DC=co,DC=za
    User Attribute................................... sAMAccountName
    User Type........................................ Person
    Retransmit Timeout............................... 2 seconds
    Secure (via TLS)................................. Enabled
    Bind Method ..................................... Authenticated
    Bind Username.................................... CN=PragasenK,OU=Admins,OU=IT,DC=corp,DC=samint,DC=co,DC=za
    (Cisco Controller) >show ldap statistics
    Server Index..................................... 1
    Server statistics:
      Initialized OK................................. 0
      Initialization failed.......................... 15
      Initialization retries......................... 15
      Closed OK...................................... 20
    Request statistics:
      Received....................................... 5
      Sent........................................... 0
      OK............................................. 0
      Success........................................ 0
      Authentication failed.......................... 0
      Server not found............................... 0
      No received attributes......................... 0
      No passed username............................. 0
      Not connected to server........................ 0
      Internal error................................. 5
      Retries........................................ 0
    (Cisco Controller) >show local-auth config
    User credentials database search order:
        Primary ..................................... LDAP
        Secondary ................................... Local DB
    Timer:
        Active timeout .............................. 300
    Configured EAP profiles:
    Name ........................................ SA_Mint-WiFi
    Certificate issuer ........................ cisco
    Peer verification options:
    Check against CA certificates ........... Enabled
    Verify certificate CN identity .......... Disabled
    Check certificate date validity ......... Enabled
    EAP-FAST configuration:
    Local certificate required .............. No
    Client certificate required ............. No
    Enabled methods ........................... tls fast 
    Configured on WLANs ....................... 1 
    EAP Method configuration:
    EAP-FAST:
          Server key ................................ <hidden>
          TTL for the PAC ........................... 10
          Anonymous provision allowed ............... Yes
          Authority ID .............................. 436973636f0000000000000000000000
          Authority Information ..................... Cisco A-ID

    Error Message    %AAA-3-LDAP_CONNECT_SERVER_FAILED: LDAP DB Task : Connect to
    server failed (retry [dec]), rc= [dec] ([chars])
    Explanation    LDAP DB Task connect to server failed.
    Recommended Action    Copy the message exactly as it appears on the console or in the system log. Research and attempt to resolve the issue using the tools and utilities provided at http://www.cisco.com/tac. With some messages, these tools and utilities will supply clarifying information. Search for resolved software issues using the Bug Toolkit at http://tools.cisco.com/Support/BugToolKit/. If you still require assistance, open a case with the Technical Assistance Center via the Internet at http://tools.cisco.com/ServiceRequestTool/create/launch.do, or contact your Cisco technical support representative and provide the representative with the information you have gathered.

  • Ldapmodify returns Invalid Credentials

    I have a peculiar problem with my SUN Directory Server 5.2 P4 deployment. I am able to login into the Admin console with the directory manager credentials. However when I using the same credentials for a ldapmodify operation it fails giving me a Invalid Credentials error.
    $ ldapsearch -h <LDAPHost> -p <LDAPPort> -D "cn=Directory Manager" -w <password> -b uid=some_uid,ou=people,dc=example,dc=com objectclass=*
    ldap_simple_bind: Invalid credentials
    The access logs give a err=50 which means a Invalid password, but am using the right password.
    I have mulitple instances of Directory Server running on this machine. Each Directory has a virtual IP assigned to it so that external clients can connect.
    Thanks in Advance.

    By any chance, would the directory manager credentials contain any special, non-ascii, non-7bit character ?
    The character set used by Java is unicode and transcoded in UTF-8
    The ldapsearch tool uses the charset and locale specified by your environment. Which is probably not UTF-8...
    Aa passwords are supposed to be treated as binary blobs by the directory server, and the clients are providing different representations of it, one works, the other ones don't.
    Regards,
    Ludovic.

  • Ridc / invalid credentials

    im running a sample ridc client:
              manager = new IdcClientManager();
              idcClient = manager.createClient("idc://localhost:4444");
              idcClient.getConfig().setSocketTimeout(30000); // 30 seconds
              idcClient.getConfig().setConnectionSize(20); // 20 connections
              userPasswordContext = new IdcContext("weblogic","weblogic1");
              DataBinder binder = idcClient.createBinder();
              binder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
              binder.putLocal ("QueryText", "test");
              binder.putLocal ("ResultCount", "20");
                   response = idcClient.sendRequest(new IdcContext("weblogic"), binder);
    //               response = idcClient.sendRequest(userPasswordContext, binder);
              serverBinder = response.getResponseAsBinder();
              resultSet = serverBinder.getResultSet("SearchResults");
    Im getting this following error:
    oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve search results. Connection authorization failed. Invalid credentials.
         at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:135)
         at oracle.stellent.ridc.protocol.ServiceResponse.getResponseAsBinder(ServiceResponse.java:107)
         at com.myapp.sampleapp.TestClient.main(TestClient.java:56)
    my "weblogic" password for content server is correct, ive tried with other content server user ids as well. same error.
    whatz wrong????
    im using webcenter -content 11.1.1.5

    thx for the update Srinath.
    Im unable to check the JPS status. where do i do that? on the wls admin console? or em console?
    also, this is what im getting in the server log, post server restarts and executing the code:
    <Nov 29, 2011 11:34:20 AM GMT+05:30> <Error> <oracle.ucm.idccs> <UCM-CS-060003> <Event generated by user 'weblogic' at host 'CIS'.>
    <Nov 29, 2011 11:34:20 AM GMT+05:30> <Error> <oracle.ucm.idccs> <UCM-CS-000001> <general exception intradoc.common.ServiceException: !csUnableToRetrieveSearchResults
    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
    at intradoc.server.Service.buildServiceException(Service.java:2260)
    at intradoc.server.Service.createServiceExceptionEx(Service.java:2254)
    at intradoc.server.Service.createServiceException(Service.java:2249)
    at intradoc.server.ServiceSecurityImplementor.validateRemoteClientConnectionPrivilege(ServiceSecurityImplementor.java:712)
    at intradoc.server.ServiceSecurityImplementor.globalSecurityCheck(ServiceSecurityImplementor.java:232)
    at intradoc.upload.UploadSecurityImplementor.globalSecurityCheck(UploadSecurityImplementor.java:57)
    at intradoc.server.Service.globalSecurityCheck(Service.java:2671)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:678)
    at intradoc.server.Service.doRequest(Service.java:1890)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: intradoc.common.ServiceException: !csConnectionAuthFailed
    at intradoc.provider.ProxyConnectionUtils.getRemotePassword(ProxyConnectionUtils.java:262)
    at intradoc.provider.ProxyConnectionUtils.incomingProxyAuth(ProxyConnectionUtils.java:241)
    at intradoc.provider.SocketIncomingConnection.getAndCheckConnectionProperties(SocketIncomingConnection.java:255)
    at intradoc.provider.SocketIncomingConnection.checkRequestAllowed(SocketIncomingConnection.java:163)
    at intradoc.server.ServiceSecurityImplementor.validateRemoteClientConnectionPrivilege(ServiceSecurityImplementor.java:708)
    at intradoc.server.ServiceSecurityImplementor.globalSecurityCheck(ServiceSecurityImplementor.java:232)
    at intradoc.upload.UploadSecurityImplementor.globalSecurityCheck(UploadSecurityImplementor.java:57)
    at intradoc.server.Service.globalSecurityCheck(Service.java:2671)
    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:678)
    at intradoc.server.Service.doRequest(Service.java:1890)
    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
    at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    any further pointers? thx in advance.
    Edited by: pradeep.mahajan on Nov 28, 2011 10:08 PM

  • Invalid Credentials: The Network location cannot be reached

    I am working with MDT 2010, and I am getting the error, "Invalid Credentials:  The Network location cannot be reached." When I run the LiteTouch 64 bit, I don't think the network is working.  It's like there is not driver for the network card in
    the LiteTouch 64 bit to make the network connection.  When I hit F8 key, it brings a DOS box up for testing, and I found out these things.
     - I can ping the loop back address 127.0.0.1.
     - Cannot use the net use command to connect to the server share \\server01\DeploymentSahre$.
     - I can not ping by name or IP address the server that is holding my Deployment Share.
    This is the first time I am working with this technology, and I was following a guide off the Technet library.  It almost like I am missing the driver for the network card.  I have Windows Deployment installed on server01, the server will answer,
    and I am able to put in my user name and password,  it accepts and starts loading. 
    I did figure out how to inject the network drivers into Windows Deployment for the Motherboard I was using, do I have to do the same thing here again? MDT is using the Windows Deployment Images on the server01; MDT is setup on server01.   I would have
    thought that since the driver was already injected into the Image MDT would use that as well.  So, do I need to put a driver into the LiteTouch 64bit image and if I do how do I do that?
    thanks very much for your help,
    Rick Arnold
    ArnoldConsult
    Rick Arnold Arnoldconsult, MCP

    If you haven't updated the deployment share after adding the proper drivers to OOBD then your LiteTouch boot images will not have them included.  Just right click the deployment share and click on Update Deployment Share, it will take a while but it
    will rebuild the boot images with the drivers you've included in OOBD.  Then it's just a matter of either recreating the flash drives or loading the updated image into WDS.  
    Another thought:
    We had an issue with some HP's that had Main Boards replaced.  the BIOS time was WAY off and the UUID wasn't setting itself because the network was denying it access to our servers (because of the horribly wrong time).  Once we corrected the time
    in the BIOS everything ran fine.  The error we got while trying to do the deployment was the same as what you describe and we could still ping various machines on the network too.  

  • MDT user credentials error: Invalid credentials: The network path was not found

    I have DELL E5400 and DELL Optiplex 760 pc. In the before, DELL630 is working with my MDT service, but now, DELL E5400 and DELL Optiplex 760 not working with my MDT.
    When PE loaded and go to User Credentials interface, I input the user name and password(I confirm the user name and password is correct), it will display error message "Invalid credentials: The network path was not found". I checked that the network driver is correct.
    After search some information in the website, someone said that maybe the network initializing timeout issue, so I according to Tim Quan guide to add following to startnet.cmd
    wpeutil InitializeNetwork
    ping localhost
    wpeinit
    Then I update the deploy location in MDT and then re-loaded it again, but unlucky, I still meet the same issue. I tried to use ipconfig /all command to check the network status, I couldn't find out local network connection. I click "Cancel" to check the error message, it will display"A connection to the deployment share could not be made. The deployment will not proceed. DHCP lease was not obtained for any networking device!Possible cause: check physical connection".
    It seems that PE not loaded network driver successfully, but it is very strange that the network driver is correct.
    Have someone can help me?
    Thanks a lot

    Hi,
    Are you deploying Windows Vista 32bit or 64bit? Please obtain he latest network card drivers from the following sites:
    Dell Latitude E5400:
    http://support.dell.com/support/downloads/driverslist.aspx?c=us&cs=19&l=en&s=dhs&ServiceTag=&SystemID=LAT_E5400&os=WLH&osl=en&catid=&impid=
    Dell OptiPlex 760:
    http://support.dell.com/support/downloads/driverslist.aspx?c=us&cs=19&l=en&s=dhs&ServiceTag=&SystemID=PLX_760&os=WLH&osl=en&catid=&impid=
    Please make sure you add the correct network driver to deployment point.
    Additional Information:
    http://www.techtalkz.com/windows-deployment/501217-deployment-share-connection-issue-since-mdt-2008-waik-1-1-a.html
    http://www.deploymentforum.com/Community/Forums/tabid/124/forumid/16/postid/737/view/topic/Default.aspx
    Hope it helps.
    Tim Quan - MSFT

  • Scan to Email not working - Invalid Credentials error (using gmail and 2-factor authentication)

    I configured the HP OfficeJet 8600 printer for scan to email using the Embedded Web Server interface. In the Web interface, I added/entered an email address for my gmail account, and set the correct SMTP server details, and entered 465 for the port number. I checked the "Always use secure connection" box, as well as the "SMTP requires authentication for outgoing email messages" box. I entered correct SMTP user ID and password. Yet when I did a test, I got an error "Invalid credentials" After a lot of frustration, and trying all sorts of things, I eventually got the idea to try another email account. This time I tried a different email account, a netzero email account, configured the smtp server details for it etc. And this time when I tested the netzero email address it worked. I tried the scan to email on the printer, and it worked for the Netzero email account. it just didnt work for the gmail account. I had a while back turned on 2-factor authentication. I went to gmail settings and requested an "App password" for my HP printer. Google/gmail displayed a 16 character password, which I then entered into the password box in the HP OfficeJet printer Embedded Web Server interface (instead of my usual password), for the gmail account. And this time when I tested the email account - it worked! Problem solved! .. I share this just in case anyone else is having the same problem I had, and is going through the same frustrating experience I endured!  

    Thank you. This helped TREMENDOUSLY! 

  • Suppress HTTP Authentication dialog for invalid credentials

    If I want a custom login screen with domain, username and password fields for my AIR application, that uses Basic Authentication on the server, I can use
    <code>
    URLRequestDefaults.setLoginCredentialsForHost(myDomain, myUsername, myPassword);
    </code>
    and it works fine. But if I enter invalid credentials, the "built-in" authentication dialog pops up. How can I suppress that? I read somewhere that I could use URLRequestDefaults.authenticate = false; but that just seems to kill the authentication process altogether.
    Any ideas?

    No, that's not the case. I am talking about the user authentication dialog that is shown whenever you access a member restricted web site.
    Through Java, we can pass the user name and password values if we know, and the dialog will not be shown. But, I face the problem in NS 4.7x.
    -JP

  • Invalid Credentials

    Hi LDAP Gurus,
    I'm a novice in LDAP and JNDI.i installed OPENLDAP on my linux system and its working fine but when i try the example of JNDI, it is giving me the error of INVALID_CREDENTIALS. The Error is :
    javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
    The JNDI code is:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.NameAlreadyBoundException;
    import javax.naming.directory.*;
    import java.util.*;
    public class MakeRoot {
    final static String ldapServerName = "10.10.10.38:389" ;
    final static String rootdn = "cn=Manager, o=jndiTest";
    final static String rootpass = "secret";
    final static String rootContext = "o=jndiTest";
    public static void main( String[] args ) {
    Properties env = new Properties();
    env.put( Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory" );
    env.put( Context.PROVIDER_URL, "ldap://" + ldapServerName + "/" );
                   //env.put(Context.SECURITY_AUTHENTICATION, "simple");
         env.put( Context.SECURITY_PRINCIPAL, rootdn );
              System.out.println("Harry");
    env.put( Context.SECURITY_CREDENTIALS, rootpass );
    try {
    // obtain initial directory context using the environment
    DirContext ctx = new InitialDirContext( env );
    // now, create the root context, which is just a subcontext
    // of this initial directory context.
    ctx.createSubcontext( rootContext );
    } catch ( NameAlreadyBoundException nabe ) {
    System.err.println( rootContext + " has already been bound!" );
    } catch ( Exception e ) {
    System.err.println( e );
    I'm badly stuck. can anyone help me out of this... Thanks in advance.
    REgards
    Harjinder

    I am also brand new to Java and JNDI, but here is a sample program that I wrote yesterday that seems to be working.
    import java.util.*;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class bind_jndi {
    public static void main(String[] args) {
    int numberOfArgs = args.length;
    if (numberOfArgs!=3) {
    System.out.println("Invalid number of parameters\n");
    System.out.println("Usage is : bind_jndi ldap_url bindDN password\n");
    System.out.println("Where:");
    System.out.println(" ldap_url : The LDAP Server to communicate with\n");
    System.out.println(" bindDN : The DN to perform the bind with\n");
    System.out.println(" password : The password for the above DN\n");
    System.out.println("Ex: bind_jndi ldap://localhost:389 cn=userid pswd");
    return;
    System.out.println("Starting...");
    // Set up the environment for creating the initial context
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, args[0]);
    // Specify the LDAP protocol version
    env.put("java.naming.ldap.version", "3");
    // Valid values are 'simple' and 'none'
    // 'simple' -> Use clear-text password
    // 'none' -> No auth, anonymous
    // If the client does not specify any authentication environment
    // properties, then the default authentication mechanism is "none".
    // The client will then be treated as an anonymous client.
    // If the client specifies authentication information without explicitly
    // specifying the Context.SECURITY_AUTHENTICATION property, then the
    // default authentication mechanism is "simple".
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    // Authenticate as Mitch and password "mysecret"
    env.put(Context.SECURITY_PRINCIPAL, args[1]);
    env.put(Context.SECURITY_CREDENTIALS, args[2]);
    try {
    // Initiate a bind, if it fails, the 'catch' will print an error
    DirContext ctx = new InitialDirContext(env);
    System.out.println("Authentication passed");
    // Close the connection
    ctx.close();
    } catch (NamingException e) {
    System.err.println("Authentication failed");
    String err = e.getExplanation();
    System.err.println("Extended message " + err);
    Hope this helps.

Maybe you are looking for

  • My four-month-old macbook pro's battery when fully charged is now down to 2 hours life from 7...in the last week. Why?

    I bought my macbook pro 13" about four months ago and have been in love with it ever since - especially as compared to my old PC laptop, the battery stays cool and lasts forever when I am working. Best charge was 7 hours. However, in the last week I

  • Dual screen Mac Mini

    I have configured by new 2011 with 2 x 24" DVI Screens. One connected via HDMI and the other connect via the display port. It works well, and I use applications on both screens all the time. What I have noticed is that after waking from sleep all ope

  • Case Statement in Crystal - Still need help

    I posted earlier today and I was told to use the formula below.   This formula works, however, it stops imputing information after the first condition is met.  I want the report to list ANY of the part numbers that meet the conditions below.  That is

  • IPhoto card printing order

    Just had 10 cards printed from iPhoto image (with text added) to test quality.  Really pleased with the result and would like to order a lot more, but without the whole process of redesign.  Is there a simple way of re-ordering an earlier order?

  • Dodge and burn: wysiwyg...????

    Hi, I wonder whats going on here. Or maybe I miss something with the presets. After using dodge and burn ( and more within this plugin like saturate, sharpen or contrast) I save the changes and then find a tiff file in the stack connected to the mast