How to use the UME api in order to search the LDAP?

Hello,
I have an application which connects to the LDAP the portal is connecting to and search users according to a certain search criteria.
Here is the relevant piece of code:
Hashtable env = new Hashtable();
DirContext ctx = new InitialDirContext(env);
SearchControls controls = new SearchControls();
String filter = "firstName=..."
NamingEnumeration results = ctx.search("OU=OUs", filter, controls);
I would like to do this same search using the UME API.
Can someone please show me the equivalent code to it using the UME API?

Hi Roy,
you find the Configuration File you are using in your portal via System Administration -> System Configuration -> UM Configuration -> Data Sources
or in sapume.properties where you can find
##xml file that configures the persistence except roles
ume.persistence.data_source_configuration=YOUR_DATASOURCE_CONFIG_FILE.xml
In this xml file, there is the entry
<principal type="user">:
<principal type="user">
     <nameSpaces>
     <nameSpace name="com.sap.security.core.usermanagement">     
<attributes>                               
<attribute name="firstname" populateInitially="true"/><attribute name="displayname" populateInitially="true"/>               <attribute name="lastname" populateInitially="true"/>                    <attribute name="fax"/>                         <attribute name="email"/>                    <attribute name="title"/>               <attribute name="department"/>                    <attribute name="extensionAttribute2"/>               <attribute name="mobile"/>          <attribute name="telephone"/>                    <attribute name="streetaddress"/>               <attribute name="pobox"/>                    <attribute name="location"/>               <attribute name="telephoneShort"/>               </attributes>
     </nameSpace>
     <nameSpace name="com.sap.security.core.usermanagement.relation">
     <attributes>
     <attribute name="PRINCIPAL_RELATION_PARENT_ATTRIBUTE"/>
     </attributes>
     </nameSpace>
    </nameSpaces>
</principal>
According to your company LDAP attributes, you will have to extend the above attributes, telephoneShort for example is an attribute within our company.
The UME API does the rest.
All you have to do, is request the right attribute (in my above example it was the last name).
(Sorry for the format, but it is quite cumbersome to format it properly with the available editor   )
Kind regards,
Rebecca

Similar Messages

  • I was looking at the "Find my iPhone" app and I have a doubt regarding how it works for the macbook. In order to detect the location, the macbook should remain signed into iCloud. What if the thief logs out of iCloud. Would we able to locate the macbook?

    I was looking at the "Find my iPhone" app and I have a doubt regarding how it works for the macbook. In order to detect the location, the macbook should remain signed into iCloud. What if the person who has stolen my macbook logs out of iCloud.
    It should work fine for iPhone/iPad because we can enable "Restrictions" to prevent the user from signing out of iCloud. Do we have simialr settings for the macbook?
    Thanks,

    If it's not on the device list, it indicates that someone has gone to Find My iPhone on icloud.com and manually deleted it from the device list (as explained here: http://help.apple.com/icloud/#mmfc0eeddd), and it has not gone back online since (which would cause it to reappear on the device list; Find My iPhone has been turned of in settings on the device; the iClolud account has been deleted from the device; or the entire devices has been erased and restored.
    Unfortunately, there's no other way to track the phone other than through Find My iPhone.  You could call your carrier and see if they would blackliste it so at least the theif couldn't use it.

  • How do I "Launch" Adobe Reader in order to accept the Terms and Conditions in order to view PDF documents? ....Somers

    How do I "Launch" Adobe Reader in order to accept the Terms and Conditions in order to view PDF documents? ....Somers  I'm using a MAC with up to date software.

    Launching is just the normal word in Apple's word for "run an app". You can launch an app from the Applications folder, or in recent versions of Mac OS using the LaunchPad (rocket icon). You can't assume all your apps appear on the dock (bottom strip), it's only the ones Apple put there or you added.

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • How to use logger to send any output instead of the console?

    How to use logger to send any output instead of the console?

    How to use logger to send any output instead of the
    console?There are three commonly used logger inferfaces, the log4j, the java.util.loging and the Commons logging (which works with either.)
    You create a logger object, generally one for each class. Normally a private static variable points to it and it has a name equal to the FQN of the class.
    e.g.
    package org.widget;
    public class MyClass {
      private static   Logger log = Logger.getLogger("org.widget.MyClass");That's the java.uitil.Logger formula.
    Then there are method on the logger to call for various kinds of output. There' are different logging levels, priorities like SEVERE or DEBUG. When running the logs are configured to ignore messages of less than a set priority.
    You can also pass an Exception or Error to the logger which will log the stack trace.

  • How to use X-Fi Effects without selecting SB as the default sound device?

    How to use X-Fi Effects without selecting SB as the default sound device?Hello everyone,
    That's my situation.
    I have Sound Blaster X-Fi Go sound card and I am using SRS HD Audio Lab. SRS HD Audio Lab was selected as the default audio device and X-Fi effects (X-Fi CMSS-3d, Equalizer etc.) was working without any problem in Windows Xp. I have Windows 7 now and when i select SRS HD Audio Lab as the default device, Creative effects are not working, i must select "SB X-Fi Go!" to get them working but i can't use SRS HD Audio Lab in that case. SRS is also using SB X-Fi Go sound card as the output and volume adjustment on console launcher is working but something is disabling the effects. Any solutions to enable effects ?
    Thanks.

    If the kernel modules for your sound card and webcam both support the index parameter (use modinfo to find out) then adding
    options <name_of_preferred_card's_kernel_module> index=0
    options <name_of_second_card's_kernel_module> index=1
    to /etc/modprobe.d/modprobe.conf (or another modprobe conf file of your choice) should solve the problem.

  • I bought 2 of the same songs by mistake and they were the short version i was listening to in order to make sure that i was buying the correct record. how do i get a refund in order to buy the right song?

    I bought 2 of the same song by mistake and they were the short version i was listening to in order to make sure that I was buying the correct record. How do I get a refund in order to buy the right song?--

    All purchases are considered final, but you can try contacting iTunes support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to reset my remaining credits, in order to change the country of my account?

    how to reset my remaining credits, in order to change the country of my account?

    Click here and ask the iTunes Store staff to zero your account balance.
    (96253)

  • Somebody Knows how to use Roambi with Excel spreadsheet? I leed the process. Thanks

    Somebody Knows how to use Roambi with Excel spreadsheet? I leed the process for my IPAd

    I don't even know what it is, but have you explored the support available from the developer?  http://www.roambi.com/iphone-videos.html

  • [svn:osmf:] 14474: Adding a 'dispatchInitialChangeEvent' parameter to the ' watch' method in order to allow the initial change event from being dispatched, continued.

    Revision: 14474
    Revision: 14474
    Author:   [email protected]
    Date:     2010-02-28 23:53:31 -0800 (Sun, 28 Feb 2010)
    Log Message:
    Adding a 'dispatchInitialChangeEvent' parameter to the 'watch' method in order to allow the initial change event from being dispatched, continued.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataWatcher.as

    *Feedback*
    "Use the form below to send us your comments. We read all feedback carefully, but please note that we cannot respond to the comments you submit."
    http://www.apple.com/feedback/ipad.html
    We can complain about Apple's business decisions, but these discussions are user to user talk about possible solutions.
    Here are the places to report bugs:
    Get an account at
    http://developer.apple.com/  then submit a bug report to http://bugreporter.apple.com/
    Once on the bugreporter page,
       -- click on New icon
       -- See if you need to attach a log file or log files, clicking on Show instructions for gathering logs.  Scroll down to find the area or application that matches the problem.
       -- etc.

  • Error 0x80090318 and lots of other errorsI live in Iran  Yesterday i wanted to use itunes store for windows ; when i have open itunes it gives me the error 0x80090318 .  I have search the wb alot and i have check lots of Iranian and English website but ha

    I live in Iran
    Yesterday I wanted to use iTunes store for windows ; when i have open iTunes it gives me the error 0x80090318 .
    I have search the web alot and i have check lots of Iranian and English website but have not find any solution for
    this problem . Today I have find a software called "Hide my IP" i have opened up that
    when this software was opened , itunes have said "iTunes can't verify the identify of the server "init.itunes.apple.com"".
    then i have click on "continue" then iTunes said "iTunes could not connect to the iTunes Store. An unknown error occurred (310)."
    And theres a matter that i think that have a connection with this topic and thats , that when i want to go to the lots
    of websites like Google Yahoo! Mail and lots of other website my both browser ( FireFox and IE ) will say" This connection is untrusted " .
    I think the solution of my second problem is the solution of my first problem too !

    Tried all the rest on this site did not work for me
    Follow the link below & this one sorted it for me, it was a conflict in programs using Winsock & I got rid of my old program,
    Sorted.
    http://support.apple.com/kb/TS4123
    Tom Ireland

  • For some artists in my Music app on my I-phone, the songs do not appear when I search by the artist.  However, if I search the album name, all the songs show.  How do I get the songs to show under songs?

    For some artists in my Music app on my I-phone, the songs do not appear when I search by the artist.  However, if I search the album name, all the songs show.  How do I get the songs to show under songs?

    Hi Spam_Valley,
    I understand that you are having issues with your music displaying correctly. This may be an issues with the metadata stored within that song, and iTunes interpretation of that info.
    We may need to repair this. See the following resources for information:
    iTunes 10 for Windows: If song titles don’t appear correctly
    http://support.apple.com/kb/PH1468
    Fixing Incorrect Song or Album Listings in iTunes
    http://support.apple.com/kb/TA24677
    Thanks,
    Matt M.

  • HT201359 The new (09/19/13) Apple terms and conditions require one to click the AGREE button in order to update the apps;  however, there is no such button to click on.  Therefore I cannot update the apps on my iPhone.  Any ideas?

    The new (09/19/13) Apple terms and conditions require one to click the AGREE button in order to update the apps;  however, there is no such button to click on.  Therefore I cannot update the apps on my iPhone.  Any ideas?

    I was having the same problem, I had to go into iTunes on my laptop and agree to the terms there, and now i can download apps on my iPhone.

  • If I backed up with a newer version of iOS than the phone I am trying to backup to.. Is there any way to bypass the setup assistant in order to download the new iOS on the new phone then go back and restore from my old phone?

    if I backed up with a newer version of iOS than the phone I am trying to backup to.. Is there any way to bypass the setup assistant in order to download the new iOS on the new phone then go back and restore from my old phone?

    Try deleting your last backup by turning off iCloud Backup in Settings>iCloud>Storage & Backup, then tap Manage Storage, swipe across your backup and tap Delete, then go back and turn iCloud Backup back on again.  If it still won't back up, you may have an app that is preventing the backup from succeeding.  To locate which one, go to Settings>iCloud>Storage & Backup>Manage Storage, tap the name of your device under Backups, under Backup Options tap Show All Apps, then turn them all to Off (including camera roll) and try backing up again.  If it succeeds, then the camera roll and/or one of your apps is preventing the backup and you'll have to located by process of elimination. Turn the camera roll On and try backing up again.  If it succeeds, turn some of your apps to On and try backing up again.  If it succeeds again, turn some more apps to On then try again; repeat this process until it fails.  Eventually you'll be able to locate the problem app and exclude it from your backup.

  • [svn:osmf:] 14473: Adding a 'dispatchInitialChangeEvent' parameter to the ' watch' method in order to allow the initial change event from being dispatched.

    Revision: 14473
    Revision: 14473
    Author:   [email protected]
    Date:     2010-02-28 23:45:28 -0800 (Sun, 28 Feb 2010)
    Log Message:
    Adding a 'dispatchInitialChangeEvent' parameter to the 'watch' method in order to allow the initial change event from being dispatched.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/metadata/MetadataWatcher.as

    Perhaps you're not handling the "EndOfStreamEvent" correctly/at all, and thus not freeing up the socket to listen for the "NewReceiveStreamEvent " after the initial stream has ended...
    ?

Maybe you are looking for

  • New business scenario for reapir from customer and sending them to vendor.

    Hello team,                       We have a scenario where we need to configure in the system - We  recieve a material from my customer for repair.We need to send this to my vendor who will repair  it and send them back to Us. On this we  recieve rev

  • 23" HD Display (ADC/2004 model); Display Software Won't Load

    I have a Quicksilver 733Mhz w/OSX Tiger and just bought a used 23" HD Cinema Display (ADC) which works great. Yet as the menu bar appears very small I thought the Display S/W (v2.2.2) will not load--during license agreement/select destination load, t

  • IBooks Author, one book multiple languages!

    Hey, I am writing a book in iBooks author that will eventually be published in the US, Europe and Canada. It is a technical publication and while the content is identical regardless of where you are reading the book I want to be able to publish diffe

  • JMS queue problem integrating with TIBCO

    Hi all! We have several communication channels between XI 3.0 (SP21) and TIBCO via JMS queues. All of them are working fine except  one. This problem only happens in development and quality systems with SP21, production has SP17 and doesn't have this

  • EBP and SUS in Classic Scanerio !!!

    Hello SRM Experts, Is it possible to implement supplier enablement (SUS) with EBP in classic scenario.  As far as I know there are two scenario in which SUS can be implemented. 1. EBP-SUS Scenario :-Used for Procurement of Services and Indirect Mater