LDAP connection problem

I'm trying to connect to a server using Ldap in Java, but the connection dosent work. I did try to connect to my computer just for a test, my machine is on a network that use the server. Is it possible to connect to it using Ldap like this :
env.put(Context,INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(context.PROVIDER_URL, "ldap://" + NameOfMachine + "/");
dirContext ctx = new InitialContext(env);
I did put the classpath of the zip files (Jndi and Ldap). Is there something else i should do ?

You might have to specify the port number also
something like this
env.put(context.PROVIDER_URL, "ldap://" + NameOfMachine:389+ "/");

Similar Messages

  • Java JNDI LDAP connectivity problem.  NoSuchAttributeException

    Hello,
    I am trying to add a user to Active Directory server through LDAP. Following is the code I am using:
    ======================================================================
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://192.123.321.123:389");
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, "user1");
    env.put(Context.SECURITY_CREDENTIALS, "user123");
    try {
    System.out.println("68");
    Context ctx = new InitialContext(env);
    System.out.println("71");
    BasicAttribute oc = new BasicAttribute("objectclass", "top");
    oc.add("person");
    oc.add("organizationalperson");
    oc.add("User");
    BasicAttribute ouSet = new BasicAttribute("ou");
    ouSet.add("test");
    BasicAttributes attrs = new BasicAttributes(true);
    attrs.put(oc);
    attrs.put(ouSet);
    attrs.put("cn", "ndubey001");
    attrs.put("sn", "ndubey001");
    attrs.put("sAMAccountName", "ndubey001");
    attrs.put("givenName", "ndubey001");
    attrs.put("name", "ndubey001");
    ctx.bind("uid=ndubey001,ou=test,o=myserver.com", attrs);
    System.out.println("74");
    ctx.close();
    } catch (NamingException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    ======================================================================
    I have tried with so many different combinations. Most of the times the parameters I am passing looks okay but I keep getting the same exception as follows:
    ======================================================================
    68
    71
    javax.naming.directory.NoSuchAttributeException: [LDAP: error code 16 - 00000057: LdapErr: DSID-0C090B38, comment: Error in attribute conversion operation, data 0, vece
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
         at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
         at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
         at com.sun.jndi.ldap.LdapCtx.c_bind(Unknown Source)
         at com.sun.jndi.ldap.LdapCtx.c_bind(Unknown Source)
         at com.sun.jndi.toolkit.ctx.ComponentContext.p_bind(Unknown Source)
         at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(Unknown Source)
         at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(Unknown Source)
         at javax.naming.InitialContext.bind(Unknown Source)
         at LDAPTest.main(LDAPTest.java:99)Coming out
    ======================================================================
    Can anyone tell what is the exact problem ?
    Cheers,
    Nitin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Too many errors to even consider correcting your code (objectClasses, UID attribute, ctx.create)....
    Refer to the following for a description & sample code:
    JNDI, Active Directory (Creating new users & demystifying userAccountControl
    http://forum.java.sun.com/thread.jspa?threadID=582103&tstart=15

  • LDAP Connectivity problem

    Hi ,
    I installed iplanet 6 with sp06 and DS 5.2 both have been installed suceesfull . But when i try to connect the Webserver settings (Global Settings) for the connectivity with the ldap directory server[b] it asks for
    Bind DN and Bind Password . I tried giving dc=...... and password as used in my ldap servers . But it shows kinldy check ur binddn and password ! unabel to connect.can anyone help me out with this .

    Too many errors to even consider correcting your code (objectClasses, UID attribute, ctx.create)....
    Refer to the following for a description & sample code:
    JNDI, Active Directory (Creating new users & demystifying userAccountControl
    http://forum.java.sun.com/thread.jspa?threadID=582103&tstart=15

  • LDAP connections problem

    Hi,
    I have configured my application to authenticate the user log in against my current LDAP system.
    However, i need to read into the app certain data held in the records of the LDAP system ( email address, ext. that sort of thing ).
    How would i go about doing this to display the details of the user currently selected or logged in. Also, is there a way of showin a list in my application of all the user names held in LDAP?
    Many Thanks
    Robert

    Hi Jes,
    The system i am building has to pull data from the LDAP for display on screen. Also, we not just authenticating the u/name and password - we also need to check if they have permission to use the system.
    If you know how to read parts of the logged in users' ldap file into the html application i would be grateful. Idealy i would add all the users in the LDAP with the service available to them displayed in a list of values.
    I dont know where to write the data in HTMLDB to do this - nor do i know the code itself.
    Any help you can give me on this would be very much appreciated.
    Thanks for your time
    Rob

  • Connection problem with LDAP

    Hi,
    Is it possble to connect 10g version of database using LADAP from forms 6i ?
    Thanks
    Bcj

    Hi Wilfred,
    I would like to describe the tests and results which i have tried regarding the connection problem between forms 6i and Oracle 10.2 through OID(LDAP),
    Test 1.
    Installed forms 6i + patch 17 and Oracle 10.1.0.2 separately, and assigned the forms home to oracle 10 .1.0.2
    Received ,the message as, ORA -12154: TNS: could not resolve service name
    Test 2.
    Installed forms 6i + patch 17 and tried to install Oracle 10.1.0.2 in to the forms home then received an error message as "Oracle 10g database cannot be installed into an existing 7.x or 8.0.x ORACLE_HOME "
    Test 3.
    Installed Oracle 10.1.0.2 and installed forms 6i + patch 17 in to the Oracle 10.1.0.2 home, here I was able to connect through tnsnames.ora, but not through LDAP.
    When tried through LDAP , received the error message as , ORA -12154: TNS: could not resolve service name
    Here, forms created NET80 folder and it was trying to connect the database from this folder.
    Test 4
    Forms installed in test 1 and test 2 were able to connect through the oracle home which created at the time of test 3.
    Test 5
    Also tried to install the Oracle 10.1.0.2 into the oracle home which created at the time of third test, here again I received the error message as same as the second test.
    So, i agreed that it cannot, when this form version is tightly integrated to its oracle net libraries.
    After test 3, i have checked the oracle home in the registry all the variables pointing to the 10g database, here i was thinking is it possible to configure the oracle net libraries or any other to get connected.
    Thanks for your help
    Bcj

  • Problem when specifying LDAP connection

    Hello,
    i have a problem when creating a new LDAP connection.
    After selecting LDAP server from drop-down list (value "192.168.121.3:389" without quotes), the error message appears.
    Status : Failure -String index out of range: -1
    This LDAP server is probably taken from local configuration, which works well with SQLPLUS.
    Screenshot can be seen here :
    http://img254.imageshack.us/my.php?image=ldaptestso1.png
    SQL Developer version is fresh download of Oracle SQL Developer 1.5 (1.5.0.53.38) [Released 23 April 2008], version for Windows with the JDK1.5.0_06 in zip archive.

    Even I have the same question... where is the problem? Looks like you have missed out the real part.
    Annie.

  • NullPointerException at com.sun.jndi.ldap.Connection.run(Connection.java:52

    We are using the Sun jndi 1.2.1 files from a Java client to
    access the IBM SecureWay Directory 3.2 server. Our test case is
    retrieving entries using the ctx.getAttributes (String, String[])
    method. Occasionally we are receiving the following error.
    java.lang.NullPointerException
    at com.sun.jndi.ldap.Connection.run(Connection.java:525)
    at java.lang.Thread.run(Thread.java:481)
    The java.lang.NullPointerException is coming from the Sun JNDI file.
    Our program is not catching this exception.
    Has anyone seen this problem before and have any ideas on how this can be resolved?

    Download and use LDAP 1.2.3 or JDK 1.3.1.
    The problem should go away.

  • OIM Ldap Sync Problems

    I am having a problem with LDAP integration. I have been working through the oracle manuals and the guide posted at http://onlineappsdba.com/index.php/2010/12/29/part-viii-optional-configure-ldap-sync-with-oim-11g-oim-11g-integration-with-ovdoid/.
    I have competed all of the steps but when I try to create a new user I get the following Error:
    An error occurred while performing create user operation. Unable to get LDAP connection, and the root cause is - Failed to get connection due to initialization error with the pool: Failed to intialize and start UCP Connection pool
    I have created the full jar file for the client. Can anyone offer up any suggestions here?

    The other are related to something about a global connection pool, note the traces here are trimmed due to forum post limits:
    <Jun 6, 2011 1:48:44 PM EDT> <Notice> <Stdout> <BEA-000000> <<Jun 6, 2011 1:48:44 PM EDT> <Error> <XELLERATE.SERVER> <BEA-000000> <PooledResourceConnectionProvider/createConnection: Failed to create Resource Connection to target
    com.oracle.oim.gcp.exceptions.ResourceConnectionCreateException: java.lang.NullPointerException
         at oracle.iam.ldapsync.impl.repository.LDAPConnection.createConnection(LDAPConnection.java:118)
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:84)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.access$600(UniversalConnectionPoolImpl.java:1378)
         at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection(UniversalConnectionPoolImpl.java:445)
         at oracle.ucp.common.UniversalConnectionPoolImpl.addNewConnections(UniversalConnectionPoolImpl.java:945)
         at oracle.ucp.common.UniversalConnectionPoolBase.getInitialConnections(UniversalConnectionPoolBase.java:613)
         at oracle.ucp.common.UniversalConnectionPoolBase.start(UniversalConnectionPoolBase.java:728)
         at com.oracle.oim.gcp.ucp.UCPPool.initializePool(UCPPool.java:94)
         at com.oracle.oim.gcp.pool.PoolFactory.getPool(PoolFactory.java:91)
         at com.oracle.oim.gcp.pool.ConnectionService.getConnection(ConnectionService.java:46)
         at com.oracle.oim.gcp.pool.ConnectionService.getConnection(ConnectionService.java:176)
         at oracle.iam.ldapsync.impl.repository.ITResourceRepository.getConnection(ITResourceRepository.java:34)
    Caused By: java.lang.NullPointerException
         at oracle.iam.ldapsync.impl.repository.LDAPConnection.createConnection(LDAPConnection.java:87)
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:84)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.access$600(UniversalConnectionPoolImpl.java:1378)
         at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection(UniversalConnectionPoolImpl.java:445)
         at oracle.ucp.common.UniversalConnectionPoolImpl.addNewConnections(UniversalConnectionPoolImpl.java:945)
    >>
    <Jun 6, 2011 1:48:44 PM EDT> <Notice> <Stdout> <BEA-000000> <<Jun 6, 2011 1:48:44 PM EDT> <Error> <XELLERATE.SERVER> <BEA-000000> <Class/Method: UCPPool/initializePool encounter some problems:  Failed to create Resource Connection to target
    oracle.ucp.UniversalConnectionPoolException:  Failed to create Resource Connection to target
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:90)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.access$600(UniversalConnectionPoolImpl.java:1378)
         at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection(UniversalConnectionPoolImpl.java:445)
         at oracle.ucp.common.UniversalConnectionPoolImpl.addNewConnections(UniversalConnectionPoolImpl.java:945)
         at oracle.ucp.common.UniversalConnectionPoolBase.getInitialConnections(UniversalConnectionPoolBase.java:613)
         at oracle.ucp.common.UniversalConnectionPoolBase.start(UniversalConnectionPoolBase.java:728)
    Caused By: com.oracle.oim.gcp.exceptions.ResourceConnectionCreateException: java.lang.NullPointerException
         at oracle.iam.ldapsync.impl.repository.LDAPConnection.createConnection(LDAPConnection.java:118)
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:84)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.access$600(UniversalConnectionPoolImpl.java:1378)
         at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection(UniversalConnectionPoolImpl.java:445)
         at oracle.ucp.common.UniversalConnectionPoolImpl.addNewConnections(UniversalConnectionPoolImpl.java:945)
    Caused By: java.lang.NullPointerException
         at oracle.iam.ldapsync.impl.repository.LDAPConnection.createConnection(LDAPConnection.java:87)
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:84)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.access$600(UniversalConnectionPoolImpl.java:1378)
         at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection(UniversalConnectionPoolImpl.java:445)
         at oracle.ucp.common.UniversalConnectionPoolImpl.addNewConnections(UniversalConnectionPoolImpl.java:945)
         at oracle.ucp.common.UniversalConnectionPoolBase.getInitialConnections(UniversalConnectionPoolBase.java:613)
         at oracle.ucp.common.UniversalConnectionPoolBase.start(UniversalConnectionPoolBase.java:728)
    >>
    <Jun 6, 2011 1:48:44 PM EDT> <Notice> <Stdout> <BEA-000000> <<Jun 6, 2011 1:48:44 PM EDT> <Error> <XELLERATE.SERVER> <BEA-000000> <Class/Method: ConnectionService/getConnection encounter some problems:  Failed to intialize and start UCP Connection pool
    com.oracle.oim.gcp.exceptions.ConnectionPoolInitException:  Failed to intialize and start UCP Connection pool
         at com.oracle.oim.gcp.ucp.UCPPool.initializePool(UCPPool.java:100)
         at com.oracle.oim.gcp.pool.PoolFactory.getPool(PoolFactory.java:91)
         at com.oracle.oim.gcp.pool.ConnectionService.getConnection(ConnectionService.java:46)
         at com.oracle.oim.gcp.pool.ConnectionService.getConnection(ConnectionService.java:176)
         at oracle.iam.ldapsync.impl.repository.ITResourceRepository.getConnection(ITResourceRepository.java:34)
    Caused By: oracle.ucp.UniversalConnectionPoolException:  Failed to create Resource Connection to target
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:90)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.access$600(UniversalConnectionPoolImpl.java:1378)
         at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection(UniversalConnectionPoolImpl.java:445)
         at oracle.ucp.common.UniversalConnectionPoolImpl.addNewConnections(UniversalConnectionPoolImpl.java:945)
         at oracle.ucp.common.UniversalConnectionPoolBase.getInitialConnections(UniversalConnectionPoolBase.java:613)
         at oracle.ucp.common.UniversalConnectionPoolBase.start(UniversalConnectionPoolBase.java:728)
         at com.oracle.oim.gcp.ucp.UCPPool.initializePool(UCPPool.java:94)
         at com.oracle.oim.gcp.pool.PoolFactory.getPool(PoolFactory.java:91)
         at com.oracle.oim.gcp.pool.ConnectionService.getConnection(ConnectionService.java:46)
         at com.oracle.oim.gcp.pool.ConnectionService.getConnection(ConnectionService.java:176)
         at oracle.iam.ldapsync.impl.repository.ITResourceRepository.getConnection(ITResourceRepository.java:34)
         at oracle.iam.platform.entitymgr.provider.ldap.LDAPDataProvider.getChangelogType(LDAPDataProvider.java:2261)
    Caused By: com.oracle.oim.gcp.exceptions.ResourceConnectionCreateException: java.lang.NullPointerException
         at oracle.iam.ldapsync.impl.repository.LDAPConnection.createConnection(LDAPConnection.java:118)
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:84)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570)
    Caused By: java.lang.NullPointerException
         at oracle.iam.ldapsync.impl.repository.LDAPConnection.createConnection(LDAPConnection.java:87)
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:84)
         at oracle.ucp.common.UniversalConnectionPoolImpl$UniversalConnectionPoolInternal.createOnePooledConnectionInternal(UniversalConnectionPoolImpl.java:1570)
    >>
    <Jun 6, 2011 1:48:45 PM EDT> <Notice> <Stdout> <BEA-000000> <<Jun 6, 2011 1:48:44 PM EDT> <Error> <oracle.iam.platform.entitymgr.provider.ldap> <IAM-0042017> <An error occurred while finding the change log type - oracle.iam.platform.entitymgr.vo.ConnectivityException: com.oracle.oim.gcp.exceptions.ConnectionServiceException:  Failed to get connection due to initialization error with the pool: Failed to intialize and start UCP Connection pool  >>
    <Jun 6, 2011 1:48:45 PM EDT> <Notice> <Stdout> <BEA-000000> <<Jun 6, 2011 1:48:45 PM EDT> <Warning> <oracle.iam.platform.entitymgr.impl> <IAM-0040017> <Cannot initialize data provider - java.lang.NullPointerException
         at java.util.Hashtable.get(Hashtable.java:334)
         at oracle.iam.ldapsync.impl.repository.ITResourceRepository.returnConnection(ITResourceRepository.java:46)
         at oracle.iam.platform.entitymgr.provider.ldap.LDAPDataProvider.getChangelogType(LDAPDataProvider.java:2291)
         at oracle.iam.platform.entitymgr.provider.ldap.LDAPDataProvider.initialize(LDAPDataProvider.java:378)
         at oracle.iam.ldapsync.impl.provider.LDAPSyncDataprovider.initialize(LDAPSyncDataprovider.java:28)
         at oracle.iam.platform.entitymgr.impl.EntityManagerConfigImpl.getDataProvider(EntityManagerConfigImpl.java:325)
    >>
    <Jun 6, 2011 1:48:45 PM EDT> <Notice> <Stdout> <BEA-000000> <<Jun 6, 2011 1:48:45 PM EDT> <Error> <XELLERATE.SERVER> <BEA-000000> <PooledResourceConnectionProvider/createConnection: Failed to create Resource Connection to target
    com.oracle.oim.gcp.exceptions.ResourceConnectionCreateException: java.lang.NullPointerException
         at oracle.iam.ldapsync.impl.repository.LDAPConnection.createConnection(LDAPConnection.java:118)
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:84)
    Caused By: java.lang.NullPointerException
         at oracle.iam.ldapsync.impl.repository.LDAPConnection.createConnection(LDAPConnection.java:87)
         at com.oracle.oim.gcp.ucp.PooledResourceConnectionProvider.createConnection(PooledResourceConnectionProvider.java:84)     

  • Constant failed LDAP connections in log

    So a routine review of my log files (in pursuit of another problem) revealed yesterday that I'm getting this pair of messages about every 2 minutes:
    Dec 6 11:18:15 faulkner DirectoryService[763]: InitLDAPConnection or ldap_init failure: Logging Failed LDAP connection with incomplete data
    Dec 6 11:18:45 faulkner DirectoryService[763]: InitLDAPConnection or ldap_init failure: Logging Failed LDAP connection with incomplete da
    The machine -- a dual-G5 Xserve -- is configured for just standalone operation, so I'm not sure what the deal is here. I'm not seeing any login trouble, but it's disconcerting to have oddball log messages I don't understand.
    Any insight would be greatly appreciated.

    try this in /etc/pam.conf:
    passwd auth binding pam_passwd_auth.so.1 server_policy
    passwd auth required pam_ldap.so.1

  • EP - LDAP connection is lost

    Hello,
    We have the problem that occasionally the LDAP connection is lost.We get then the following error message:
    <b>LDAP: error code 48 - Anonymous Bind Disabled</b>
    We found out that this error message appears because the Password is lost and the Enterprise Portal tries then to announce with a anonymous User. But the anonymous User have no rights to announce the LDAP Server.
    Have anybody a idea why the Enterprise lost his LDAP-Password?
    In the EP-Web Administrator-Site we can reconnect with the LDAP-Password the Connection to the LDAP Server. After the new Settings we must restart the J2EE-Services.
    - Can anybody help me? - Thanks in advance.
    Greetings from Germany,
    Ralf Steffens
    Message was edited by: Ralf Steffens

    Hello,
    The following error message is located in the file: usermanagement_2005-07-04_08-43-04.log - Is the parameter too small adjusted?
    ->
    ume.ldap.connection_pool.max.size = '10'
    ->
    Jul 4, 2005 3:21:52 AM # System_Thread_51 Warning class=com.sap.security.core.persistence.datasource.imp.LDAPDataSourceConnectionPool[method=newConnection][cl=13315]an error occured when opening a connection, trying again
    javax.naming.AuthenticationException: LDAP: error code 48 - Anonymous Simple Bind Disabled.
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2731)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2677)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2478)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2395)
    at com.sun.jndi.ldap.LdapCtx.
    More information:
    By starting the server-instance we get the following error-message in the console-server-error-log:
    - it looks, as the service: com.sap.portal.license.runtime|license could´t loaded.
    Loading application: com.sap.portal.runtime.system.inqmy
    Loading application: com.sap.portal.runtime.system.notification
    Loading application: com.sap.portal.runtime.system.permission
    Loading application: com.sap.portal.runtime.system.repository
    Loading application: com.sap.portal.umeregistration
    Loading application: com.sap.portal.usermanagement
    Loading services:
    Loading service: com.sap.portal.license.runtime|license
    Jul 2, 2005 4:27:09 AM # System_Thread_32 Fatal class=com.sap.security.core.persistence.datasource.imp.LDAPConnectionManager[method=initConnectionPool()][cl=13324]connection pool for principal type UACC fails
    com.sap.security.core.persistence.datasource.imp.LDAPDataSourceConnectionPool$ServerNotAvailableException: no connection to the ldap server
    at com.sap.security.core.persistence.datasource.imp.LDAPDataSourceConnectionPool.newConnection(LDAPDataSourceConnectionPool.java:808)
    at com.sap.security.core.persistence.datasource.imp.LDAPDataSourceConnectionPool.(GroupFactory.java:76)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at com.sap.security.api.UMFactory.instantiateClass(UMFactory.java:1025) at com.sap.security.api.UMFactory.initializeClass(UMFactory.java:997)
    at com.sap.security.api.UMFactory.getGroupFactory(UMFactory.java:311)
    at com.sap.security.api.UMFactory.getSecStoreLock(UMFactory.java:1234)
    at com.sap.security.api.UMFactory.initializeSecStore620(UMFactory.java:938)
    at com.sap.security.api.UMFactory.initializeSecStore(UMFactory.java:893)
    at com.sap.security.api.UMFactory.initialize(UMFactory.java:694)
    at com.sapportals.portal.prt.service.usermanagement.UserManagementService.init(UserManagementService.java:270)
    at com.sapportals.portal.prt.core.broker.PortalServiceItem.__initServiceInstance(PortalServiceItem.java:678)
    at com.sapportals.portal.prt.core.broker.PortalServiceItem.getServiceInstance(PortalServiceItem.java:464)
    at com.sapportals.portal.prt.core.service.ServiceManager.get(ServiceManager.java:163)
    at com.sapportals.portal.prt.runtime.Portal$RuntimeResources.getService(Portal.java:132)
    at com.sapportals.portal.prt.service.license.LicenseService.init(LicenseService.java:94)
    at com.sapportals.portal.prt.core.broker.PortalServiceItem.__initServiceInstance(PortalServiceItem.java:678)
    at com.sapportals.portal.prt.core.broker.PortalServiceItem.createServiceInstance(PortalServiceItem.java:519)
    at com.sapportals.portal.prt.core.broker.PortalServiceItem.startServices(PortalServiceItem.java:875)
    at com.sapportals.portal.prt.core.broker.PortalAppBroker.startLoadOnStartupServices(PortalAppBroker.java:1485)
    at com.sapportals.portal.prt.core.broker.PortalAppBroker.start(PortalAppBroker.java:1441)
    at com.sapportals.portal.prt.core.broker.PortalAppBroker.startCoreApplications(PortalAppBroker.java:1375)
    at com.sapportals.portal.prt.runtime.Portal.init(Portal.java:345)
    Regards,
    Ralf

  • LDAP connection timeout exception - some times

    Hi Team,
    I'm using Ldap authentication for my web applications. Everything is working fine most of the times.
    But ones in every 15 days or 10 days, I'm getting the connection timeout. But if I restart the tomcat then everything working fine. I couldn't find any
    issues with my code. Can anyone please help me on this. below is my java code. I'm keeping all the ldap entries in tomcat's server.xml and getting them in my java code to avoid the hard
    code configurations in my java code.
    I'm closing the context and naming enumerations like below, but still getting javax.naming.CommunicationException: error.
    Can anyone please help me out on this.
    public boolean authenticateFromLdap(String username, String password)throws AuthenticationException,Exception {
        LdapContext ctx = null;
        Context newctx = new InitialContext();
        Context envCtx = (Context) newctx.lookup("java:comp/env");
        DirContext ctxDir = (DirContext)envCtx.lookup("ldap/myapp");
        NamingEnumeration<?> namingEnum = null;
        String userDN=null;
        boolean isauthenticated = false;
        try {
            Hashtable env = null;
            Control[] connCtls = null;
            env = ctxDir.getEnvironment();
            env.put(Context.REFERRAL, "follow");
            this.filter = (String)env.get("ldap.filter");
            this.base = (String)env.get("ldap.base");
            try {
                ctx = new InitialLdapContext(env, connCtls);
                ctx.setRequestControls(null);
            } catch (javax.naming.AuthenticationException ex) {
                throw new Exception("ldap.server.exception");
            } catch (Exception ex) {
                throw new Exception("ldap.server.exception");
            try {
                SearchControls searchControls = new SearchControls();
                searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE);
                searchControls.setTimeLimit(30000);
                String filter="("+this.filter+"="+username+")";
                ctx.setRequestControls(null);
                namingEnum = ctx.search(this.base, filter, searchControls);
                SearchResult result = (SearchResult) namingEnum.next();
                Attributes attrs = result.getAttributes();
                Attribute str1=attrs.get("userprincipalname");
                userDN=str1.get().toString();
                if(userDN==null){
                    userDN=username;
                ctx.addToEnvironment(Context.SECURITY_PRINCIPAL,userDN);
                ctx.addToEnvironment(Context.SECURITY_CREDENTIALS,password);
                ctx.reconnect(connCtls);
                isauthenticated = true;
            }catch (AuthenticationException ex) {
                throw new AuthenticationException();
            }catch (NamingException ex) {
                throw new Exception("ldap.server.exception");
            return isauthenticated;
        } finally {
            if (null != namingEnum) {
                try {
                    namingEnum.close();
                } catch (Exception e) {
                    throw new Exception("close.ldap.failure");
            if (null != ctx) {
                try {
                    ctx.close();
                } catch (Exception e) {
                    throw new Exception("close.ldap.failure");
    }Tomcat (v6.0.14) server.xml:
                    <Resource name="ldap/myapp"
                                                    auth="Container"
                                                    type="com.sun.jndi.ldap.LdapCtx"
                                                    factory="com.myapp.MyLdapFactory"
                                                    java.naming.factory.initial="com.sun.jndi.ldap.LdapCtxFactory"
                                                    com.sun.jndi.ldap.connect.pool="false"
                                                    java.naming.provider.url="ldap://ldap.com.test.net:389"
                                                    java.naming.security.authentication="simple"
                                                    java.naming.security.principal="MyAdmin"
                                                    java.naming.security.credentials="xxxxxxx"
                                                    ldap.base="DC=com,DC=test,DC=net"
                                                    ldap.filter="sAMAccountName"
                    />Below is the error log trace:
    2013-Mar-26 12:01:34,714 AppUserDetailsService - javax.naming.CommunicationException: ldap.com.test.net:389 [Root exception is java.net.ConnectException: Connection timed out: connect]Note: Once we restart the tomcat, everything is working as usual and after 2 weeks again same problem occuring.
    Ganesh
    Edited by: EJP on 27/03/2013 14:26: added {noformat}{noformat} tags. Please use them. Your code is unreadable without them.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    1. 'filter' and 'base' need to be local variables, not instance variables, otherwise the method isn't thread-safe.
    2. It isn't clear that you are closing the search results or contexts if you get an exception, in all that spaghetti, especially the part where you just catch and rethrow exceptions, which is pointless. You need to rewrite that lot like this:
    public boolean authenticateFromLdap(String username, String password) throws AuthenticationException, NamingException
         Context newctx = new InitialContext();
         try
              Context envCtx = (Context)newctx.lookup("java:comp/env");
              try
                   DirContext ctxDir = (DirContext)envCtx.lookup("ldap/myapp");
                   try
                        String userDN = null;
                        boolean isauthenticated = false;
                        Control[] connCtls = null;
                        Hashtable env = ctxDir.getEnvironment();
                        env.put(Context.REFERRAL, "follow");
                        String     filter = (String)env.get("ldap.filter");
                        String     base = (String)env.get("ldap.base");
                        LdapContext ctx = new InitialLdapContext(env, connCtls);
                        try
                             ctx.setRequestControls(null);
                             SearchControls searchControls = new SearchControls();
                             searchControls.setSearchScope(SearchControls.SUBTREE_SCOPE);
                             searchControls.setTimeLimit(30000);
                             filter = "(" + filter + "=" + username + ")";
                             ctx.setRequestControls(null);
                             NamingEnumeration<SearchResult> namingEnum = ctx.search(base, filter, searchControls);
                             try
                                  SearchResult result = namingEnum.next();
                                  Attributes attrs = result.getAttributes();
                                  Attribute str1 = attrs.get("userprincipalname");
                                  userDN = str1.get().toString();
                                  if (userDN == null)
                                       userDN = username;
                                  ctx.addToEnvironment(Context.SECURITY_PRINCIPAL, userDN);
                                  ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, password);
                                  ctx.reconnect(connCtls);
                                  isauthenticated = true;
                                  return isauthenticated;
                             finally
                                  namingEnum.close();
                        finally
                             ctx.close();
                   finally
                        ctxDir.close();
              finally
                   envCtx.close();
         finally
              newctx.close();
    }Also, you are suppressing exceptions when you rethrow. Never do that. Always log the actual exception. But there aren't any exceptions here that need to be caught and rethrown.

  • Audio/Video connection problem

    My system:
    iMac G5
    2.16 Ghz Intel Core 2 Duo processor
    1 GB 667 MHz DDR2 SDRAM memory
    Running on iChat AV 3.1.5 (v440)
    I'm having the typical connection problem when I try to video or audio chat with my friend who's using a PC. She's on AIM 6.9, and on my Buddy List it says that she has audio chat capabilities. When I try to audio chat with her, a message comes up saying "(screename) has declined the invitation." And then when I try to audio chat with her, an error message comes up saying this:
    Date/Time: 2007-03-11 19:33:12.239 -0500
    OS Version: 10.4.8 (Build 8L2127)
    Report Version: 4
    iChat Connection Log:
    AVChat started with ID 0.
    0xf0d6330: State change from AVChatNoState to AVChatStateWaiting.
    omgijustrock: State change from AVChatNoState to AVChatStateInvited.
    0xf0d6330: State change from AVChatStateWaiting to AVChatStateConnecting.
    omgijustrock: State change from AVChatStateInvited to AVChatStateConnecting.
    0xf0d6330: State change from AVChatStateConnecting to AVChatStateEnded.
    Chat ended with error -8
    omgijustrock: State change from AVChatStateConnecting to AVChatStateEnded.
    Chat ended with error -8
    Video Conference Error Report:
    @:0 type=4 (00000000/22)
    [VCSIP_INVITEERROR]
    [19]
    @SIP/SIP.c:2437 type=4 (900A0015/22)
    [SIPConnectIPPort failed]
    @SIP/SIP.c:2437 type=4 (900A0015/22)
    [SIPConnectIPPort failed]
    Video Conference Support Report:
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.11;branch=z9hG4bK43c31e2b2cdbaa00
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "omgijustrock" <sip:[email protected]>;tag=296962515
    Call-ID: 3e8f37c6-d031-11db-ba51-b16bcda113c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 483
    v=0
    o=guestfriends 0 0 IN IP4 192.168.0.11
    s=omgijustrock
    c=IN IP4 192.168.0.11
    b=AS:2147483647
    t=0 0
    a=hwi:1056:2:2160
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:1869986761
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:20
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 20:640:480:640:480
    a=rtpID:904020075
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.11;branch=z9hG4bK43c31e2b2cdbaa00
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "omgijustrock" <sip:[email protected]>;tag=296962515
    Call-ID: 3e8f37c6-d031-11db-ba51-b16bcda113c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 483
    v=0
    o=guestfriends 0 0 IN IP4 192.168.0.11
    s=omgijustrock
    c=IN IP4 192.168.0.11
    b=AS:2147483647
    t=0 0
    a=hwi:1056:2:2160
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:1869986761
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:20
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 20:640:480:640:480
    a=rtpID:904020075
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP 192.168.0.11;branch=z9hG4bK43c31e2b2cdbaa00
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "omgijustrock" <sip:[email protected]>;tag=296962515
    Call-ID: 3e8f37c6-d031-11db-ba51-b16bcda113c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 483
    v=0
    o=guestfriends 0 0 IN IP4 192.168.0.11
    s=omgijustrock
    c=IN IP4 192.168.0.11
    b=AS:2147483647
    t=0 0
    a=hwi:1056:2:2160
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:1869986761
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:20
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 20:640:480:640:480
    a=rtpID:904020075
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP m.0;branch=z9hG4bK2b32e27e665c62b3
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "omgijustrock" <sip:[email protected]>;tag=1947389057
    Call-ID: 3d5dea14-d031-11db-ba51-f51ac31213c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 483
    v=0
    o=guestfriends 0 0 IN IP4 m.0
    s=omgijustrock
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:1056:2:2160
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:1869986761
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:20
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 20:640:480:640:480
    a=rtpID:904020075
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP m.0;branch=z9hG4bK2b32e27e665c62b3
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "omgijustrock" <sip:[email protected]>;tag=1947389057
    Call-ID: 3d5dea14-d031-11db-ba51-f51ac31213c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 483
    v=0
    o=guestfriends 0 0 IN IP4 m.0
    s=omgijustrock
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:1056:2:2160
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:1869986761
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:20
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 20:640:480:640:480
    a=rtpID:904020075
    @SIP/Transport.c:1218 type=1 (00000000/0)
    [INVITE sip:[email protected]:5061 SIP/2.0
    Via: SIP/2.0/UDP m.0;branch=z9hG4bK2b32e27e665c62b3
    Max-Forwards: 70
    To: "u0" <sip:[email protected]:5061>
    From: "omgijustrock" <sip:[email protected]>;tag=1947389057
    Call-ID: 3d5dea14-d031-11db-ba51-f51ac31213c4@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]>;isfocus
    User-Agent: Viceroy 1.2
    Content-Type: application/sdp
    Content-Length: 483
    v=0
    o=guestfriends 0 0 IN IP4 m.0
    s=omgijustrock
    c=IN IP4 m.0
    b=AS:2147483647
    t=0 0
    a=hwi:1056:2:2160
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16386 RTP/AVP 12 3 0
    a=rtpmap:3 GSM/8000
    a=rtpmap:0 PCMU/8000
    a=rtpID:1869986761
    m=video 16384 RTP/AVP 126 34
    a=rtpmap:126 X-H264
    a=fmtp:34 imagesize 1 rules 30:352:288
    a=framerate:20
    a=RTCP:AUDIO 16387 VIDEO 16385
    a=pogo
    a=fmtp:126 imagesize 0 rules 20:640:480:640:480
    a=rtpID:904020075
    @:0 type=2 (00000000/22)
    [VCVIDEO_OUTGOINGATTEMPT]
    [4]
    Video Conference User Report:
    Binary Images Description for "iChat":
    0x1000 - 0x17cfff com.apple.iChat 3.1.5 (440) /Applications/iChat.app/Contents/MacOS/iChat
    0x5cd000 - 0x5cdfff com.ksuther.chaxloader ??? (1.4.8) /Users/guestfriends/Library/InputManagers/Chax/Chax.bundle/Contents/MacOS/Chax
    0x5d2000 - 0x62dfff com.ksuther.chax ??? (1.4.8) /Users/guestfriends/Library/InputManagers/Chax/Chax.bundle/Contents/Resources/C haxmain.bundle/Contents/MacOS/Chaxmain
    0x1618000 - 0x161bfff com.apple.iokit.IOQTComponents 1.4 /System/Library/Components/IOQTComponents.component/Contents/MacOS/IOQTComponen ts
    0xcdc1000 - 0xcdcafff com.apple.IOFWDVComponents 1.9.0 /System/Library/Components/IOFWDVComponents.component/Contents/MacOS/IOFWDVComp onents
    0xcfdc000 - 0xd018fff com.apple.QuickTimeFireWireDV.component 7.1.3 /System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/MacOS/QuickTim eFireWireDV
    0xd024000 - 0xd054fff com.apple.QuickTimeIIDCDigitizer 7.1.3 /System/Library/QuickTime/QuickTimeIIDCDigitizer.component/Contents/MacOS/Quick TimeIIDCDigitizer
    0xd05e000 - 0xd09afff com.apple.QuickTimeUSBVDCDigitizer 1.6.6 /System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component/Contents/MacOS/Qui ckTimeUSBVDCDigitizer
    0xd0be000 - 0xd217fff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
    0xd243000 - 0xd3b3fff com.apple.GeForceFXGLDriver 1.4.40 (4.4.0) /System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/MacOS/GeForceFXGLD river
    0xd3d6000 - 0xd3f2fff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLDriver.bundl e/GLDriver
    0xd3f9000 - 0xd41dfff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloa t.bundle/GLRendererFloat
    0xd4a2000 - 0xd4a7fff com.apple.audio.AppleHDAHALPlugIn 1.2.4 (1.2.4a21) /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bun dle/Contents/MacOS/AppleHDAHALPlugIn
    0xd79a000 - 0xd79dfff com.apple.audio.AudioIPCPlugIn 1.0.2 /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugI n.bundle/Contents/MacOS/AudioIPCPlugIn
    0xd7bd000 - 0xd7e7fff com.apple.audio.SoundManager.Components 3.9.2 /System/Library/Components/SoundManagerComponents.component/Contents/MacOS/Soun dManagerComponents
    0x8fe00000 - 0x8fe49fff dyld /usr/lib/dyld
    0x90000000 - 0x9016ffff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x901bf000 - 0x901c1fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x901c3000 - 0x90200fff com.apple.CoreText 1.1.1 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90227000 - 0x902fcfff com.apple.ApplicationServices.ATS 2.0.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x9031c000 - 0x90770fff com.apple.CoreGraphics 1.258.38 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x90807000 - 0x908cffff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x9090d000 - 0x9090dfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x9090f000 - 0x90a02fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a52000 - 0x90ad1fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90afa000 - 0x90b5efff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x90bcd000 - 0x90bd4fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x90bd9000 - 0x90c4cfff com.apple.framework.IOKit 1.4.6 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90c61000 - 0x90c73fff libauto.dylib /usr/lib/libauto.dylib
    0x90c79000 - 0x90f1ffff com.apple.CoreServices.CarbonCore 682.15 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90f62000 - 0x90fcafff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x91003000 - 0x91041fff com.apple.CFNetwork 129.18 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x91054000 - 0x91064fff com.apple.WebServices 1.1.3 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x9106f000 - 0x910eefff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x91128000 - 0x91146fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x91152000 - 0x91160fff libz.1.dylib /usr/lib/libz.1.dylib
    0x91163000 - 0x91302fff com.apple.security 4.5.1 (29002) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x91400000 - 0x91408fff com.apple.DiskArbitration 2.1.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x9140f000 - 0x91435fff com.apple.SystemConfiguration 1.8.6 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91447000 - 0x9144efff libbsm.dylib /usr/lib/libbsm.dylib
    0x91452000 - 0x914c8fff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x91519000 - 0x91519fff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x9151b000 - 0x91547fff com.apple.AE 314 (313) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x9155a000 - 0x9162efff com.apple.ColorSync 4.4.8 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x91669000 - 0x916dcfff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x9170a000 - 0x917b3fff com.apple.QD 3.10.21 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x917d9000 - 0x91824fff com.apple.HIServices 1.5.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x91843000 - 0x91859fff com.apple.LangAnalysis 1.6.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x91865000 - 0x91880fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x9188b000 - 0x918c8fff com.apple.LaunchServices 181 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x918dc000 - 0x918e8fff com.apple.speech.synthesis.framework 3.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x918ef000 - 0x9192afff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x9193c000 - 0x919eefff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91a34000 - 0x91a4afff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91a4f000 - 0x91a6dfff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91a72000 - 0x91ad0fff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91ae2000 - 0x91ae6fff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91ae8000 - 0x91b65fff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91b69000 - 0x91ba6fff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91bac000 - 0x91bc6fff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91bcb000 - 0x91bcdfff com.apple.ImageIO.framework 1.5.0 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91bcf000 - 0x91bcffff com.apple.Accelerate 1.3.1 (Accelerate 1.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91bd1000 - 0x91c5ffff com.apple.vImage 2.5 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91c66000 - 0x91c66fff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91c68000 - 0x91cc1fff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91cca000 - 0x91ceefff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91cf6000 - 0x920fffff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x92139000 - 0x924edfff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x9251a000 - 0x92597fff com.apple.DesktopServices 1.3.4 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x925d8000 - 0x92808fff com.apple.Foundation 6.4.7 (567.28) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92914000 - 0x929f2fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x92a0f000 - 0x92afcfff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92b0c000 - 0x92b23fff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92b2e000 - 0x92b86fff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92b9a000 - 0x92b9afff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92b9c000 - 0x92bacfff com.apple.ImageCapture 3.0.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92bbb000 - 0x92bc3fff com.apple.speech.recognition.framework 3.6 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92bc9000 - 0x92bcffff com.apple.securityhi 2.0.1 (24742) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92bd5000 - 0x92c66fff com.apple.ink.framework 101.2.1 (71) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x92c7a000 - 0x92c7efff com.apple.help 1.0.3 (32.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x92c81000 - 0x92c9ffff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x92cb1000 - 0x92cb7fff com.apple.print.framework.Print 5.2 (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x92cbd000 - 0x92d20fff com.apple.htmlrendering 66.1 (1.1.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x92d47000 - 0x92d88fff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x92daf000 - 0x92dbdfff com.apple.audio.SoundManager 3.9.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x92dc4000 - 0x92dc9fff com.apple.CommonPanels 1.2.3 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x92dce000 - 0x930c2fff com.apple.HIToolbox 1.4.8 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x931c8000 - 0x931d3fff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x931d8000 - 0x931f3fff com.apple.DirectoryService.Framework 3.2 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x93243000 - 0x93243fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x93245000 - 0x938fbfff com.apple.AppKit 6.4.8 (824.42) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x93c7c000 - 0x93cf5fff com.apple.CoreData 90 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x93d2e000 - 0x93de6fff com.apple.audio.toolbox.AudioToolbox 1.4.3 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x93e28000 - 0x93e28fff com.apple.audio.units.AudioUnit 1.4.2 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x93e2a000 - 0x93ffcfff com.apple.QuartzCore 1.4.9 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x9404d000 - 0x9408efff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x94096000 - 0x940d0fff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x9410c000 - 0x94154fff com.apple.bom 8.5 (86.3) /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
    0x9415e000 - 0x9419cfff com.apple.vmutils 4.0.2 (93.1) /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
    0x941e0000 - 0x941f1fff com.apple.securityfoundation 2.2.1 (28150) /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x941ff000 - 0x9423dfff com.apple.securityinterface 2.2.1 (27695) /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x94259000 - 0x94268fff com.apple.CoreGraphics 1.258.38 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x9426f000 - 0x9427afff com.apple.CoreGraphics 1.258.38 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x942c6000 - 0x942e0fff com.apple.CoreGraphics 1.258.38 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x942e6000 - 0x9459ffff com.apple.QuickTime 7.1.3 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x94701000 - 0x94847fff com.apple.AddressBook.framework 4.0.4 (485.1) /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x948d3000 - 0x948e2fff com.apple.DSObjCWrappers.Framework 1.1 /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x948e9000 - 0x94912fff com.apple.LDAPFramework 1.4.2 (69.1.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x94918000 - 0x94927fff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
    0x9492b000 - 0x94950fff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
    0x9495c000 - 0x94979fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x94980000 - 0x949e5fff com.apple.Bluetooth 1.7.9 (1.7.9f12) /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
    0x94ca4000 - 0x94d36fff com.apple.WebKit 418.9 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x94d90000 - 0x94e12fff com.apple.JavaScriptCore 418.3 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCor e.framework/Versions/A/JavaScriptCore
    0x94e4b000 - 0x9512afff com.apple.WebCore 418.21 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x952a9000 - 0x952ccfff libxslt.1.dylib /usr/lib/libxslt.1.dylib
    0x95a38000 - 0x95a39fff libCyrillicConverter.dylib /System/Library/CoreServices/Encodings/libCyrillicConverter.dylib
    0x95a3b000 - 0x95a3cfff libGreekConverter.dylib /System/Library/CoreServices/Encodings/libGreekConverter.dylib
    0x95a40000 - 0x95a56fff libJapaneseConverter.dylib /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
    0x95a58000 - 0x95a79fff libKoreanConverter.dylib /System/Library/CoreServices/Encodings/libKoreanConverter.dylib
    0x95a86000 - 0x95a94fff libSimplifiedChineseConverter.dylib /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
    0x95a99000 - 0x95a9afff libThaiConverter.dylib /System/Library/CoreServices/Encodings/libThaiConverter.dylib
    0x95a9c000 - 0x95aaefff libTraditionalChineseConverter.dylib /System/Library/CoreServices/Encodings/libTraditionalChineseConverter.dylib
    0x96451000 - 0x96451fff com.apple.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x96938000 - 0x9695afff com.apple.speech.LatentSemanticMappingFramework 2.5 /System/Library/PrivateFrameworks/LatentSemanticMapping.framework/Versions/A/La tentSemanticMapping
    0x969cb000 - 0x96a99fff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
    0x96ab4000 - 0x96ab5fff com.apple.opengl 1.4.12 /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLSystem.dy lib
    0x96ab7000 - 0x96abcfff com.apple.agl 2.5.9 (AGL-2.5.9) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x96c09000 - 0x96c09fff com.apple.MonitorPanelFramework 1.1.1 /System/Library/PrivateFrameworks/MonitorPanel.framework/Versions/A/MonitorPane l
    0x97365000 - 0x9744efff com.apple.viceroy.framework 276.0 /System/Library/PrivateFrameworks/VideoConference.framework/Versions/A/VideoCon ference
    0x97b7f000 - 0x97b81fff com.apple.DisplayServicesFW 1.8.2 /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayS ervices
    0x97dac000 - 0x98896fff com.apple.QuickTimeComponents.component 7.1.3 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTim eComponents
    0x991f5000 - 0x99200fff com.apple.IMFramework 3.1.1 (427) /System/Library/Frameworks/InstantMessage.framework/Versions/A/InstantMessage
    0x9920a000 - 0x99376fff com.apple.MessageFramework 2.1.1 (752.3) /System/Library/Frameworks/Message.framework/Versions/B/Message
    0xc0000000 - 0xc0008fff com.growl.growlframework 0.7.3 /Users/guestfriends/Library/InputManagers/Chax/Chax.bundle/Contents/Resources/C hax_main.bundle/Contents/Resources/Frameworks/Growl.framework/Growl
    Now, I've sifted through this discussion section some and I know this is a common case. So I tried to fix things on my own terms, gathering what other people around here have been suggested. On iChat, the bandwidth is set to No Limit. On iChat's Server Settings (under Account), I changed the port to 443. In System Preferences, I changed Quicktime's streaming speed to 1.5 Mbps T1/Intranet/LAN. And, my firewall is turned off.
    But it's still giving me the same errors/messages when I try to audio/video chat.
    Help???
    iMac G5   Mac OS X (10.4.8)  

    Hi Eurostrike,
    If it is AIM 5.9 has she "Tuned" it to her camera and Mic ?
    Also has she allowed it as an Exception through the XP firewall ?
    8:37 PM Tuesday; March 13, 2007

  • Losing servlet-ldap connection

    Hi,
    The problem :
    I have a servlet that accesses an Ldap server (iplanet). The servlet loses the ldap connection after being unsused for a long while.
    What I tried :
    I implemented my own method (isConnected(), see the code below) to check the connection : this method performs a silly search in the Ldap. I call this method before any other call to the Ldap. When the connection is lost, the method hangs for a long while (more than 5 minutes) although I set the serverTimeLimit parameter to 10 seconds. The servlet is hanging during the call to the search method of the Ldap.
    The question :
    Do you know the ways to check if the ldap connection is still valid or not ?
    The details :
    Environment : Unix, Solaris 8
    Tomcat server 4.1
    Iplanet 5.1
    Ldap access : SDK
    The code :
    * isConnected()
    * Test the Ldap connection trying to perform a search request
    * @author mba
    * @version
    public boolean isConnected()
    boolean zb_IsConnected = true;
    // Test the connection with a request
    try
    String lDN = "ObjectName=*";
    String lFilter = "(ObjectName=*)";
    String lAttrs[] = {"ObjectID"};
    mLDAP.getSearchConstraints().setServerTimeLimit(10);
    LDAPSearchResults lResults = mLDAP.search (mSwitchDir, LDAPConnection.SCOPE_ONE, lFilter, lAttrs, false);
    catch (LDAPException e)
    if( (e.getLDAPResultCode() == LDAPException.SERVER_DOWN) ||
    (e.getLDAPResultCode() == LDAPException.CONNECT_ERROR) ||
    (e.getLDAPResultCode() == LDAPException.CONNECT_ERROR) ||
    (e.getLDAPResultCode() == LDAPException.TIME_LIMIT_EXCEEDED) ||           
    (e.getLDAPResultCode() != LDAPException.SUCCESS) )
    if(!reconnect())
    System.out.println("ldapMain::isConnected() - Error, failed to reconnect");          
              zb_IsConnected = false;
    return zb_IsConnected;
    }

    Hi All,
    I am working on a project which uses jsp and ldap. I am getting a very strange kind of error, sometimes for LDAP operation error called SERVER_DOWN(80) is coming it it goes if I refresh the page. behaviour of this error is very uncertain sometimes it comes and sometimes it does not come.
    Does anybody has any idea how to solve? is it something related to LDAP server settings or memory leaks. please guide
    thanks in advance
    -presi

  • LDAP connections not being closed

    Hi,
    I am trying to authenticate against a Netscape LDAP server and it works fine for 2 out of the 3 cases I am testing against.
    The first case is authenticating with the correct username and correct password. In this case the user is authenticated and the connection is closed.
    In the second case, I try to authenticate with the correct username and a wrong password. The authentication fails and an AuthenticationException is thrown. The connection is closed.
    In the third case, where I have the PROBLEM is if I provide a wrong username, AuthenticationException is thrown indicating that such an username does not exist. But the CONNECTION IS NOT CLOSED.
    Following is the code :
         private boolean authenticate(String userName, String password) throws Exception {
              Hashtable env = new Hashtable(11);
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
              env.put("com.sun.jndi.ldap.connect.pool", "false");
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              env.put(Context.SECURITY_PROTOCOL, "ssl");
              env.put(Context.SECURITY_PRINCIPAL, getSecurityPrincipal(userName));
              env.put(Context.SECURITY_CREDENTIALS, password);
              env.put(Context.PROVIDER_URL,"ldap://ldap05.nike.com:11003");
              DirContext ctx = null;
              try {
                   // Create initial context
                   ctx = new InitialDirContext(env);
                   return true;
              } catch (AuthenticationException e) {
                   log.error(e.getMessage());
              } catch (NamingException e) {
                   log.error("The user could not be validated on LDAP server due to :" + e.getMessage());
              } finally {
                   if (ctx != null) {
                        ctx.close();
              return false;
         }Any help is appreciated.
    Thanks in Advance.

    I did run the NETSTAT command and found some interesting things.
    I ran it for the three cases. The first case is running netstat immediately after authenticating the user with VALID credentials. The status of the connection is TIME_WAIT which is the desired behaviour.
    In the second case, when trying to authenticate with CORRECT username but a wrong password, an AuthenticationException is thrown. When I run the netstat command, the connection is in TIME_WAIT state which is the desired one.
    In the third case, when I provide a wrong username, an AuthenticationException is thrown. When I run the netstat command, the connection is in ESTABLISHED state, which it should not be in.
    An authenticationException is thrown for wrong username and also for wrong password. But the connection is closed for wrong password, but not for wrong username.This is what seems to me as a weird behaviour.
    I was under the impression that in the CODE I mentioned at the begining of this topic, the INITIALDIRCONTEXT had the responsibility of closing the connection when authentication fails as we don't have a handle to close it. It is doing so in the case of ERROR 49 which is wrong password, but not in the case of ERROR 32 which is wrong username. Correct me if I am wrong, but doesn't it seem to be a bug with the INITIALDIRCONTEXT class.
    Thanks.

  • Determining the state of an LDAP connection

    Hi all,
    I'm in a situation where I need to determine the state of an existing LDAP connection. The code is called from Java servlets / JSP's, and we're having a problem where the client mysteriously disconnects. The stack trace points to:
    04/10/04 10:24:54 javax.naming.CommunicationException: connection closed. Root exception is java.io.IOException: connection closed
    04/10/04 10:24:54 at com.sun.jndi.ldap.LdapClient.ensureOpen(LdapClient.java:1648)
    04/10/04 10:24:54 at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:594)
    04/10/04 10:24:54 at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1921)
    04/10/04 10:24:54 at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1783)
    04/10/04 10:24:54 at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1708)
    04/10/04 10:24:54 at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
    04/10/04 10:24:54 at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:328)
    04/10/04 10:24:54 at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:313)
    04/10/04 10:24:54 at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:238)
    04/10/04 10:24:54 at com.tekelec.corpdir.ad.ADHelper.getAvailableOrgUnits(ADHelper.java:582)
    The peculiar thing is that the InitialDirContext DOES exist, and is not null. Since we can't poinpoint what is causing the disconnects, the next best thing is to to a test against the context to determine if it is still connected.
    Looking at this stack trace, I can see a function: com.sun.jndi.ldap.LdapClient.ensureOpen(LdapClient.java:1648)
    Googling the source, shows the following implementation:
    private void ensureOpen() throws IOException {
         if (conn == null) {
         throw new IOException("connection closed");
    However, this does no good, since the function is private, and the corresponding Connection object is not exposed through JNDI.
    Does anyone have any ideas? For now, I'm going to just call a simple 'lookup(...)' to cause the exception to be thrown if the connection is dead.
    TIA!
    -Sean

    I was getting this exception on relatively large searches (but not on smaller ones). I was also getting a java.lang.OutOfMemoryError just before it that wasn't part of the stack trace. The server was nowhere near running out of swap, and all the /etc/system parameters (solaris) were reasonable.
    Then I found this page:
    http://java.sun.com/docs/hotspot/PerformanceFAQ.html#171
    and changed the way I'm calling the jvm this way:
    /usr/local/j2sdk1.4.2_08/bin/java -Xms512m -Xmx512m <java class file>
    This solved the problem for me. Something you may want to try, anyway.

Maybe you are looking for

  • Cant sign into download manager?

    So I am trying to download Illustrator but first, I have to sign into download manager. When I try to sign in, it says "Error communicating with Adobe.com (Error 100) Check your network connection and restart Adobe Download Assistant. I tried everyth

  • How can i use exisitng user data(Id, password) for user mapping

    Hi All, For User mapping , we can import user mapping data for many users from user administration. and for each user we can maintain mapping data in the standard format. eg: [User] uid=user2 $usermapping$:BCE:user=ext_user2 $usermapping$:BCE:mappedp

  • Purchasing across company codes

    __Current System__ We have 4 company codes with 4 purchasing org's; each for respective company codes. New Scenario Due to IT reorg, now we want to be able to purchase across company codes. Basically, single PO with multiple line items, coded to diff

  • TC connects to PC (802.11n) DHCP IP assigned but no DNS lookups

    Replaced my Linksys with a Time Capsule. Our iMac works fine. Our MBP works fine. Just recently our room mates PC is not resolving domain names. Her 802.11n USB wireless connection had been working fine. But now when she connects she is assigned an a

  • XML Export Dump?

    Hi, I've been asked if there's a way to do an export of a regular Oracle table in XML format. I've been researching, but I'm still unclear. Is there a way to perform an export of an Oracle table in XML format? Also, would the reverse work with import