<!--Search form for OpenLDAP's accesslog database-->

<fieldset>
  <legend>Search OpenLDAP's accesslog database</legend>

  <p>
    Match
    <select title="Search mode" name="search_mode" size="1">
    <option value="(&amp;%s)" selected="selected">all</option>
    <option value="(|%s)">any</option>
    </select> of the following:<br>
  </p>

  <table summary="Search input">

    <tr>
      <td>
        <input type="hidden" name="search_option" value="(%s=%s)">
        <input type="hidden" name="search_attr" value="objectClass">
        Object class of entry is<br>
        <select title="Object class of entry" name="search_string" size="1">
          <option value="">- not set -</option>
          <option value="auditWriteObject">Write operation</option>
          <option value="auditReadObject">Read operation</option>
          <option value="auditAbandon">Abandon operation</option>
          <option value="auditAdd">Add operation</option>
          <option value="auditBind">Bind operation</option>
          <option value="auditCompare">Compare operation</option>
          <option value="auditDelete">Delete operation</option>
          <option value="auditModify">Modify operation</option>
          <option value="auditModRDN">ModRDN operation</option>
          <option value="auditSearch">Search operation</option>
          <option value="auditExtended">Extended operation</option>
        </select>
      </td>
      <td>
        <input type="hidden" name="search_option" value="(%s=%s)">
        <input type="hidden" name="search_attr" value="reqSession">
        Session (reqSession) is<br>
        <input name="search_string" maxlength="70" size="30" value=""><br>
      </td>
    </tr>

    <tr>
      <td>
        <input type="hidden" name="search_option" value="(%s=%s)">
        <input type="hidden" name="search_attr" value="reqType">
        Request type (reqType) is<br>
        <select name="search_string">
          <option selected></option>
          <option value="abandon">Abandon Request</option>
          <option value="add">Add Request</option>
          <option value="bind">Bind Request</option>
          <option value="compare">Compare Request</option>
          <option value="delete">Delete Request</option>
          <option value="modify">Modify Request</option>
          <option value="modrdn">Modrdn Request</option>
          <option value="search">Search Request</option>
          <option value="extended{1.3.6.1.4.1.1466.20037}">Start TLS Extended Operation</option>
          <option value="extended{1.3.6.1.4.1.4203.1.11.1}">Modify Password Extended Operation</option>
          <option value="extended{1.3.6.1.4.1.4203.1.11.3}">Who am I? Extended Operation</option>
          <option value="extended{1.3.6.1.1.8}">Cancel Operation</option>
        </select>
      </td>
      <td>
        <input type="hidden" name="search_option" value="(%s=%s)">
        <input type="hidden" name="search_attr" value="reqType">
        Request type (reqType) is<br>
        <input name="search_string" maxlength="70" size="30" value=""><br>
      </td>
    </tr>

    <tr>
      <td>
        <input type="hidden" name="search_option" value="(%s=%s)">
        <input type="hidden" name="search_attr" value="reqDN">
        affected entry (reqDN) is<br>
        <input name="search_string" maxlength="300" size="30" value=""><br>
      </td>
      <td>
        <input type="hidden" name="search_option" value="(%s=%s)">
        <input type="hidden" name="search_attr" value="reqAuthzID">
        authz identity (reqAuthzID) is<br>
        <input name="search_string" maxlength="300" size="30" value=""><br>
      </td>
    <tr>
      <td>
        <input type="hidden" name="search_option" value="(%s>=%s)">
        <input type="hidden" name="search_attr" value="reqStart">
        after (reqStart&gt;=)<br>
        <input name="search_string" maxlength="22" size="22" value=""><br>
      </td>
      <td>
        <input type="hidden" name="search_option" value="(%s<=%s)">
        <input type="hidden" name="search_attr" value="reqStart">
        before (reqStart&lt;=)<br>
        <input name="search_string" maxlength="22" size="22" value=""><br>
      </td>
    </tr>

  </table>

</fieldset>
