Use wildcard in LDAP search with filter and filter args fails

Hi,
I'm writing a function that receives the search filter and the filter arguments and returns the attributes of the found entries but I'm having problems when I pass the wildcard '*' as argument. For example I'm looking for cn=* but instead it looks for cn=\2a (searches for cn containing *).
I'm using the InitialLdapContext function:
public NamingEnumeration<SearchResult> search(String name,
String filterExpr,
Object[] filterArgs,
SearchControls cons)
throws NamingException
The problem occurs in the class com.sun.jndi.toolkit.dir.SearchFilter format method where it replaces the filter place holders with the filter arguments. There it calls getEncodedStringRep to the arguments and that function returns the wildcard '*' escaped.
Is it supposed to behave like that? I don't have problems using the search function search(String name, String filterExpr,Object[] filterArgs, SearchControls cons) but I'd like to be able to separate the filter and the filter arguments.

That's a forum artefact, as the boldface should make obvious.
My point is that you should specify the wildcard in the filter string, not as an argument. See http://download.oracle.com/javase/6/docs/api/javax/naming/directory/DirContext.html#search(javax.naming.Name,%20java.lang.String, java.lang.Object[],%20javax.naming.directory.SearchControls). (The forum will break that link too.) The argument asterisk is being escaped in accordance with what it says there. Or maybe you can escape it yourself as an argument as \0x2a.

Similar Messages

  • Mail wants to use the restricted Service "Search With Google."

    This is the response/error I see when I try to do a Google search from an email message - "Mail wants to use the restricted Service “Search With Google.”"

    Interesting - I just created a new user account I named "Test", and tried "Search With Google" in Notes and it worked fine in this new account.  Without any additional change, I went back into my normal user account, and tried to use "Search with Google" on the highlighted word, and it pulled up the Google search fine as well.  No reason I can think of that these actions would have resolved the problem - e.g., either the creation of the "Test" account, or switching between this "Test" account and my normal account.  Possibly creating new account caused a cleanup of the Safari preferences to point to version 6.0.(essentially reset the default)
    Would be curious if droow007 solution works for others.  Definitely quicker than the route I went :~)

  • How do I use my apple bluetooth keyboard with touch and will I still be able to use it with my ipad?

    How do I use my apple bluetooth keyboard with touch and will I still be able to use it with my ipad?

    iPod touch User Guide (For iOS 4.3 Software)

  • Is there any way to darken the gridlines in iCal?  I'm using it on a Macbook with Lion and find it difficult to see the gridlines on the iCal display.

    Is there any way to darken the gridlines in iCal?  I'm using it on a Macbook with Lion and find it difficult to see the gridlines on the iCal display.

    ''Problem:'' For whatever reason, NoScript is stopping Runescape Community Toolbar from working properly which freezes your first Firefox window.
    ''Fix:'' Uninstall the toolbar. Disable NoScript. Install the toolbar. Add your RS account to it and make sure it works, then Enable NoScript again.
    EDIT: Posted a fix earlier that was wrong. Corrected to the right one, sorry ^_^ Answer was on Runescape Forums.

  • HT204409 I am unable to connect to my Wi-Fi at home, but am able to connect at work.  Using my new iPad 4G with cellular and a Motorola SBG6580.  My iPad 3G Wi-Fi only connects just fine; the 4G just "spins the gear."

    I am unable to connect to my Wi-Fi at home, but am able to connect at work.  Using my new iPad 4G with cellular and a Motorola SBG6580.  My iPad 3G Wi-Fi only connects just fine; the 4G just "spins the gear."

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Can anyone help me plz.  My ipad will not charge.  I am using the cords that came with it and it still wont charge

    Can anyone please help me.  I have had my ipad2 for about 5 months and it has worked fine.  I am now having issues charging it.  I am using the cords that came with it and the outlet that I have used to charge it in the past, but when plugged in it is recconoigzed, but states not charging.  I have made sure all my updates are current and they are.  Does anyone have any suggestions or helful advice that my help.  Thanks in advance.

    Are you plugging it into a pc? If so it will not charge the iPad as there is not enough power try the back USB ports, may work.
    If it isn't plugged into a pc and plugged into your socket could be faulty socket adapter.

  • Anybody can help me understand if the Ipads becomes ready to be used in all world regions with 3G and or 4G infrastructure? I mean, are all of them released or when I buy one in the US to be used in Argentina I need to ask for a released one, less cheaper

    anybody can help me understand if the Ipads becomes ready to be used in all world regions with 3G and or 4G infrastructure? I mean, are all of them released or when I buy one in the US to be used in Argentina I need to ask for a released one, with add costs?

    There are two versions of the current iPad, the WiFi only (which will work anywhere in the world, but only connect to WiFi networks) and the 3G/4G model. The latter will connect to 3G networks worldwide, as I understand it, but the only 4G networks it can connect to are in the US and Canada.

  • I am using Sansung Galaxy S III with Verizon and when i am calling out to somebody they recieving my call as RESTRICTED CALL...

    I am using Sansung Galaxy S III with Verizon and when i am calling out to somebody they recieving my call as RESTRICTED CALL...
    Let me know, please, how can I change settings in my phone to clear option of restricted out going calls...
    Thank's a lot

        Hi there Altercc!
    We definitely want others to know when you're calling them. This could be fixed two ways.
    First we have an option called Share Name ID available via vzw.com: http://bit.ly/SsGi9e
    We also have the opportunity to Block your Caller ID from displaying. This is a feature we can easily remove if it's active.
    Thanks,
    MelissaM_VZW
    Follow us on Twitter @vzwsupport

  • Am having intermittent difficulty rendering in FCE. Using the Sequence menu sometimes delivers results and Command R fails every time. Most frustrating. Any thoughts from anyone? Thanks.

    Am having intermittent difficulty rendering in FCE. Using the Sequence menu sometimes delivers results and Command R fails every time. Most frustrating. Any thoughts from anyone? Thanks.

    Michael,
    There is a forum for Final Cut Express I'd recommend re-posting there.
    Roger

  • Does Oracle Support Searches with Sentence and Paragraph Proximity?

    I have successfully used SENTENCE and PARAGRAPH special groups and the WITHIN operator to search for terms contained within the same sentence and/or paragraph. However, I also need to search for terms that are located within a variable number of sentences or paragraphs of each other. For example, I could search for the term 'dog' and the 'cat' located within 3 sentences of each other. Is this possible in Oracle Text? I have searched the documentation and I can only find the 'near' operator for searching based on word proximity. I cannot find any mention of sentence or paragraph proximity. This is a very important requirement for the system.

    Good question. We are trying to duplicate the functionality of an existing system. It was written into the requirements for the new system. I've asked how important this functionality is to the actual users, but we don't have the answer to that question yet. Knowing that Oracle Text does not support this out of the box, we will certainly need to evaluate the importance of this feature and determine whether it warrants some custom development or switching to another search technology.
    I've thought about using regular expressions to implement this feature, but I'm guessing that the performance wouldn't be that great and it wouldn't integrate well with other Oracle Text searches. Has anyone else used regular expressions combined with Oracle Text to implement more sophisticated searching capabilities?

  • Issues with using 6.0Gb/s drive with W520 and Windows 7

    I ordered 2 ThinkPad 500GB 7200RPM SATA 3.0GB/s 7mm 4K hard drives and was instead shipped 2 6.0GB/s drives. Even though the outside of the box has the correct configuration that I ordered. I installed the drive in the W520 and tried to run my company's OS installation script. This script encrypts the hard drive then does the installation of the OS, apps, Windows 7 drivers, updates SP1, etc. I got the BSOD several times during the installation, It took two times before I got the completed install. When I login I get BSOD plus many apati errors and the system hangs all kinds of ways. It's usually the display that goes back to an empty wallpaper but the mouse works and there are no icons on the desktop. I can startup and go into safe mode with networking and never have a problem. I called Lenovo Tech support and they say there are no special drivers needed for the 6.0GB/s type of drive and encryption does not matter. I have gone through Device Manager and ran the update driver option on all ATAPI controllers, disk drivers, Bus Host Controllers, chipset, etc. There are no errors in Device Manager. My thought is the 6.0GB/s is causing some conflict with something, perhaps refresh rate, disk read/writes, page file, I/O, memory, etc. Just don't know. Have searched the web and do not get much help. There is some talk about cables for 6.0GB/s but not much info.
    Any ideas? Thank you all.

    I too have a W520. I have a SATA III hard drive in my primary bay - no problems. I have booted off a SATA III SSD in the Ultrabay, also no problem. I don't believe your troubles are SATA III related.

  • Using iPads @ configurator in school with school AND personal iTunes accounts

    Hi all,
    My kids school has introduced a managed ipad program which includes most parents purchasing the iPads but still having them managed by the school.
    As we own these devices the kids take them home every day
    iPads are ipad 3 and above
    The school has setup configurator for mass deployments/ updates etc. and have the one iTunes account for all using vpp
    With the initial deployment we were able to install our own personal apps using our own personal iTunes account to install and update ourselves.
    There was no expectation that the school would manage these personally acquired accounts.
    In the last week the school has removed the App Store front the iPads effectively removing any ability we have to install our own personal apps.
    I have spoken with them and their stance is that it is too hard to manage updates because occasionally the iPads come back to the school logged in with the personal iTunes account
    Can anyone out there please share any experience/solution that they may have which will allow the iPads to be managed through configurator whilst still allowing us to install our personal apps?
    The school have said they will return our rights if a solution can be found.
    I am very surprised that this is not possible and seek the assistance of the community.
    I am based in Australia
    Thanks in advance

    Hi Rob,
    If the school is using Apple Configurator and have set the iPads to "Supervised" mode, it will prevent anyone from using their personal computers and iTunes to install apps or copy other data to/from the iPads to the personal computer. If the school has restricted the App Store on the iPad with a configuration profile, then they've made it impossible for you as a parent to install apps. (I'm surprised they did this being that these are personally owned iPads!)
    In our school district, we are set up with a "Layered Ownership" model that allow us to buy and install apps that were purchased by the district, as well as allow the kids to do the same with their own personal Apple IDs. We don't have the App Store locked down on the iPads. The kids or parents can log in to the App Store on the iPads and install whatever they want. Even if they are logged in with their own personal Apple ID, we can still install apps that we as a district purchase using an MDM.
    All of the app updates that we do for the apps that we have purchased are done though an MDM (mobile device management) server. There are many MDMs out there and perhaps your kid's school district could look in to using an MDM to manage their app distribution. There are a few different ways that MDMs have to distribute apps so your kid's school would want to talk to an MDM provider to see how they can help in your situation. We've been using an MDM in our school district for a year now and its been working great.
    Here's a list of MDMs that you could send to your kid's school:
    http://www.enterpriseios.com/wiki/Comparison_MDM_Providers
    Hope this helps. Good luck to you!
    ~Joe

  • Can DME, EDI be used to build a form(with pictures and logos)?

    Hi All
    I have a question on DME,Electronic transmission and forms(sapscripts,smartforms etc).
    There is a program rfumsv00(advance tax return). Surprisingly this program doesnot give the option to output the data into a "form"(government specified format with logos, pictures etc).
    (The program gives this facility to output to a form only for Germany and Belgium.)
    Now i want to get the output of this program into a "format as prescribed by the government of India". How do i do this?
    The program has facility for "electronic transmission" and DME". Can we use this to get a output similar to a "form"?If yes...how?
    Message was edited by:
            kumar kumar

    Hi Anji
    Thank you(I am on the verge of awaring you points).
    But one last clarification. You have mentioned that i can design a FORM and then make the program call the form. But this would involve making a Z program.
    I want to know if instead of the form, I can use the option "electronic return" or "DME"?Maybe the  "electronic return" or "DME" already has pre defined forms (with pictures and logos) and if not will SAP allow me to define the form in DME  or electronic return and make the standard program to use that? This way i dont have to do a Z development. Can you help me?
    Message was edited by:
            kumar kumar

  • Uses for the Action Property with SQL and Oracle DB Adapters

    This thread is a complement to the Wiki Article
    BizTalk: Streamlining WCF SQL and Oracle Messaging-Only and Other Patterns
    The question.  In what circumstances is explicitly setting the Action value with the WCF SQL and Oracle DB bindings useful or beneficial. 
    A complimentary question.  Is it even possible to set the Action value to anything other than exactly what is required by the Message.
    I ask because of three very specific behaviors of the bindings themselves:
    The binding enforces a match between the Action and the Message, therefore...
    There is a one-to-one relationship between the Message and Action, but...
    The binding is able to correctly derive and perform the requested operation with the unspecific CompositeOperation.
    For clarity, I understand how to set the Action. I. understand what the Action represents in the SOAP scheme. I understand how Action can be used as an abstraction for SOAP operations.
    Thoughts?

    Do you have any good suggestion to learn how to use action property with SQL and Oracle DB adapters?  I learn a lot from your replies for years in BizTalk forum. :)

  • Can I use Oracle 11g Developer tools with 10G and XE

    Hi, I want to use Oracle 11g ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio with 10g and Xe . Will there be any issues. I want to do so because I am not able to see Oracle Database project in Visual Studio when I install Oracle 10 g developer tools wherein I see that in Oracle 11g developer tools. Please suggest.

    No there are no issues. Just be sure to install ODT in a separate location than where XE is installed.

Maybe you are looking for