How do I add the Employee ID attribute to the Quick Start Search drop-down list? (NETIQKB47443)

  • 7747443
  • 02-Feb-2007
  • 19-Jun-2007

Resolution

goal
How do I add the Employee ID attribute to the Quick Start Search drop-down list?

goal
How do I customize the Web console?

fact
Directory and Resource Administrator 7.x

fix

To add the Employee ID attribute to the Quick Start Search menu:

  1. In Windows Explorer, go to C:\InetPub\wwwroot\DRAWeb\WebConsole\BuiltIn<\Common\Scripts\SearchForms
  2. Copy these two files:
    • CreateQuickStartForm.asp
    • CreateUserSearchForm.asp

  3. Paste the copied files to C:\InetPub\wwwroot\DRAWeb\WebConsole\Custom\Common\Scripts\SearchForms

    Note: Any files in the Custom directories are loaded with precedence over the files located in the BuiltIn directories. The original files do not change.

  4. Add the following lines of script to the CreateQuickStartForm.asp:

    if bShowUsers then
    set UserOption = SearchForm.AddClassOption("User", WebConsole.GetAppMsg("QUICK_START_USER_OPTION_NAME"))
    'these params are never actually used in this form - but the searchform object will
    ' throw an error if they are not specified...
    UserOption.OperationName = "AccountEnum"
    UserOption.QueryTemplate = "user(%SEARCH_PROPERTY%='%MATCH_STRING%')"

    if Session("FocusDomainIsAD") then
    UserOption.AddSearchProperty "userPrincipalName", WebConsole.GetAppMsg("USER_SEARCH_SEARCHPROPERTY_LOGON_CAPTION")
    UserOption.AddSearchProperty "samAccountName", WebConsole.GetAppMsg("USER_SEARCH_SEARCHPROPERTY_LOGON_PRE_W2K_CAPTION")
    UserOption.AddSearchProperty "EmployeeID", "Employee ID"

    else

    UserOption.AddSearchProperty "samAccountName", WebConsole.GetAppMsg("USER_SEARCH_SEARCHPROPERTY_LOGON_CAPTION")
    end if

  5. Save the changes to add the Employee ID attribute field to the drop-down list as Employee ID.

  6. Add the following lines of script to the CreateUserSearchForm.asp:

    if Session("FocusDomainIsAD") then
    UserOption.AddSearchProperty "userPrincipalName", WebConsole.GetAppMsg("USER_SEARCH_SEARCHPROPERTY_LOGON_CAPTION")
    UserOption.AddSearchProperty "samAccountName", WebConsole.GetAppMsg("USER_SEARCH_SEARCHPROPERTY_LOGON_PRE_W2K_CAPTION")
    if Request(Application("REQUEST_KEY_QUICK_START_MODE")) <> "" then
    UserOption.AddSearchProperty "EmployeeID", "Employee ID"
    End If

    else

    UserOption.AddSearchProperty "samAccountName", WebConsole.GetAppMsg("USER_SEARCH_SEARCHPROPERTY_LOGON_CAPTION")
    end if

  7. Save the changes to add the actual value of the EmployeeID attribute to the results page as Employee ID.

You do not need to stop or restart the NetIQ Administration service. Refresh or relaunch the Web Console home page to implement the changes.



note
You can also find this information in the online Web Console Customization Guide on the home page when you first launch the Web Console under Help and Customization Quick Tour.

note
NetIQ Technical Support does not support customizations made to the Web console.

Additional Information

Formerly known as NETIQKB47443