summaryrefslogtreecommitdiffstats
path: root/dtml/addLDAPRoleExtender.dtml
blob: 03cd0a97fe8b3a61ced62164e3a0fc5c989a04ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<dtml-var manage_page_header>

<dtml-var "manage_form_title(this(), _,
           form_title='Add LDAP Role Extender',
           help_product='LDAPRoleExtender',
           help_topic='Add.stx'
           )">

<p class="form-help">
  Add a new LDAPRoleExtender with this form.
</p>

<dtml-let lufs="superValues( [ 'LDAPUserFolder' ] )">
  <dtml-if lufs>

    <form action="manage_addLDAPRoleExtender" method="POST">
    <table cellspacing="0" cellpadding="3">

      <tr>
        <td align="left" valign="TOP"><div class="form-optional">
          Title
        </div></td>
        <td align="left" valign="TOP"><div class="form-element">
          <input type="text" name="title" size="40" />
        </div></td>
      </tr>

      <tr>
        <td align="left" valign="TOP"><div class="form-label">
          LDAP User Folder
        </div></td>
        <td align="left" valign="TOP"><div class="form-element">
          <select name="luf">
            <dtml-in lufs>
              <dtml-let luf_path="_.string.join( getPhysicalPath(), '/' )">
                <option value="&dtml-luf_path;">
                  &dtml-luf_path; (&dtml-meta_type;)
                </option>
              </dtml-let>
            </dtml-in>
          </select>
        </div></td>
      </tr>

      <tr>
        <td align="left" valign="TOP"><div class="form-label">
          Groups Base DN
        </div></td>
        <td align="left" valign="TOP"><div class="form-element">
          <input type="text" name="groups_base" size="40" />
        </div></td>
      </tr>

      <tr>
        <td align="left" valign="TOP"><div class="form-optional">
          Groups search scope *
        </div></td>
        <td align="left" valign="TOP"><div class="form-element">
          <select name="groups_scope:int">
            <option value="0"> BASE </option>
            <option value="1"> ONELEVEL </option>
            <option value="2" selected> SUBTREE </option>
          </select>
        </div></td>
      </tr>

      <tr>
        <td>&nbsp;</td>
        <td>
          <br />
          <input type="SUBMIT" value=" Add ">
        </td>
      </tr>
    
    </table>
    </form>

    <ul>
      <li>
        BASE: Search only the current object itself
      </li>
      <li>
        ONELEVEL: Search only the object's immediate children
      </li>
      <li>
        SUBTREE: Search the current object and all of its descendants
      </li>
    </ul>

  <dtml-else>
    <p><b>No LDAP User Folder objects in sight. You cannot create a LDAPRoleExtender here.</b></p>

  </dtml-if>
</dtml-let>

<dtml-var manage_page_footer>