CleanupTemp n'existe plus.
[GroupUserFolder.git] / dtml / GRUF_wizard.zpt
1 <h1 tal:replace="structure here/manage_page_header">Header</h1>
2 <h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
3 tal:replace="structure here/manage_tabs">Tabs</h2>
4
5 <h4>The LDAP Wizard section</h4>
6 <ol>
7 <p class="form-help">
8 Here's the place where you can perform a few actions with your LDAP configuration.<br />
9 Of course, if you do not plan to use LDAP with Plone, you can move away from here.<br />
10 First of all, here's a little list of links that you may find useful:
11 </p>
12 <ul>
13 <li><a href="http://ingeniweb.sourceforge.net/Products/GroupUserFolder/doc/README-LDAP.html">The official GRUF+LDAPUserFolder documentation</a> (a must-read !)</li>
14 <li><a href="http://www.dataflake.org/software/ldapuserfolder">The official LDAPUserFolder page</a></li>
15 </ul>
16 </ol>
17
18
19 <tal:block define="
20 have_LDAPUF python: 'LDAPUserFolder' in [ s[0] for s in here.listAvailableUserSources() ];
21 LDAPUF_installed here/hasLDAPUserFolderSource;
22 areLUFGroupsLocal python: LDAPUF_installed and here.areLUFGroupsLocal();
23 ">
24
25
26 <tal:block condition="python: not have_LDAPUF">
27 <h4>LDAPUserFolder status</h4>
28 <ol>
29 <p>
30 Looks like you don't have LDAPUserFolder installed.<br />
31 Please download the latest version from <a href="http://www.dataflake.org/software/ldapuserfolder">The official LDAPUserFolder page</a>.
32 </p>
33 </ol>
34 </tal:block>
35
36 <tal:block condition="python: have_LDAPUF and not LDAPUF_installed">
37 <h4>LDAPUserFolder status</h4>
38 <ol>
39 <p>
40 It seems that you don't have LDAPUserFolder installed or configured as a source for GRUF.<br />
41 Return to the 'sources' tab and add it.
42 </p>
43 </ol>
44 </tal:block>
45
46 <tal:block condition="python: have_LDAPUF and LDAPUF_installed">
47 <h4>Groups status</h4>
48 <ol>
49 <tal:block condition="areLUFGroupsLocal">
50 Your groups are reported to be stored in ZODB.<br />
51 You can create groups with <a href="manage_groups">this link</a>.
52 Once you've created groups, don't forget to come back here and see the 'update mapping' section below.<br />
53 <tal:block condition="here/haveLDAPGroupFolder">
54
55 <font color="red">
56 <dl>
57 <dt><b>WARNING</b></dt>
58 <dd>It seems that your groups source is LDAPGroupFolder.<br />
59 This is not recommanded since this groups source is only for managing groups when
60 they are stored on your LDAP Server. Please go back to the sources tab and change it.<br />
61 A regular UserFolder instead should do it.
62 </dd>
63 </dl>
64 </font>
65
66 </tal:block>
67 </tal:block>
68 <tal:block condition="not: areLUFGroupsLocal">
69 Your groups are reported to be stored in your LDAP database.
70 </tal:block>
71 </ol>
72
73 <h4>Groups mapping</h4>
74 <ol>
75 <p class="form-help">
76 To manage groups with a LDAPUserFolder, one must <b>map</b> LDAP groups to Zope Roles.<br />
77 You can do this mapping manually or click this button to have it done automatically.<br />
78 Please not that any previously existing ldap-group - to - zope-role mapping may be lost.
79 </p>
80
81 <tal:block condition="here/getInvalidMappings">
82 <p class="form-help">
83 <strong>You must do this even if your groups are not stored on your LDAP database</strong>
84 </p>
85 <p class="form-help">
86 To help you in this task, you can have a look at the following table, which summs up<br />
87 the mappings done (or not done!) in LDAPUserFolder.
88 </p>
89
90 <font color="red">
91 <dl>
92 <dt><b>WARNING</b></dt>
93 <dd>Your mapping doesn't look good... You surely need to click the 'update mapping' button.<br />
94 </dd>
95 </dl>
96 </font>
97 </tal:block>
98
99 <tal:block condition="not: here/getInvalidMappings">
100 Your mapping looks good. It's not necessary to update it.
101 </tal:block>
102
103 <table bgcolor="#FFFFFF">
104 <thead>
105 <th class="list-header">LDAP group</th>
106 <th class="list-header">is mapped to</th>
107 <th class="list-header">GRUF group</th>
108 </thead>
109 <tbody>
110 <tr tal:repeat="group_info here/listLDAPUserFolderMapping">
111 <td bgcolor="#EEEEEE" tal:content="python:group_info[1]"></td>
112 <td align="center" bgcolor="#EEEEEE">
113 =>
114 </td>
115 <td bgcolor="#EEEEEE" tal:content="python:group_info[0]"></td>
116 </tr>
117 </tbody>
118 </table>
119 <form action="updateLDAPUserFolderMapping">
120 <input type="submit" value="Update LDAP mapping" />
121 </form>
122 </ol>
123 </tal:block>
124
125 </tal:block>
126
127 <h1 tal:replace="structure here/manage_page_footer">Footer</h1>