ProxiedAuthorizationControl : can't find anywhere!

Hi.
I have to connect to SunOne LDAP. I've already checked it supports ProxiedAuthorizationControl (OID = "2.16.840.1.113730.3.4.18"). In JDK 1.6 there is no class implementig this control. In some old posts I found references to com.sun.jndi.ldap.ctl.ProxiedAuthorizationControl and relevant examples. Also downloaded ldapbp.zip, but it does not include this class.
So this class seems to have disappeared! Anybody knows how to connect to SunOne as proxied user, or how to find ProxiedAuthorizationControl class?
Thanks.

Here's the solution, thanks to Sun's support. Following is a code example, should anybody incur on the same problem.
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://myldap:33389/");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "uid=userwithproxyauth,ou=users,dc=mygroup,dc=eu");
env.put(Context.SECURITY_CREDENTIALS, "mypassword");
// Bind to LDAP - bind user has proxy rights
LdapContext ldapCtx = new InitialLdapContext(env, null);
// Set proxied user
String dn = "uid=C010000,ou=people,dc=mygroup,dc=eu";
ldapCtx.setRequestControls(new Control[]{new BasicControl("2.16.840.1.113730.3.4.18", true, ("dn: " + dn).getBytes())});
// The following operation is performed acting as C010000 user
ModificationItem[] mods = new ModificationItem[1];
mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("userpassword", "newpassword"));
System.out.println("DEBUG: setting new password: newpassword");
ldapCtx.modifyAttributes(dn, mods);
That's all folks!

Similar Messages

  • I am now using the free 1 month CC trial. I got a free one year licence with a camera. I have a product key 24 characters long with numbers and letters. I can't find anywhere to put this key to activate the account? Using a PC, windows 8.

    I am now using the free 1 month CC trial. I got a free one year licence with a camera. I have a product key 24 characters long with numbers and letters. I can't find anywhere to put this key to activate the account? Using a PC, windows 8.

    Redemption Code Help
    Mylenium

  • Hi folks, can someone help me with my redemption code? have a creative cloud id made last week. but in order to install my products I have a redemption code needed but that I can't find anywhere. can someone help me??? Thank you

    Hi folks, can someone help me with my redemption code?
    have a creative cloud id made last week.
    but in order to install my products I have a redemption code needed but that I can't find anywhere. can someone help me???
    Thank you

    I have a fully companies annual subscription of 69.99 a month.
    but I can only download the 30-day trial versions.
    and if I want to put on them completely firedamp should I enter a redemption code. could it be that the code later emailed word?
    Met vriendelijke groet,
    Dave Dros
    Van: "hans-g." <[email protected]<mailto:[email protected]>>
    Beantwoorden - Aan: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Datum: dinsdag 21 oktober 2014 10:03
    Aan: iMac <[email protected]<mailto:[email protected]>>
    Onderwerp:  Hi folks, can someone help me with my redemption code? have a creative cloud id made last week. but in order to install my products I have a redemption code needed but that I can't find anywhere. can someone help me??? Thank you
    Hi folks, can someone help me with my redemption code? have a creative cloud id made last week. but in order to install my products I have a redemption code needed but that I can't find anywhere. can someone help me??? Thank you
    created by hans-g.<https://forums.adobe.com/people/hans-g.> in Adobe Creative Cloud - View the full discussion<https://forums.adobe.com/message/6850359#6850359>

  • HT1420 I can't find anywhere on iTunes that it will let me authorize my computer...help!

    I can't find anywhere on iTunes that it will let me authorize my computer...help!

    I had this problem too.if you look at the top left of your page when you are in your itunes account there is a little square.click on this and you have the 'store' option avaaiable to you.

  • I can't find anywhere MacBook air A1237 1.8GHz Logic board 820-2179-C help, please I need it

    I can't find anywhere MacBook air A1237 1.8GHz Logic board 820-2179-C - please help me

    http://www.ifixit.com/MacBook-Parts/MacBook-Air-1-8-GHz-Original-Logic-Board-/IF 188-007?utm_source=ifixit_cart&utm_medium=cart_product_link&utm_content=product_ list
    If you're into DIY projects I recommend bookmarking IFixIt.com as more often then not they'll have the part you're looking for on an Apple computer.

  • I've purchased items on my phone which I had on my laptop but didn't get a chance to download on to my iPod, now I can't find anywhere. Can't buy them again because it says i've already purchased them. Any help?

    I've purchased items on my phone which I had on my laptop but didn't get a chance to download on to my iPod, now I can't find anywhere. Can't buy them again because it says i've already purchased them. Any help?

    I've only been able to get the coaching runs to work on my iPod Nano. They don't work on my iPod Touch or my iPhone.

  • I bought Steve brookstien album heart and soul but I can't find anywhere or on iTunes

    I bought a Steve brookstien album heart and soul 4 years ago but I can't find it on iTunes anymore?

    If you mean that it's no longer in your country's store then record companies/rights-holders occasionally remove their items from the store - if they have removed it then you won't be able to redownload it (unless they put it back in the store). Do you have a copy of it anywhere e.g. on an external backup drive ?

  • Where do you set drawing mode in preferences? Can't find anywhere

    I read Chris' response to the issue of the screen going dark when using tools. He said to set the drawing mode to basic in preferences. I can't find an option anywhere in preferences to do this. Where do I go to accomplish this?

    Preferences -> Performance -> GPU section, click the Advanced button.
    But you're still better off updating the video card driver from the GPU maker's website to work around the Win8 GPU bug.

  • How can I change my payment details on my iphone5 I can not find anywhere with any billing information to chaange my card type.

    How do i find the billing information? I want to change my card details and can not find it anywhere on the iphone 5?! help!

    iTunes Store: Changing your payment information
    http://support.apple.com/kb/HT1918
    iTunes Store Accepted Forms of Payment
    http://support.apple.com/kb/HT5552
    Also, I believe you'll have to use the French app store.
     Cheers, Tom

  • How do I set the default page when I select "+" for a new tab? Right now it defaults to Yahoo search and I want to set it to my Speed Dial page. I did have the default page set to Speed Dial but I can't find anywhere how I did it in the past.

    You can set the homepage for opening tabs, but I can't find the setting for designating what page opens when I hit the + button on tabs.
    This is the page that loads:
    http://search.yahoo.com/?fr=freeze&type=W3i_NA,132,3_6,Tab%20Search,20100937,6693,0,16,0
    How did Yahoo embed this in the Tab settings?

    Firefox '''does not''' come with a setting for a page that opens in a new Tab, the default installation always opens a blank page when you open a new Tab. Many extensions include a feature to open their choice of a webpage when you open a new tab, as does the Speed Dial extension which uses a "local page" internal to Firefox.
    You need to figure out which extension has taken over that preference that Speed Dial needs to use. You didn't bother providing a Troubleshooting Information... listing as requested when you asked this question, but I can guess your problem is related wither a Yahoo extension or a Conduit / OurToolbar extension - as there is a plugin listed = Package Installer & Install Conduit.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • In the settings, I see the number of tabs, bookmarks and history. Everything is working great, except, where do I see my history? I can't find anywhere in the app that displays this.. Please advise me on what I need to do. Thanks.

    I can not find my history pages in this firefox home app.

    You can't browse your history directly like you can in Firefox but you can search for items in your history in the search tab. More here: https://support.mozilla.com/en-US/kb/How+to+use+Firefox+Home

  • Hi i purchased audio books apr.2011, oct 2011. i can't find anywhere

    Hi I purchased audio books
    apr 2011, and ooct 2011
    I cant find anywhere, i want retreave please

    Audiobooks are a one-time only download from the store. You've checked your Mac's drive for them, and they aren't on your backup copies of your downloads ?

  • Unable to download using Vista; FF goes to run or save; I've selected both; download goes thru "downloading" and then disappears; can't find anywhere; have tried this many, many times on two identical computer setups.

    Have tried many times to download both Firefox and Thunderbird on two 2-year old, rarely used, identical computers, both using Vista. (I downloaded both successfully on an old computer using XP.) The program goes thru the downloading process; alternately I've told it to "run", "save", "save to desktop", "save to my documents folder on desktop." It disappears when through downloading. I've checked in these folders plus temporary folder as found through "tools/internet options. I've tried to find these downloads by using "run" and using every word I can think of to help find them (temporary folder/or User/my name/firefox 3.6.9.ext and others. Get the message can't be found. Any help sincerely appreciated. Thank you. Jim

    A: Why won't AirPort Utility find my Netgear Router?
    AirPort Utility works only with an Apple router, as does the utility for a Netgear work only with a Netgear router.
    B: Why won't AirPort utility find my AirPort Express?
    Any of 3-4 common reasons. We'll have to work on troubleshooting that.
    C: Why, on the two occasions the AP Utility did find the APE, did it not give me the option anywhere to set it up as an EXTENDER to the current network?
    Apple designed the wireless "extend" feature on their routers to only work with other Apple routers.
    D: Is there any other way to add the APE to my network as desired without using AP Utility?
    No
    Not sure how you want to proceed at this point. It might be possible to use the AirPort Express to extend the Netgear network if you connect it using a permanent, wired Ethernet cable connection back to the Netgear router.
    If you cannot run the Ethernet cable, your best bet by far is to use another Netgear extender or repeater, which would likely be compatible with your Netgear router.

  • Need Plug-In: x-mplayer2, can't find anywhere!

    Although the Safari page gives me a link for Firefox for Windows, I'm - obviously - using Safari on windows and when trying to load video highlights, I get the following error:
    MIME: application/x-mplayer2
    Basically needed to run my video, now, it directs me towards Windows and their site but nowt here either....this is bugging me endlessly because I have to use Explorer then and it's SO slow.
    Please help!
    Thank You

    Hiya,
    I'm not too familiar with where Windows stores Internet Plugins but the plugin installer you ran earlier should have placed a 'np-mswmp.dll' file somewhere. Have a search on your hard drive for it and assuming you find it, move it to this folder:
    C:\Program Files\Safari\Plugins
    Quit Safari if it's running and relaunch it to pick up the plugin. If it's still not working, can you check the Help menu > Installed Plug-ins to see if it is actually listed there or not.
    Good luck this afty with the blades Leeds made hard work of it yesterday...

  • I just downloaded itunes to my hp envy x2 windows 8.  Can't find anywhere.  No shortcut on desktop.  No app.

    I downloaded itunes to my hp envy x2, windows 8.  Cannot find it anywhere.  Does not show up under downloads. 
    Need to sync iPad 2 and iPod 4th gen.  How do I find downloaded itunes on laptop?

    I have been having exactly the same problem with my Fujitsu vista running desktop and my new Toshiba running windows 8

Maybe you are looking for