Hide Forgot
+++ This bug was initially created as a clone of Bug #693451 +++ configuring an index entry to generate localized matching rules using the collation plugin does not work cn=description,cn=index,cn=userRoot,.... nsMatchingRule: 2.16.840.1.113730.3.3.2.11.1 ... after adding this, and re-indexing/re-importing, the description.db4 index does not contain entries like :2.16.840.1.113730.3.3.2.11.1:somevalue ... --- Additional comment from rmeggins on 2011-04-04 17:10:12 EDT --- Created attachment 489856 [details] 0002-Bug-693451-cannot-use-localized-matching-rules.patch
Hi Rich, I am testing this bug, followed below steps : 1. [root@rheltest amsharma]# ldapmodify -a -D "cn=directory manager" -w Secret123 -p 389 -h localhost << EOF > dn: cn=description,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > nsMatchingRule: 2.16.840.1.113730.3.3.2.11.1 > nsIndexType: eq > nsIndexType: pres > nsIndexType: sub > nsSystemIndex: false > objectClass: top > objectClass: nsIndex > cn: description > EOF adding new entry "cn=description,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config" 2. [root@rheltest slapd-rheltest]# ./db2index.pl -D "cn=Directory Manager" -w Secret123 -n userRoot -t description adding new entry "cn=db2index_2011_4_26_16_29_19, cn=index, cn=tasks, cn=config" 3. [root@rheltest userRoot]# db_dump description.db4 VERSION=3 format=bytevalue type=btree duplicates=1 dupsort=1 db_pagesize=8192 ................. ........ ............. ............... Result : I am not able to grep 2.16.840.1.113730.3.3.2.11.1 from description.db4. Please guide here. Thanks Amita
Use dbscan instead of db_dump dbscan -f description.db4 | grep \^\:2.16.840.1.113730.3.3.2.11.1\:
Thanks for the quick response Rich. [root@rheltest userRoot]# dbscan -f description.db4 | grep \^\:2.16.840.1.113730.3.3.2.11.1\: :2.16.840.1.113730.3.3.2.11.1:J4HJB4%06X:H%060,F%06D,F,84%06,00HTFR<F8%064FRN<4P%00 :2.16.840.1.113730.3.3.2.11.1:J4HJB4%06X:H%060,F%06D,F,84%064F8<F44N%064FRN<4P%00 :2.16.840.1.113730.3.3.2.11.1:J4HJB4%06X:H%060,F%06D,F,84%06:N%064FRN<4P%00 :2.16.840.1.113730.3.3.2.11.1:J4HJB4%06X:H%060,F%06D,F,84%06L,%064FRN<4P%00 :2.16.840.1.113730.3.3.2.11.1:PJ40<,B%06,2D<F<PRN,R<V4%06,00HTFRP%00 Marking the bug as VERIFIED.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0533.html