Forcing an exact string match in searches

Is there a way of using the Case Exact String and Case Ignore String plugins so I can ensure that the iPlanet directory server only returns exact matches to an LDAP client.
e.g.the difference in
ldapsearch "cn=Abc"
ldapsearch "cn=ABC"
I want to find only "ABC" and NOT Abc or abc or aBc and so on..

You can accomplish this using extensible matching rules.
By default, the cn attribute is not case-sensitive. You can search for a case-sensitive cn value with a search filter like:
cn:2.5.3.15:=ABC
This will use the 2.5.3.15 (Case Exact Match) matching rule on the cn attribute. Note that this search will not be indexed, however, and will take longer than a normal cn search for an exact value.
You can find more information on extensible matching in RFC 2254 (http://www.ietf.org/rfc/rfc2254.txt).

Similar Messages

  • How can I search for an exact string match in my emails?

    I was looking for an old email that I had about Re-Animator The Musical. So, in the search bar in the upper right corner of the Thunderbird window, I typed "re-animator". I got 59 hits, and the message that actually contained the string "re-animator" was 27th, when sorted by relevance. All of the other hits were emails which contained the word "animal" or "animals", which to me has nothing to do with "re-animator". I'm surprised that those were considered hits at all, much less that they were considered more relevant than the one message which actually contained the desired string.
    I actually tried three different searches:
    reanimator
    re-animator
    "re-animator"
    (i. e. the first two were without quotes and the third was with quotes). All three of these variations had the same problem, though, that messages containing "animal" were ranked before the message containing "re-animator".
    The desired message contained the word "Re-Animator" (with that capitalization and hyphenation), and also contained "reanimatorthemusical" as part of a URL that was mentioned in the message. So, I would have expected both the search with the hyphen and the search without the hyphen to have been good hits for this message.
    My question is: How can I tell Thunderbird to search for messages that literally contain the string I ask for, and not get "creative" with the matches, as it seems to be doing for some reason?
    (I'm using Thunderbird 31.3.0 on Mac OS X 10.9.5.)

    No, searching for:
    "Animator" musical
    still has the exact same problem: it still wants to find "animal" instead of "animator". Why?
    Yes, I had already read the support article you linked to, but I hadn't found anything in it about why Thunderbird would prefer "animal" over "animator", or how to disable this misfeature. Is there no better documentation for the search bar than that?
    (And the search for "Animator The Musical" didn't find my message, simply because my message didn't contain that exact string. It contained "I am on a waiting list for some musical tickets for Sunday, but I haven't heard back yet. It is a preview of The Re-Animator. ( http://www.reanimatorthemusical.com/ )." The search for "Animator The Musical" only had a single hit, your message in which you suggest searching for that.)

  • Is there a way of making Search be for exact string match?

    When I generate a help system (RoboHelp 7), and search on,
    say, "contact type", the system returns a list of topic links of
    topics that contain the word "contact" or the word "type". What I'd
    like is for it to do as PDF search does and return only topics that
    contain the complete string "contact type".
    I can't find a setting for doing this among the RoboHelp HTML
    options. Is it possible to do just with a setting? Or would one
    have to do some customizing involving utility calls or something
    like that?

    I do not know how this works for WebHelp, but for HTMLHelp,
    searching for phrases is simple:
    Use single or double quotes or round brackets:
    'find this'
    "find this"
    (find this)

  • Exact String match when calling a recordset

    I have a CategoryID column, and a Cats column.
    The main catefory for that products is on CategortID, but the in the Cats column is a string of other categories that the item is listed in.
    The problem is that if the search is for category id 94, and the Cats column includes 194 the item gets shown.
    How so I create a recordset that only returns items that match exactly out of the sting.
    I am currently using
    WHERE (Categoryid = colname or (INSTR(Cats, colname) >= 1))
    Here is an example
    Item CategoryID = 139
    Cats = 187, 136, 194
    But searching for category id displays this item!
    Any help appreciated

    Instead of INSTR(), try using FIND_IN_SET()
    WHERE (Categoryid = colname or (FIND_IN_SET(Cats, colname) >= 1))
    FIND_IN_SET() is meant to be for strings, so it might not work. But it does look for a complete match in a comma-separated list. Make sure there is no space between the comma and number when stored.

  • Exact string search

    i was wondering if there was a way to do an exact string search in a document.
    If i have a document that has punctuation i want to be able to find the document only if i query whith an exact string match, including stopwords and punctuations.
    if the query is
    select *
    from documents1
    where contains(OBJECT_VALUE,'{hello, world}') > 0
    I want only to return the documents that have exactly "hello, world" whith the comma included.
    If i add the comma to printjoins, it would work, But when i query for only "hello" it wont match "hello, world"
    basicaly im looking for something that does a normal search but then check if the exact string is in the match area.

    Try this
    select substr(&P, (INSTR(&P, CHR('32'), 1))+1, (INSTR(&P, CHR('32'), 1)))
    from dual
    &p is a variable
    I am sure this will help you in any of case
    chr(32) will return space, If you have any other thing except space then you just replace 32 with that ascii code. Such as for
    1(we)2 then query will be
    select substr(&P, (INSTR(&P, CHR('40'), 1))+1, (INSTR(&P, CHR('41'), 1)))
    from dual
    Try it and tell is it working fine

  • FQL query text to search for exact string

    Hi
    we are using SharePoint 2010 with FAST search...
    I'd like to be able to search for this exact string that contains parentheses...  "(ABC)"
    I thought it would be:
    ManagedProperyName:"(ABC)"
    this returns results with just ABC ... it ignores the parentheses... i need to only show documents with "(ABC)"

    For exact query you can use  equals. For example MPName:equals("<term or phrase>")
    However, in your case the parenthesis is considered a special characters which are stripped off during document processing and at query time.

  • Bing Search API exact phrase match not working?

    Dear Microsoft support,
    I have recently subscribed to the Bing Web Search API and now found a problem with exact phrase match.
    When searching for "engineering it has over medical", encoded as %27%22engineering%20it%20has%20over%20medical%22%27 I get two results back from you - unfortunately on closer inspection neither one of them contains the phrase I searched for.
    I could understand less results than actually exist due to a limited index, but this seems to be a bug.
    Please check and let me know how to resolve this.
    Thank you very much!
      Johannes

    Hi,
    Thanks for your posting.
    I try to search for "engineering it has over medical" in Bing Search API (Web), here is the expressed query url: https://api.datamarket.azure.com/Bing/Search/v1/Web?Query=%27engineering%20it%20has%20over%20medical%27,
    it gives me a lot of data, so I don't think this is a bug, if I misunderstand, please feel free to let me know, if it proved to be a bug, I will report this issue.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Find exact string using formula (excel)

    I'm trying to use FIND statement to find multiple strings in the context of a larger formula. The original formula I'm basing it off of is as follows:
    =IF(ISNUMBER(FIND("INC",A1))," ","Y")
    Obviously, this yields a Y if it finds whatever text in " ". However, I have many strings for which I'd like to check and they need to be exact; ie when I search INC and inc, I do not want Inc to be counted. So, I tried the following formulas.
    =IF(ISNUMBER(FIND(OR("INC",inc"),A1))," ","Y")
    =IF(SUM(COUNTIF(A1,"* INC*","* inc*}))," ","Y")
    The second one works best, but it also counts "Inc" as a match. Any suggestions?

    bk284,
    Well you've posted to the wrong forum as this forum is dedicated to questions/issues about customizing and programming Microsoft Project, a planning and scheduling application. However, your question is simple enough that I'll just take a shot at helping.
    Try the LOWER function, it converts a text string to lower case so the upper case, lower case issue goes away.
    If this answered your question, please mark it as the answer.
    In the future, for Excel related questions, use this forum: http://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
    John

  • How do we retrieve the category instances matching a search expression?

    Consider the following (simplified) example:
    We archive consolidated reports. Reports come from different branches each containing the data for multiple departments. We create a category containing attributes for the branch, department, and report date. We apply multiple instances of the category to each report, one for each department contained in the report.
    We can specify the department for our search and get back the reports with matching category instances; however, since the report dates are not necessarily predictable we can't qualify the search by date. What we'd like to do is retrieve the matching category instances and display them; the user would then select the desired instance to specify the report for retrieval.
    We tried requesting the categories and custom attributes with the search, but it appears ContentDB first finds the qualifying reports then returns all the category instances on those reports--not just the ones that matched the search expression.
    I see the SEARCH_FOR_DOCUMENTS, SEARCH_FOR_FOLDERS, etc. search options, but not one for SEARCH_FOR_CATEGORIES (or equivalent). Is there a way to retrieve just the category instances that matched the search expression?

    Unfortunately no.
    As you have found out, requesting Attributes.CATEGORIES on the document will return all category instances. You would currently need to do client-side processing to locate the specific matching category instance by recursing through the category item[] and checking first that the CATEGORY_CLASS matches, and second, the value of the particular category attribute matches.
    If you are building a custom application front-end, maybe you could consider applying a single instance of some master category to the report that has a String array attribute containing all of the associated unique department ids to which the report applies.
    Then having applied the 10.1.2.3.1 patchset (and in particular Enh 5171342 NEED SEARCH EXPRESSION SUPPORT FOR ARRAY TYPE CATEGORY ATTRIBUTES), you could quickly locate the reports of interest for a specific department.
    The master category instance could also potentially contain an array of DeptID:CategoryInstanceId pairs that allow you to quickly retrieve a specific category instance given a department id.
    Matt.

  • An additional question about regular expressions with String.matches

    does the String.matches() method match expressions when some substring of the String matches, or does it have to match the entire String? So, if i have the String "123ABC", and i ask to match "1 or more letters" will it fail because there are non-letters in the String, but then pass if i add "1 or more letters AND 1 or more digits"? so, in the latter every character in the String is accounted for in the search, as opposed to the first. Is that correct, or are there ways to JUST match some substring in the String instead of the whole thing? i WILL make some examples too... but does that make sense?

    It has to match the whole String. Use Matcher.find() to match on just a sub-string()

  • Window freezes when Product category selected via match-code (search help)

    Hello Experts,
    I am using SRM 7.0 Extended Classic Scenario.
    I maintained a product category hierarchy in the SRM environment.
    I maintained the GL Accounts related, the tax determination, the source system etc.
    I did all this customizing in a Development environment where everything was working fine.
    Now I just transported all this to a Quality environment.
    And in the Quality I am facing the following issue :
    If I select a product category via the match-code (search help), after the category is selected, the window freezes.
    I have to shut it down manually using the Windows Close button.
    However, when I type the category number, everything works fine.
    Do you have any idea what could be causing this issue, and how to fix it ?
    Thanks in advance,
    Sofiane

    Hello,
    We have the exact same issue in SRM 7.0 Extented Classic Scenario. This was working fine before we installed the latest support package 11. Which support package do you have?
    The same problem occurs with every drop down menu (search help) in EBP. For example when creating a new shopping cart, if I try to add approver, the same thing happens. After clicking 'Approval Process: Display / Edit Agents' > 'Add Approver', the window freezes. Same thing happens with IE8 and Firefox 3.6.13. Could you also try the same?
    Could it be a new bug in SP11?
    Thanks and best regards,
    Matti Hokkanen
    Edited by: Matti Hokkanen on Nov 4, 2011 10:30 AM
    Edited by: Matti Hokkanen on Nov 4, 2011 10:43 AM

  • String.matches() faulty?

    I wondered why my regExp didn't work when I called it with
    myString.matches(searchString);So I wrote this test code:
            System.out.println("Test: if substring exists:");
            String text = "Using org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser as SAX2 Parser";
            String search = "as SAX2 Parser";
            String regExp = "\\S*("+search.toUpperCase()+"\\S*)";
            Pattern pat = Pattern.compile(regExp);
            Matcher m = pat.matcher(text.toUpperCase());
            while (m.find()) {
                System.out.println("found2: "+text.substring(m.start(), m.end()));
            System.out.println("Same with String.matches:");
            System.out.println("found2: "+text.matches(regExp));and the first custom code matches the regExp and the String.matches() doesn't match. What's the catch?

    "abc" -> find ("b") -> finds "b"
    "abc".matches("b") -> returns false
    "b".matches("b") -> returns false
    "abc".matches(".b.") > returns trueIf you'd like you could say that matches assumes an
    implicit "^" at the beginning and an "$" at the end
    of your regex. It tries to match the entire
    string and if it doesn't capture it all it returns
    false.Why is
    "b".matches("b") -> returns false?

  • Contains return all the records when the query string matches the columns

    I used the multi_column_datastore preference and created an index on three columns (item_name, description,owner_part_number). Now if I do a search:
    select * from items where contains(description, 'description') > 0;It returns all the rows in items table, but not all the rows have "description" as a word. I guess Oracle text assumes the query intends to get all the rows as the query string matches one of the column names. My question is whether Oracle Text has any preference settings to alter this behavior?
    execute ctx_ddl.create_preference('item_multi_preference', 'MULTI_COLUMN_DATASTORE');
    execute ctx_ddl.set_attribute('item_multi_preference', 'columns', 'item_name, description,owner_part_number');
    create index item_text_index on items(description) indextype is ctxsys.context filter by owner parameters('LEXER ENG_LEXER WORDLIST ENG_WORDLIST STOPLIST CTXSYS.EMPTY_STOPLIST datastore item_multi_preference MEMORY 1024M');Thanks.
    Jun Gao

    It looks like a basic_section_group fixes the problem as well, as demonstrated below and I believe a basic_section_group may be more efficient than auto_section_group.
    SCOTT@orcl_11gR2> -- recreation of problem:
    SCOTT@orcl_11gR2> drop table items
      2  /
    Table dropped.
    SCOTT@orcl_11gR2> create table items (
      2       "ITEM_NAME"             varchar2(100 byte),
      3        "ITEM_NUMBER"              varchar2(100 byte),
      4        "DESCRIPTION"              varchar2(4000 byte),
      5        "OWNER" number
      6  )
      7  /
    Table created.
    SCOTT@orcl_11gR2> begin
      2    FOR Lcntr IN 1..100
      3    loop
      4         insert into items (item_name, item_number, description, owner)
      5         values (dbms_random.string('A', 10),
      6              dbms_random.string('A', 10),
      7              dbms_random.string('L', 8) || ' '
      8              || dbms_random.string('A', 4)
      9              || dbms_random.string('A', 5)  || ' '
    10              || dbms_random.string('A', 10),
    11              dbms_random.value(1,10) );
    12    end loop;
    13  end;
    14  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    FOR Lcntr IN 1..100
      3    loop
      4         insert into items (item_name, item_number, description, owner)
      5         values (dbms_random.string('A', 10),
      6              dbms_random.string('A', 10),
      7              dbms_random.string('L', 8) || ' '
      8              || dbms_random.string('A', 4) || '111'
      9              || dbms_random.string('A', 5)  || ' '
    10              || dbms_random.string('A', 10), 1234 );
    11    end loop;
    12  end;
    13  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> exec ctx_ddl.drop_preference('ENG_WORDLIST');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('ENG_WORDLIST', 'BASIC_WORDLIST');
      3    ctx_ddl.set_attribute('ENG_WORDLIST','PREFIX_INDEX','TRUE');
      4    ctx_ddl.set_attribute('ENG_WORDLIST','PREFIX_MIN_LENGTH',1);
      5    ctx_ddl.set_attribute('ENG_WORDLIST','PREFIX_MAX_LENGTH',10);
      6    ctx_ddl.set_attribute('ENG_WORDLIST','SUBSTRING_INDEX','TRUE');
      7    ctx_ddl.set_attribute('ENG_WORDLIST','WILDCARD_MAXTERMS', 0);
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> execute ctx_ddl.drop_preference('ENG_LEXER');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    CTX_DDL.CREATE_PREFERENCE ('ENG_LEXER', 'BASIC_LEXER');
      3    CTX_DDL.SET_ATTRIBUTE ('ENG_LEXER', 'PRINTJOINS', '@-_');
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> execute ctx_ddl.drop_preference('items_multi_preference');
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('items_multi_preference', 'MULTI_COLUMN_DATASTORE');
      3    ctx_ddl.set_attribute('items_multi_preference', 'columns', 'item_name, description,item_number');
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> create index items_text_index
      2  on items(description)
      3  indextype is ctxsys.context
      4  parameters
      5    ('LEXER         ENG_LEXER
      6        WORDLIST   ENG_WORDLIST
      7        STOPLIST   CTXSYS.EMPTY_STOPLIST
      8        datastore  items_multi_preference
      9        MEMORY     1024M')
    10  /
    Index created.
    SCOTT@orcl_11gR2> create index owner_idx on items (owner)
      2  /
    Index created.
    SCOTT@orcl_11gR2> exec dbms_stats.gather_table_stats (user, 'ITEMS')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> select count(*)
      2  from   items
      3  where  contains (description, 'description') > 0
      4  /
      COUNT(*)
           200
    1 row selected.
    SCOTT@orcl_11gR2> -- correction of problem:
    SCOTT@orcl_11gR2> exec ctx_ddl.drop_section_group ('items_sec')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_section_group ('items_sec', 'basic_section_group');
      3    ctx_ddl.add_field_section ('items_sec', 'item_name', 'item_name', true);
      4    ctx_ddl.add_field_section ('items_sec', 'description', 'description', true);
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> drop index items_text_index
      2  /
    Index dropped.
    SCOTT@orcl_11gR2> create index items_text_index
      2  on items(description)
      3  indextype is ctxsys.context
      4  parameters
      5    ('LEXER         ENG_LEXER
      6        WORDLIST   ENG_WORDLIST
      7        STOPLIST   CTXSYS.EMPTY_STOPLIST
      8        datastore  items_multi_preference
      9        MEMORY     1024M
    10        section group items_sec')
    11  /
    Index created.
    SCOTT@orcl_11gR2> select count(*)
      2  from   items
      3  where  contains (description, 'description') > 0
      4  /
      COUNT(*)
             0
    1 row selected.

  • String.matches() question - regular expression help

    How come the following code's if condition returns false?
    String someFile="Dr. Phil.pdf";
    if (someFile.matches("[.][Pp][Dd][Ff]$")) {
      System.out.println("File is a pdf file.");
    }When I change the the matches method to matches(".*[Pp][Dd][Ff]$") it works, so does that mean it has to match the entire string to return true? If so, how can I determine if a partial match occured?
    If partial matching isn't feasible, then can someone help me look determine if this is the best matching pattern to use:
    matches(".*[.][Pp][Dd][Ff]$")Thanks.

    The documentation is your friend.
    [String.matches(regex)|http://java.sun.com/javase/6/docs/api/java/lang/String.html#matches(java.lang.String)] says:
    An invocation of this method of the form str.matches(regex) yields exactly the same result as the expression
    Pattern.matches(regex, str)And [Pattern.matches(regex, str)|http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html#matches(java.lang.String, java.lang.CharSequence)] says
    behaves in exactly the same way as the expression
    Pattern.compile(regex).matcher(input).matches()And [Matcher.matches()|http://java.sun.com/javase/6/docs/api/java/util/regex/Matcher.html#matches()] says
    Attempts to match the entire region against the pattern.

  • The case structure is not working well on comaring two strings using true or false string matching VI

    I need an execution of commands after the reply from the instrument matches with the string I provided for that i used true or false string match VI on which the true string the matching command and the string is the reply from the instrument. And I put the further executionable commands in frame after frame of sequence loop in the true of the case structure. Amd finally I given all the output strings to the concatenate string to get all the replies as one loop. But when I execute the program the desired result is not available. So kindly please help me to overcome this problem.  
    Attachments:
    basic serial with changes.vi ‏24 KB

    You VI makes absolutely no sense and I would recommend you start with a few simple LabVIEW tutorials before trying to tackle this.
    What is the point of the FOR loop with 1 iteration, it might as well not even be there, same difference.
    Why is there an abort primitive in the FOR loop, this mean the program will unconditionally stop abort before any downstream code will ever go into action. The program will never get past the FOR loop.
    You created a circular data dependency and LabVIEW inserted a feedback node automatically, making things even worse. (see also)
    You need to learn about dataflow, execution order, and data dependency.
    You need to learn about the various types of tunnels (plain, autoindexing, etc.)
    There is a tremendous amount of duplicate code. Large code sections are the same, differeing only by a string. You should only have one copy of that code inside a proper state machine. Have a look at the design templates and examples that ship with LabVIEW.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Can you family share between apple id's from two different countries?

    Hey, Can you link an Apple ID from one country, create it as the organiser for that family, and then add a family member to that family who has an apple id from another country. For example, make the Australian account the organiser then add an ameri

  • What drivers do I need to install for my MG6360 printer to work with a Mac with OSX10.8.5?

    I have a PIXMA MG6360 printer that needs its software updating to return its full features but the Canon support line in Australia has prescribed several different options with no two alike and none providing the full features I once enjoyed.  'Phone

  • Planning application is not appearing in workspace

    Hi All, i have created application in hyperion planning from Appwizard, when i trying to open application from workspace am not able to see hyperion planning path to open Application. am not understand how to solve prb i try to redeploy in configurat

  • Help im a newbie

    see ive got netbeans 4.0 and jdk 5 and i also have xp ive set everything up for jdk in the enviroment settings in xp but when i still just try to print one line using system.out.println("hello, world); (you know the starter for learning every languag

  • How to run  batch command in java?

    Hi, my program needs to use an outside batch file command, for instance, its name is "generateXML", its syntax is [command prompt] : generateXML sourceFile.dtd XMLFile.xml I want to include this command into my code so that do that and other things a