Refresh LDAP connection

Hi,
I'm using UME API to access to LDAP.
I'm having trouble in refreshing my connection.
I've tryed using IGroupFactory.invalidateCacheEntry(groupUniqueID) but it doesn't work.
Does anyone have had the same problem?
Thanks in advance,
GC

Silly me,
The problem is solved. Just passing uniqueName instead of
uniqueID.
GC

Similar Messages

  • Issue with LDAP Connection becuase of Network issue

    Hello All,
    We have some network issues going on which is causing the NIC (Network interface card) to failover to another NIC. Due to this failover SUN access manager's LDAP connection pool fills up and we see errors in logs "Directory is down". We have to restart the Access manager to resolve this issue which refresh the connection pool of LDAP.
    Now we have set the setting as recommended in admin guide/tuning guide. Like
    1. Set event connection idle timeout to less that firewall or loadbalancer idle timeout value.
    2. event connection retry count and interval on perticular error code.
    Despite of above settings its not working out. Is there other way to get all the stale connections back to the LDAP pool without restarting the server?
    Or something which handles the network failover or failback?
    Regards
    Chetan Kulshrestha

    The user search name is the value you should be looking at in the LDAP attributes, that's the one that it will send to LDAP on a logon attempt. If you changed this value after mapping a group, I'm not sure but you may have to remap the group to get the change.
    So on the LDAP side verify the user search attribute = the username you expect to login with (i.e. cn, samaccountname, uid, etc)
    Regards,
    Tim

  • 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

  • Cannot refresh table - test connection works fine but refresh gives "We couldn't refresh the connection. Please go to existing connections and verify they connect to the file or server." error.

    I'm having some difficulty updating a table in my powerpivot data model. The data for the table is stored in a local excel file; if I go to
    Existing Connections select the connection and do a test then everything is successful. When however I try to refresh that particular table I get the following error:
    "We couldn’t refresh the connection. Please go to existing connections and verify they connect to the file or server."
    In the past I had this and it was an authentication issue, the files are stored on SharePoint and I wasn't logged in to Sharepoint - I have however checked this and it can't be the issue because I have other tables linked to other excel files in the same
    location that are refreshing without issue. Can anyone think of what may be causing it?
    I have even tried creating a new local excel with the same data, added it to the data model and then tried a refresh and I I get exactly the same issue. 
    Are there any known issues with refreshing data from an Excel file if, after the initial import, you add columns to the table in the excel file I was wondering if this might contribute?
    Thanks

    Hi Maracles,
    Thanks for your post.
    From your description, I tried to reproduce this issue on my test environment. However, everything is fine for me. Could you please post the specific version of SQL Server PowerPivot for Excel?
    You can try to use a trace file to troubleshoot errors in PowerPivot. If this issue still persists, please try to reinstall SQL Server PowerPivot for Excel to see if this helps.
    For more information, please see:
    PowerPivot Options & Diagnostics Dialog Box:
    http://technet.microsoft.com/en-us/library/gg399091.aspx
    Using a Trace File to Troubleshoot Errors in PowerPivot:
    http://www.sqlchick.com/entries/tag/powerpivot
    Best Regards,  
    Elvis Long
    TechNet Community Support

  • How to disable SSLv3 and keep only TLS for LDAP connection.

    Hi,
    I'm planning to keep only TLSv1.2 for LDAP connections.
    I tried to set LDAP_OPT_SSL_INFO in LDAP Session Options using a SecPkgContext_ConnectionInfo Structure with dwProtocol SP_PROT_TLS1_2_CLIENT(as described here -  https://social.msdn.microsoft.com/Forums/en-US/7544226d-97e1-4dae-a377-e382c2281e91/how-to-set-up-tls-in-ldap-connection?forum=vcgeneral),
    but it returns LDAP_PARAM_ERROR.
    I tried to call this function directly after ldap_sslinit/ldap_init and before ldap_connect() - without success, I tried to use other parameters with default values, I tried to initialize them by 0/other possible values - and also no success.
    How I can do this?
    Thanks for your advices.

    LDAP_PARAM_ERROR
    https://msdn.microsoft.com/en-us/library/aa367026(v=vs.85).aspx

  • 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.

  • LDAP connections with multiple proxy instances

    After configuring LDAP connectivity through the Admin application on a machine with multiple proxy instances I end up with:
    number of proxy instances x LDAPConnPool times number of connections to the LDAP server.
    Question: Is it possible to prevent some of the proxy instances from opening LDAP connections?

    Hi
    Increase the IDLE timeout value on the LDAP server. Of course, this just extends the inevitable. Check if there is a way to disable IDLE timeout on LDAP server.
    Regards,
    Nagendra HK

  • LDAP connectivity in web Dynpro

    How to do  LDAP connectivity in web dynpro to make use of UME

    After installing the LDAP go to configtool UME
    Select the option from the dropdown
    then
    Provide the server name : The server in which you have installed the LDAP
    port :389/636
    username=cn=<the username>,o=<context name>
    password=<the passsword provided by you while installing>
    browse to find the data for the path below
    userpath
    grouppath
    After this the UME in portal can be configured in the LDAP

  • LDAP Connection exception: unable to retreive the specified realm(s).

    I am using Embedded OC4J and I have a web form based authentication (j_security _check) and configured my orion-application.xml to use LDAP connection in this way:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <orion-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-application-10_0.xsd">
    <jazn provider="LDAP" location="ldap://192.168.1.114:389"
    default-realm="cn" jaas-mode="doAsPrivileged"/>
    <jazn-loginconfig>
    <application>
    <name>ceads</name>
    <login-modules>
    <login-module>
    <class>oracle.security.jazn.login.module.LDAPLoginModule</class>
    <control-flag>required</control-flag>
    <options>
    <option>
    <name>oracle.security.jaas.ldap.connect.pool.prefsize</name>
    <value>10</value>
    </option>
    ....... other LDAp parameters ...
    When I try to log in, is always failed and I get this exception. I have no Idea what to do.
    javax.security.auth.login.LoginException: oracle.security.jazn.JAZNException: The system is unable to retreive the specified realm(s).
    at oracle.security.jazn.spi.ldap.LDAPRealmManager.searchRealms(LDAPRealmManager.java:1194)
    at oracle.security.jazn.spi.ldap.LDAPRealmManager.getRealm(LDAPRealmManager.java:238)
    at oracle.security.jazn.login.module.RealmLoginModule.getRealmFromUsername(RealmLoginModule.java:247)
    at oracle.security.jazn.login.module.RealmLoginModule.getRealm(RealmLoginModule.java:219)
    at oracle.security.jazn.login.module.RealmLoginModule.getRealmUser(RealmLoginModule.java:198)
    at oracle.security.jazn.login.module.RealmLoginModule.authenticate(RealmLoginModule.java:111)
    at oracle.security.jazn.login.module.RealmLoginModule.authenticate(RealmLoginModule.java:86)
    at oracle.security.jazn.login.module.AbstractLoginModule.login(AbstractLoginModule.java:265)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
    at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
    at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
    at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
    at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
    at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
    at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
    at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
    at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
    at com.evermind.server.http.EvermindHttpServletRequest.checkAndSetRemoteUser(EvermindHttpServletRequest.java:3760)
    at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3727)
    at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6350)
    at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3030)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:738)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.IllegalStateException: LDAP properties not properly defined. Please check your JAZN configuration.
    at oracle.security.jazn.spi.ldap.LDAPContext.getDirContext(LDAPContext.java:476)
    at oracle.security.jazn.spi.ldap.LDAPContext.getDefaultDirContext(LDAPContext.java:246)
    at oracle.security.jazn.spi.ldap.LDAPContext.getOrclRootCtxDN(LDAPContext.java:187)
    at oracle.security.jazn.spi.ldap.LDAPContext.getSiteJAZNCtxDN(LDAPContext.java:222)
    at oracle.security.jazn.spi.ldap.LDAPRealmManager.searchRealms(LDAPRealmManager.java:1087)
    ... 37 more
    Edited by: user6112181 on 15-oct-2010 19:30
    Edited by: user6112181 on 15-oct-2010 19:31

    Hi,
    Can you access the URL using a browser? Does it work with the credentials used for the RunAs account?
    Strange error message though - are the account you are running the console with, present in the SCSM CMDB?
    Regards
    //Anders
    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se

  • LDAP Connection - users in more than one group

    Hallo.
    I set up an appl. with ldap connection (Novell eDirectory 8 / Novell 6.5).
    Working fine for users in an specified container.
    Using (Based on a pre-configured scheme from the gallery
    ; Show Login Page and Use LDAP Directory Credentials)
    LDAP DN STRING=
    cn=%LDAP_USER%,o=los
    only users in container los can connect,
    Using
    LDAPDN=
    cn=%LDAP_USER%,ou=amt10,o=los
    now menbers of amt10 can connect but no one else
    Is there an hint to get it work recursive ? (like mod_auth_ldap in apache does ?) So all users in any conainer under o=los will able to connect
    I have nearly 1000 Users in ~50 Containers, what sould I do best? What is misconfigured?
    Ralf

    I'm using a nifty little application call iCalPublish. Check it out at http://www.buddy.com/ical/
    sb

  • WLS 9.2.1 keeping huge no of opn Embedded LDAP connections

    Hello All,
    While using Embedded LDAP, we see a huge no of open LDAP connections through Admin console.
    We checked the following options:
    GroupMembershipSearching=limited
    MaxGroupMembershipSearchLevel=5
    But still the same issue persists.
    Any idea?
    /ed

    Are all these sockets actually listening or are they waiting to be closed? You can use netstat -a to find the status of these LDAP sockets.
    May be they are not being closed properly.

  • No LDAP connection available

    Hi,
    We are developing a Webcenter portal application using Webcenter 11g along with UCM 11g.
    We have integrated the Weblogic with external LDAP(i.e) we r not using the default LDAP comes with Weblogic
    We have also integrated the whole set up with OAM. We are using RIDC APi to check-in/update/fetch the content from UCM. We are facing following issue,
    1. We are able to login to UCM Admin console and check-in the content. But we are unable search and check-out the content via UCM Admin cosole . We are getting the below exception,
    Caused by: oracle.stellent.ridc.protocol.ServiceException: Unable to retrieve search results. Unable to execute service method 'getPreferredLanguage'. oracle.security.idm.IMException: oracle.ods.virtualization.service.VirtualizationException: oracle.ods.virtualization.engine.util.DirectoryException: LDAP Error 1 : No LDAP connection available to process request for DN: cn=orcladmin.. oracle.ods.virtualization.service.VirtualizationException: oracle.ods.virtualization.engine.util.DirectoryException: LDAP Error 1 : No LDAP connection available to process request for DN: cn=orcladmin.. oracle.ods.virtualization.engine.util.DirectoryException: LDAP Error 1 : No LDAP connection available to process request for DN: cn=orcladmin.. javax.naming.NamingException: No LDAP connection available to process request for DN: cn=orcladmin..
    2. Also we are getting the same exception when we try to check-in/update/fetch the content from the portal application via RIDC.
    Is there any config is missing or else as external LDAP is configured is there any configuration required at UCM end as well as in RIDC end
    Thanks in advance

    Hi ,
    I am getting the same exception.Have you got the solution for this.
    Regards;
    Vinay

  • 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.

  • Exchange 2010 EvenID 2070, LDAP connects to demoted AD server

    Running Exchange 14.3.224.4002 on Server 2008R2 SP1.
    Every 20 minutes i see this Event appearing in my application logs:
    Process MSExchangeMailboxReplication.exe () (PID=4116). Exchange Active Directory Provider lost contact with domain controller <demoted.domain.controller> Error was 0x51 (ServerDown) (Active directory response: The LDAP server is unavailable.).
    Exchange Active Directory Provider will attempt to reconnect with this domain controller when it is reachable
    Demoted this server as documented with DCPROMO. All DNS records from this server are removed a long time ago and Exchange was restarted several times. Performed a succesvol DCDIAG /test:dns. Even
    did the rename trick on C:\Users\<username>\appdata\roaming\microsoft\mmc\Echange Management Console. Can someone please shine some light on this?

    Hi,
    This error indicates that the DC was closing the LDAP connection. I suggest to set the following registry value to 2 in order to increase the logging level on the DC for discovering this issue.
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics\16 LDAP Interface Events
    After this step, DC will start generating other events every time it disconnected Exchange. Please collect and post these events for troubleshooting.
    Refer to this blog for more information
    http://blogs.technet.com/b/bill_long/archive/2014/03/19/ldap-send-queue-limits-cause-event-2070-and-2084.aspx
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • MDM -LDAP connectivity

    Hello MDM guru's,
    Happy New Year
    Could anyone guide me how to achive MDM -LDAP connectivity. can any one please share their document used for above said connectivity in their company or steps how to perform it.
    Thanks in Advance
    cheers
    Srihari Reddy

    If you check the MDM Console reference guide here :
    https://websmp105.sap-ag.de/~sapidb/011000358700006291622006E
    You will find that there is a complete appendix regarding how MDM and LDAP is working and how to implement it.
    regards
    Mark

Maybe you are looking for

  • Thunderbolt mini display port cable to HDMI not registering

    I recently purchased a 6" mini display port to HDMI Cable. When I connected my macbook to my HDMI on my TV the macbook pro does not show the screen as a display option. When I go to system prefrences and under displays the tv is not showing up under

  • After 24 hours, my iweb pages finally posted!  Is it me? Iweb? Mobileme?

    After 24 hours, my iweb pages finally posted! Is it me? Iweb? Mobileme? All the above? I'd really like to know before my family kills me for tying up all of our bandwidth for the entire day again. Yes besides taking forever to upload, the process see

  • Safari 3.2.1 and Mac OS 10.4.11

    I have reached the point where Safari (current version for Tiger) on Mac's running 10.4.11 (with all current updates) is totally unusable. It simply quits responding to calls to load web sites. I cannot even quit Safari using the Safari Quit Safari m

  • Vision M 30GB started showing horizontal white lines over LCD

    Everything was perfect since couple days ago. I have taken out my creative Zen Vision M 30G from its case then turned on and seen that all over the screen covered with horizontal white lines. Nothing has happened to the player. Not dropped or put it

  • Computer name with number within brackets

    Hello Since we have alle our computers connected to an Snow Leopard Server over Open Directory, we have an cosmetic problem which I am not able to solve. In the System Preferences/Sharing/ the Computer Name is greyed. When the Computer crashed and re