How can I change LDAT user attbibutes from my application ???

how can I change user attbibutes from my application!!!!
It always tries to create a new user but I need to change only values (like tel number!!!) of EXSISTING user!!!
I can not find any class/method to change the value of existing User attribute !!!
I am totally pissed off, please help!!!
I tried this :
AMUser user = amsc.getUser(userDN);
user.setStringAttribute("givenname", "test");

chek this out----
String lastName = req.getParameter("lastname");
storeUserAttributes("sn", lastName, userAttributeMap);
private void storeUserAttributes(String attribute, String value, Map userMap)
Set userSet = new HashSet();
userSet.add(value);
userMap.put(attribute, userSet);
AMPeopleContainer ampc = conn.getPeopleContainer(ouDN);
AMPeopleContainer ampc = conn.getPeopleContainer(ouDN);
if(ampc !=null)
/*My code for create users with Sun Portal Desktop service*/
Set serviceNamesSet = new HashSet();
Set userSet = new HashSet();
serviceNamesSet.add("SunPortalDesktopService");
userSet = ampc.createUsers(userMap1, serviceNamesSet);
this will help u
http://lokeshpant.blogspot.com

Similar Messages

  • I purchased a MacBook Pro from the original owner. How can I change registered user?

    I purchased a MacBook Pro from the original owner.  How can I change registered user?

    kirkbaby wrote:
    I purchased a MacBook Pro from the original owner.
    Did that Owner do this before you took delivery...
    Apple What to do before selling or giving away your Mac
    http://support.apple.com/kb/HT5189?viewlocale=en_US&locale=en_US
    Also See Thomas Reed's How to Prepare your Mac for sale

  • HT1766 HOW CAN I CHANGE MY BACKUP FOLDER FROM THE C DRIVE TO ANOTHER?????

    HOW CAN I CHANGE MY BACKUP FOLDER FROM THE C DRIVE TO ANOTHER????? because my c drive in the windows computer gets filled and i need to back up my ipod to a portable hard disk.. bt i dont know how to do it.. plz help

    you can't change the backup folder as far as I know, but you can choose to move backups. The information you need can be found in this article: http://support.apple.com/kb/ht4946
    Where iTunes backups are stored on your computer
    The folder where your backup data are stored varies depending on the computer's operating system.   Make sure the backup folder is included in your periodic data-backup routine.
    iTunes places the backup files in the following places:
    Mac:  ~/Library/Application Support/MobileSync/Backup/
    Windows XP:  \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Note: To quickly access the Application Data folder, click Start, and choose Run. Type %appdata% and click OK.
    Windows Vista and Windows 7:  \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Note: To quickly access the AppData folder, click Start. In the search bar, type %appdata% and press the Return key.
    Hope this helps
    Regards,
    Stijn

  • How do I change my user id from dsgence to dsgrence? Under the menu / title I keep getting where you would see a pop-up message title "know your rights" how do I get rid of that also?

    How do I change my user name from dsgence to dsgrence? Under the title bar where you would see pop-ups a message "know your right" keeps coming up every time I reboot?

    You can post a request in the contributors forum if you want to change the user name.
    *https://support.mozilla.org/en-US/forums/contributors
    Add [ATTN ADMIN] in front of the subject title to get the attention of a forum Administrator.
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/kb/Preferences+are+not+saved

  • How can I change the photo pixal from 1000 to 500?

    how can I change the photo pixal from 1000 to 500?

    File -> Export
    In the resulting dialogue use the Size option to set the maxium dimension to 500 pixles.
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.

  • How can i change the user on FaceTime? im trying to do this on a iMac

    how can i change the user on FaceTime? im trying to do this on a iMac

    I'm using an iMac with OSX 10.6.8.  The proceedure on your system is probably similar.
    Get the Facetime window up, and go to Facetime preferences.  Click on "account,"  you'll see a view account option that will prompt you to sign in with your Apple id and password.  From there you can make the changes that you want.

  • How can I change my user name on my iPhone 4S running )OS 8.1.1 so I can update my Apps

    How can I change my user name on my iPhone 4S running OS 8.1.1 so I can update my Apps?

    Hi jprohask63,
    Welcome to the Apple Support Communities!
    If you have applications that were originally downloaded from a different Apple ID, you would need to sign out of the current Apple ID and sign in to the Apple ID that was used originally to download the application. To complete this process please follow the instructions provided in the attached article. 
    iOS: Sign in with a different Apple ID in the iTunes Store, App Store, and iBooks Store - Apple Support
    Cheers,
    Joe 

  • How can I change my apple address from the US to the Philippines to make my credit card work?

    How can I change my apple address from the US to the Philippines to make my credit card work?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • I changed my land/region to Germany, but i want my app store in English language, how can i change it to English from German?

    I changed my land/region to Germany, but i want my app store in English language, how can i change it to English from German?
    plz help..

    You cannot.

  • HT201342 How can I change the USER of my i-cloud address? My 12 year old set up the e-mail account and used a silly user name (like: turtle!!). I would like to have an icloud e-mail account but under my own user name. The other /old name can be deleted?

    How can I change the USER name of my i-cloud e-mail account? It was set up by my son and he used a silly / embarrassing user name. I would like to change this name OR set up another i-cloud e-mail account under my own name / reference. Help?

    iCloud email addresses can't be changed or deleted, but you can set up an alias namethat he can use which will be linked to his current iCloud account and will receive email in the existing iCould inbox.  This guide explains how: http://support.apple.com/kb/PH2622.

  • How can I transfer two user names from an iMac to a new macbook?

    How can I transfer two user names from an iMac to a new macbook?
    got a new laptop and need to transfer two usernames to it, complete with all documents help?

    Assuming you haven't already set up a user, the easiest way is to use the Setup Assistant during first boot of the new Mac, with the two Macs connected by firewire.
    You'll be prompted to migrate from a choice of sources - choose "from another Mac", select the catagories of data you want to transfer and follow the instructions.
    More info here, in Pondini's FAQ; http://pondini.org/OSX/SetupAsst.html

  • How can I change the itunes store from Swiss to the Italian one on my ipad2 with new software ios6? Thanks

    How can I change the itunes store from Swiss to the Italian one on my ipad2 with new software ios6? Thanks

    See More Like This to the right of this post!

  • How can I change an user username

    Hi,
    Please anyone tell me how can I change an user username. I need to do that because I have a .dmp with the same username as the one I already have in my database and I need to use the both.
    Thank you

    You can just create your new user as required, then do an import with the parameters
    fromuser=olduser touser=newuser
    plus whatever other parameters you require.
    TTFN
    John

  • Seen this question before but no answer, how can I change my email address from all caps into a more proper upper-lower style.

    Seen this question before but no answer, how can I change my email address from all caps into a more proper upper-lower style.

    You should be able to change your e-mail address from your provider ... then edit it to meet the Apple requirements.   Unfortunately you've given us no profile details so we can't tell what device you have.

  • How can i change My app store from USA To Sweden?

    How can i change My app store from USA To Sweden?

    If you are getting an 'account not in this country' message then try going to the bottom of the Featured tab in the App Store app on your iPad and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section and select Sweden.

Maybe you are looking for

  • Linking to a page with a URL hyperlink

    Is it possible to create a hyperlink that links to another page in the same document using the "Link To: URL" option in the New Hyperlink window? Normally I'd just use the "Link to: Page" option but I want to upload a bunch of documents to Issuu and

  • Two SWING apps show different bahaviour

    We have developed two SWING applications. In both of them we save information by writing to disk using UTF-8 format. When the files are read back and displayed using JTextField then one of the applications is able to display the (Bengali) characters

  • Printing all docs in windows

    I'd like to print all generated doc-files under windows (which is 324 files in 32 folders). I would find a way in linux like "find ./ -name *.html -exec lpr {} \;" but how may I do this with windows 2000? No - I dont't have this MIF - Framework.

  • SUN Access Manager session attributes

    I'm trying to find out which session attributes that are available for a Policy Agent out of the box from Access Manager 7.1 The AMAgent.properties file has a property: com.sun.am.policy.agents.config.session.attribute.map= But the question is which

  • TS3276 ¿Tienen soporte en español? Hay un problema con mi cuenta ".me". Algunos mensajes no me entran

    No recibo todos los email que me mandan. No entran en la cuenta de Icloud y tampoco en Mail de mi Mac