How do I change the default 'Contains' to 'Begins with' for the search criteria in the MMC? (NETIQKB19153)

  • 7719153
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

goal
How do I change the default 'Contains' to 'Begins with' for the search criteria in the MMC?

fact
Directory and Resource Administrator 6.50

fact
Directory and Resource Administrator 6.60

fix

This search criteria in the MMC is not workstation specific and is controlled globally by a java script file on the IIS server.

When enumerating objects (users, groups, etc..) in DRA the new search capability defaults to a Contains search string criteria. This can be changed to Beginswith using the drop down box.  To change the default criteria, make the following changes to this file located on the IIS server DRA is using:

File: ?.\Inetpub\wwwroot\DRAWeb\Admin\lib\js\DRAListFilterForm.js

Search for the following section in this file:

function FilterCriteriaInitCondition()

{

        // load conditions from registry

        this.conditionMRU = new Array(      CRITERIA_CONDITION_CONTAIN,

                                                        CRITERIA_CONDITION_BEGIN,

                                                        CRITERIA_CONDITION_END,

             .
          
                                CRITERIA_CONDITION_MATCH );

Edit and modify this section like the following (simply reorder the display list):

function FilterCriteriaInitCondition()

{

// load conditions from registry

        this.conditionMRU = new Array(        CRITERIA_CONDITION_BEGIN,

                                                        CRITERIA_CONDITION_END,

                                                        CRITERIA_CONDITION_MATCH,

                                                        CRITERIA_CONDITION_CONTAIN );

Save this file.  Start a new MMC session and verify that the search criteria default has been changed. 

.


note
This is a global change that will change the default for all Assistant Admins.   DRA 6.6 and prior populates the right half of the MMC with IE pages.  With this architechture you cannot save this type of setting on a per user basis.  DRA 7.0 (32 bit GUI) will have the ability to save user preferences on a per user basis. 

Additional Information

Formerly known as NETIQKB19153