How to use API to access embedded LDAP

how can I access the embedded LDAP through API,such as to query
a user from it. who can give me a example

how can I access the embedded LDAP through API,such as to query
a user from it. who can give me a exampleThere no public API to access LDAP but you can do something
like(programatically)
AuthenticationProviderMBean [] providers =
Admin.getInstance().getActiveDomain().getSecurityConfiguration().findDefault
Realm().getAuthenticationProviders();
for (int i=0; providers != null && i <providers.length; i++)
System.out.println("Providers: " + providers.toString());
if (providers[i] instanceof UserReader)
UserReader reader = (UserReader)providers[i];
try {
} catch (Exception e) {
-utpal

Similar Messages

  • How to use JAPI to Access Essbase 6.5

    Do anyone knows How to use JAPI to Access Essbase 6.5?
    I was told to install Enterprise Services 7.3.1.10.
    But when I test eds samples, I can connect Essbase but can not get data from Essbase.
    Need to change another Enterprise Services(I was told 7.3.1.10 is the latest version), or do some config in 7.3.1.10.
    Thanks a lot in advance

    Gee is correct. You will need to use EAS 7.x to add an analytic server. You will also have to do a few other tasks such as synch'ing security, etc.
    Further, as you are not accessing the exact same version of Essbase as your version of EDS, there is a property setting you will have to change to be successful. In eds\7.1.3\bin, open essbase.properties and modify the server.olap.direct setting to set it to false. What this setting does is forces EDS to use it's own private set of C API files and to use them for all calls to Essbase. Otherwise, EDS will attempt to use pure Java calls to the server. Unfortunately, the pure Java calls were implemented in an 'evolutionary' manner so every Essbase version got more calls until sometime in the System 9 timeframe. By the time 9.3 shipped (and maybe before, I would have to check), all calls the server are pure Java and that property setting is no longer available.
    Tim Tow
    Oracle ACE
    Applied OLAP, Inc

  • How to use Javamail for accessing additional mailboxes -IMAP, Exchange 2010

    hi,
    I want to access a shared mailbox (NOT FOLDER) via Javamail API (1.4.5) using IMAP(s) with plain logon. The mailserver is a Exchange Server 2010.
    User: user1 ([email protected])
    pwd: xxxx
    shared mailbox: [email protected]
    Properties:
    mail.imaps.socketFactory.port = 993
    mail.imaps.starttls.enable = true
    mail.imaps.socketFactory.class = javax.net.ssl.SSLSocketFactory
    mail.imaps.socketFactory.fallback = false
    username = [email protected]
    password = xxxx
    I´ve managed to get access to the user1 - mailbox:
    Session session = Session.getInstance(properties, new ExchangeAuthenticator(username, password));
    session.setDebug(true);
    Store store = session.getStore("imaps");
    store.connect(imapHost, username, password);
    --> this works just fine! But now i want to access the additional mailbox by changing the login-String:
    [email protected]/shared_MB (user@domain/additional_MB)
    --> unfortunately I´m getting an "NO AUTHENTICATE" message:
    DEBUG: setDebug: JavaMail version 1.4.5
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    DEBUG: mail.imap.statuscachetimeout: 1000
    DEBUG: mail.imap.appendbuffersize: -1
    DEBUG: mail.imap.minidletime: 10
    DEBUG: trying to connect to host "host.domain.com", port 993, isSSL true
    * OK The Microsoft Exchange IMAP4 service is ready.
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN UIDPLUS CHILDREN IDLE NAMESPACE LITERAL+
    A0 OK CAPABILITY completed.
    DEBUG IMAP: AUTH: NTLM
    DEBUG IMAP: AUTH: GSSAPI
    DEBUG IMAP: AUTH: PLAIN
    DEBUG: protocolConnect login, host=host.domain.com, [email protected]/shared_MB, password=<non-null>
    DEBUG IMAP: AUTHENTICATE PLAIN command trace suppressed
    DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO AUTHENTICATE failed.
    javax.mail.AuthenticationFailedException: AUTHENTICATE failed.
    I was able to get access with Thunderbird and also with the Exchange OWA-Client, so I think there is something missing in my code...
    or is it just impossible to get access to a different mailbox using javamail and plain-auth?
    Thank you in advance.

    Thanks bshannon, that was a great idea!
    I haven´t found an solution yet, but I have maybe identified the real problem:
    Here is some interessting Thunderbird - Logging stuff:
    744[7161040]: try to log in
    744[7161040]: IMAP auth: server caps 0x1187235, pref 0x1006, failed 0x0, avail caps 0x1004
    744[7161040]: (GSSAPI = 0x1000000, CRAM = 0x20000, NTLM = 0x100000, MSN = 0x200000, PLAIN = 0x1000, LOGIN = 0x2, old-style IMAP login = 0x4)auth external IMAP login = 0x20000000
    744[7161040]: trying auth method 0x1000
    744[7161040]: got new password
    744[7161040]: IMAP: trying auth method 0x1000
    744[7161040]: PLAIN auth
    744[7161040]: 7082000:xmail.domain.com:NA:SendData: 2 authenticate plain
    744[7161040]: ReadNextLine [stream=7ec9e88 nb=3 needmore=0]
    744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: +
    744[7161040]: 7082000:xmail.domain.com:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
    744[7161040]: ReadNextLine [stream=7ec9e88 nb=27 needmore=0]
    744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: 2 NO AUTHENTICATE failed.
    744[7161040]: authlogin failed
    744[7161040]: marking auth method 0x1000 failed
    ---> okay, so PLAIN AUTH is failing.....
    744[7161040]: IMAP auth: server caps 0x1187235, pref 0x1006, failed 0x1000, avail caps 0x4
    744[7161040]: (GSSAPI = 0x1000000, CRAM = 0x20000, NTLM = 0x100000, MSN = 0x200000, PLAIN = 0x1000, LOGIN = 0x2, old-style IMAP login = 0x4)auth external IMAP login = 0x20000000
    744[7161040]: trying auth method 0x4
    744[7161040]: got new password
    744[7161040]: IMAP: trying auth method 0x4
    744[7161040]: old-style auth
    744[7161040]: 7082000:xmail.xmail.domain.com:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
    744[7161040]: ReadNextLine [stream=7ec9e88 nb=23 needmore=0]
    744[7161040]: 7082000:xmail.domain.com:NA:CreateNewLineFromSocket: 4 OK LOGIN completed.
    744[7161040]: login succeeded
    --> okay, so Thunderbird is using "old-style IMAP login" and is successful.
    Unfortunately I have no idea what that actually means or how to use it in Javamail (is it even supported?). Any suggestions?

  • How to use jcifs to access SMB share via webdynpro app ?

    Hello All,
    I am trying to access a protected intranet share via my webdynpro application. I have uses jcifs api to access the jcifs functions. However, I am stuck with running the application on webAS as it gives a runtime exception  java.lang.NoClassDefFoundError: jcifs/smb/SmbFile .
    I included the jcifs jar into a lib project and also deployed it onto the j2ee engine. Compilation works fine now, but it fails it runtime. Can someone please tell me what is the best way to use external libraries i.e jars in one's application so that it has no runtime errors on j2ee engine ?

    thkx Mahesh for the info, i had been trying the destination service method for some time now
    but there is a portal runtime exception when i try
    destinationService.getDestinationNames("RFC") or for WebService or HTTP
    i check the default trace and this is the error stated there
    Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: /usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDException.java):20: class IDException is public, should be declared in a file named IDException.java
    (source unavailable)
    /usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDMessage.java):48: class IDMessage is public, should be declared in a file named IDMessage.java
    (source unavailable)
    /usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDExceptionMessage.java):10: class IDExceptionMessage is public, should be declared in a file named IDExceptionMessage.java
    (source unavailable)
    /usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/ExternalizableException.java):19: class ExternalizableException is public, should be declared in a file named ExternalizableException.java
    (source unavailable)
    /usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/LogUtil.java):26: class LogUtil is public, should be declared in a file named LogUtil.java
    (source unavailable)
    5 errors
    Please help regarding this.

  • How to use API in forms10g

    Hi,
    Actually we hav developed a ERP in from10g.
    and i want to change my title of my browser dynamically..
    how it is posiible..
    I it can be possible through API.Plez tell me how i use this thing..

    if you are using separate_frame=true, then you can use WEBUTIL_SEPARATEFRAME.SETTITLE for this.

  • How to use API

    hi,
    I want to see the data passed to the server from client. but i am not sure how to use the API. i can see the api listing in  com.sap.ip.me.api.smartsync
    can anyone help with api using or code snippets.
    i want to see what data is passed and what is the server response.
    pls help.
    thanks in advance
    ketki.

    hi ketki,
    here's a simple snippet on getting all the delta data on you client which are subject
    to be uploaded to the middleware.
    SyncBoDescriptor boDesc= descriptorFacade.getSyncBoDescriptor("boName");
    MeIterator outDeltaIt = syncBoOutDeltaFacade.getAllDelta();
    while(outDeltaIt.hasNext()){
      SyncBoOutDelta outDelta = (SyncBoOutDelta)it.next();
      //print outDelta info... 
      //please refer to the JavaDoc API for details on SyncBoOutDelta
    you can implement this inside an outbound observer.
    SyncBoOutDeltaObserver - for outbound sync
    for inbound, i,e the response from server, you can peek thru them via an inbound
    observer. refer also to SyncBoInDelta API
    SyncBoInDeltaObserver - for inbound sync
    <a href="https://help.sap.com/javadocs/NW04/current/me/index.html">MI JavaDoc</a>
    regards
    jo

  • I dont know the how to use api

    i have download the poi_ excel Api .jar but i dont know how to use this Api. please help me

    Have a look at the Apache POI [Quick Guide docs|http://poi.apache.org/hssf/quick-guide.html].

  • How to use jacob to access a com object with coldfusion7

    i want to use jacob to access a com objcet with coldfsuion7(i
    just want to do a test)
    how to do?
    Thank a lot!

    Flashcqxg wrote:
    > i want to use jacob to access a com objcet with
    coldfsuion7(i just want to do a test)
    > how to do?
    you don't. use createObject():
    mailer=createObject("COM","CDONTS.NewMail");
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfobject_08.html

  • How to use rescuecd to access NAS200 RAID drives

    I have been lurking trying to figure out how to access my NAS200 drives after a power supply failure and of course I have no backups, relying on the RAID to create my two copies.  (Lesson learned)
    I have a NAS200, with two Western Digital 1TB Green hard drives.  They are configured in a RAID 1 mirror and they are in a journaled file system
    So from what I've been reading, I believe they are in XFS. and I can use the rescuecd iso to access the drive directly to copy them off onto another drive.
    I am using Windows XP SP3.   The computer system is 8 years old - a Dell Pentium 4 Dimension system with 4GB of memory.   I do have Ubuntu, but I have no idea how to use Linux, and definitely not the command line that the rescuesystemcd drops me into.
    I've taken one of the drives and installed it in an external USB drive and plugged it in the system.
    In Windows XP SP3, I can see the drive on my virtual file manager and I can see the three partitions, one main data partition, the configuration partition and the swap partition, but of course it's not the right file system. and it's not ext2/ext3  so Ext2IFS will not work for me from what I've read.
    In ubuntu 11.10, when I've plugged in the external drive, I have no idea how to access the drive.   I suspect I have to mount it, but I have no idea how to do it or even where to begin looking for it to access it. 
    And of course in the CLI using the systemrescuecd, I am completely lost there:   The last CLI I used was MS-DOS from over 15-18 years ago.   I can ls (MS-DOS dir) and cd to navigate the folders of the file system and I believe cp is copy? and if I was using the Ubuntu CLI, I have to sudo everything I believe.
    So after this long post, what am I asking for?
     - How do I mount the external drive in either Ubuntu or the system rescue CD iso.
     - Can I mount a second external drive with a NTFS file system in Ubuntu or the system rescue CD?
     - I would prefer to do it in Ubuntu or some other graphical method so that I could just drag and drop from one disk onto another or failing that using the commandline, what command would copy the entire drive's file system from one to another?
    Thanx

    Are you able to access the web interface of NAS200 using its IP address? If, 'yes' then unplug both the hard drives? Reset NAS200, reconfigure it and connect the drives again. See if that helps.

  • How to use Derby database in embedded mode in WebLogic 12c?

    I have a JavaEE-6 application that uses Derby database in embedded mode. It uses JPA for persistence. Everything works fine in Glassfish but now I am trying to port it to WebLogic 12c and having issues setting up Derby database in WLS in embedded mode. The derby setup in WLS asks for Host/port and does not have the embedded mode option. Any help is appreciated.
    -Prantor

    I'm pretty sure this is the wrong forum. "Oracle Application Server" is iAS, not WebLogic.

  • How to use custom IPs in Embedded Linux

    Hello,
    I have designed and implemented two IP cores in Vivado.
    The first is a HLS implemented block (realized with the Vivado HLS video libraries(, with AXI interfaces and connected with a Video DMA. I should send cv::Mat objects to it somehow.
    The second one is a custom designed block which also uses streaming AXI interfaces which is connected with a normal AXI DMA.
    In both cases, I know how to interact with those units on a bare-metal application, using the BSP provided drivers. But, when it comes to Linux/Petalinux? Where do I find headers and functions like the one provided automatically by the standalone (bare-metal) os?
    Thanks a lot for your help.
    Giorgio

    giorgio.lopez wrote:
    The first is a HLS implemented block (realized with the Vivado HLS video libraries(, with AXI interfaces and connected with a Video DMA. I should send cv::Mat objects to it somehow.
    Compile the VDMA kernel module, which you can find right there
    https://github.com/Xilinx/linux-xlnx/tree/master/drivers/dma/xilinx
    then you need to write your own module to map to this new dma channel, this has been mentionned on several topics.
    Finally you write a userspace program which opens this channel and send some data over it.
    giorgio.lopez wrote:
    The second one is a custom designed block which also uses streaming AXI interfaces which is connected with a normal AXI DMA.
    basically the same thing, I have never used VDMA but I think it handles 2D data compared to regular DMA module.
    giorgio.lopez wrote:
    In both cases, I know how to interact with those units on a bare-metal application, using the BSP provided drivers.
    If you are not familiar with kernel modules, you need the hardware address to address the DMA module.
    In bare-metal you accessed those addresses directly, in Linux you address them through virtual addresses mapped to physical addresses.
    A DMA transaction is a little different than regular bus transactions in the sense it allows you not to address each word, the CPU sets the destination address, waits for an end of transfer interrupt, the DMA controller handles the transfer.
    giorgio.lopez wrote:
    Where do I find headers and functions like the one provided automatically by the standalone (bare-metal) os?
    you need to use the Linux kernel APIs, in this project you will need the DMA API basically
    #include <linux/dmaengine.h>
    #include <linux/dma-mapping.h>
    plus learn how to memory map and handle interrupts.
    Relevant Docs:
    The Bible - heavy but I seriously recommend reading it a couple of times to understand key chapters
    Linux DMA API
    Might be of some interests
    DMA from user space (Xilinx) - great
    DMA in kernel space (Xilinx) - great
     

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

  • How to use company users on existing ldap server as EP6.0 sp2  Users?

    Hi everybody
    Our company user data is on a  LDAP server we want to connect our EP6  UME  to this existing LDAP server so that existing company users can access  the Portal with their company id and password. What configuration we should do on the portal ?
    thanks and regards
    Rajendra

    Hi!
    Look at Admin Guide:
    Administration Guide->Portal Platform->System Administration->User Management Configuration->Configuration of Data Sources Used for User Management->Defining an LDAP Directory as a Data Source
    WBR, Lnk

  • How to use ARD to access a PC running Windows 7?

    Hi,
    I just want to VNC my PC in the office. How do I access Windows 7 from my Mac using ARD 3.6.1?
    My PC has RealVNC server running but they dont' seem to talk well with my Mac's ARD.

    Hi
    Try using this instead:
    http://www.microsoft.com/mac/downloads?pid=Mactopia_RDC&fid=68346E0D-44D3-4065-9 9BB-B664B27EE1F0#viewer
    Less hassle and far quicker.
    HTH?
    Tony

  • How to use JNI to access Active X control ?

    I need to access EFTPOS devices which provides Active X control inerface. Can I wrap Active X into dll so that I can use java native interface to access it ?
    Thanks.

    Hi Mahesh!
    If nobody has answered by now...maybe you managed alone. Anyway here are some notes that might be useful:
    The first thing to do is write your Java class with the native definitions. Now 'Build Project'.
    Of course you shouldn't forget to have a line with
    System.loadLibrary("your library name");Next you need to make the .h file. I think it's best to do this manually. In Netbeans you can add a line to the ant build script like:
    <target name="-post-jar">
           <javah destdir="c" class="--your class full name--" classpath="${dist.jar}" />
        </target>but I don't know how to do this in Eclipse. Instead you will have to run javah manually like:
    javah -classpath build -verbose  -d "c"   "--your class full name--"Do this from the main project directory.
    Now create a separate C/C++ project with the name you used in the loadLibrary above, and make C files to implement the functionality you need (copy the function headers from the .h file). You should include the .h file and tell Eclipse where to find it. In Eclipse 3.4 there are workspace relative paths - and you can use those to add the include file.
    The C project should be of type 'shared library'. On Windows it will produce a DLL.
    Once you have your C project compiling, go back to the Java project, and edit the project class path. Under the 'source' tab expand your project source, and you will see a line for 'Native library location'. Select that, click the 'edit' button and add the path of the DLL (just the directory).
    Now run or debug the Java program, and when you load the library, watch to make sure there is no exception.
    How to debug: There are ways of debugging both the Java and C at the same time, but it's probably easiest just to put logging statements in the C (printf's) to see what's going on there.

Maybe you are looking for

  • Creative Cloud Desktop konnte nicht installiert werden.

    Hallo, nachdem ich über die Google Suche, das "äußerst anwenderfreundliche" Supportsystem von Adobe immer nur auf den selben Workflow stoße, stelle ich hier mal meine Frage gesondert in der Hoffnung auf Hilfe. bei der Aktualisierung des CC-Desktops l

  • I cant download apps my od ID keeps comes up on I pad

    I chanched my ID on the IPad as I forgot the old password  but when I hit  to download a app the old user ID comes up and still asks for the old password How do I change that ?

  • Connecting the 1440x980 Powerbook to the TV, placement and cropping issues.

    The last Powerbook I owned was the 1.87ghz 15inch at 1280x800 resolution. When I connected the computer to TV via s-video, everything was smooth, perfectly cropped and looked fantastic. My new Powerbook, the last model Apple manufactured, has a 1440x

  • Master and Document Tables ...

    What relation do Master and Document tables have to parent and child tables? Should I declare all my created tables master and master details ?  how can I establish my relationships, foreign keys and primary keys with all these fields created by SAP

  • Burning DVD Plug-in?

    When I open iDVD 6 it says that that i don't have the plug-in to burn a DVD. What plug-in do I need? Where can I get it?