Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
16809f02
Commit
16809f02
authored
May 12, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for domain-based authentication
parent
9c80bfbc
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
270 additions
and
76 deletions
+270
-76
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+179
-35
lib/python/AccessControl/access.dtml
lib/python/AccessControl/access.dtml
+65
-37
lib/python/AccessControl/addUser.dtml
lib/python/AccessControl/addUser.dtml
+13
-2
lib/python/AccessControl/editUser.dtml
lib/python/AccessControl/editUser.dtml
+13
-2
No files found.
lib/python/AccessControl/User.py
View file @
16809f02
This diff is collapsed.
Click to expand it.
lib/python/AccessControl/access.dtml
View file @
16809f02
<HTML>
<HEAD>
<TITLE>Security</TITLE>
<STYLE type="text/css">
<!--
TD {
font-size: 10pt;
color: black;
}
-->
</STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555" ALINK="#77003B">
<!--#if manage_tabs-->
...
...
@@ -15,57 +25,73 @@ indicate where roles are assigned permissions.
<!--#with expr="_.namespace(valid_roles=valid_roles())"-->
<FORM ACTION="manage_changePermissions" METHOD="POST">
<TABLE>
<
tr
>
<
TR
>
<!--#unless isTopLevelPrincipiaApplicationObject-->
<td> </td>
<TD>
<STRONG>
Acquire<BR>permission<BR>settings?
</STRONG>
</TD>
<!--#/unless-->
<td> </td>
<td aligh=left colspan=<!--#var expr="_.len(valid_roles)"-->>
<strong>Roles:</strong></th>
</tr>
<tr>
<TD>
<STRONG>
Permission
</STRONG>
</TD>
<TD ALIGN="LEFT" COLSPAN="<!--#var expr="_.len(valid_roles)"-->">
<STRONG>
Roles
</STRONG>
</TD>
</TR>
<TR>
<!--#unless isTopLevelPrincipiaApplicationObject-->
<
th>Acquire permission settings</th
>
<
TD></TD
>
<!--#/unless-->
<
th>Permission</th
>
<
TD></TD
>
<!--#in valid_roles-->
<th><a href="manage_roleForm?role_to_manage=<!--#
var sequence-item url_quote-->">
<!--#var sequence-item--></a></th>
<TD CLASS="bold">
<A HREF="manage_roleForm?role_to_manage=<!--#
var sequence-item url_quote-->"><!--#var sequence-item--></A>
</TD>
<!--#/in valid_roles-->
</tr>
</TR>
<!--#in permission_settings mapping-->
<tr
>
<TR
>
<!--#unless isTopLevelPrincipiaApplicationObject-->
<td align=center>
<input type=checkbox
name=a<!--#var sequence-index-->
<TD ALIGN="CENTER">
<INPUT TYPE="checkbox" NAME="a<!--#var sequence-index-->"
<!--#var acquire-->>
</td
>
</TD
>
<!--#/unless-->
<th align=left
>
<a href
="manage_permissionForm?permission_to_manage=<!--#
<TD ALIGN="LEFT"
>
<A HREF
="manage_permissionForm?permission_to_manage=<!--#
var name url_quote-->">
<!--#var name--></a></th>
<!--#var name--></A>
</TD>
<!--#in roles mapping-->
<td align=center
>
<input type=checkbox name=<!--#var name-->
<!--#var checked-->>
</td
>
<TD ALIGN="CENTER"
>
<INPUT TYPE="CHECKBOX" NAME="<!--#var name-->"
<!--#var checked-->>
</TD
>
<!--#/in-->
</tr>
</TR>
<!--#/in permission_settings-->
<
tr
>
<
TR
>
<!--#if isTopLevelPrincipiaApplicationObject-->
<
td colspan=<!--#var expr="_.len(valid_roles)+1"--> align=center
>
<
TD COLSPAN="<!--#var expr="_.len(valid_roles)+1"-->" ALIGN="CENTER"
>
<!--#else-->
<
td colspan=<!--#var expr="_.len(valid_roles)+2"--> align=center
>
<
TD COLSPAN="<!--#var expr="_.len(valid_roles)+2"-->" ALIGN="CENTER"
>
<!--#/if-->
<input type=submit value="Change">
</td></tr>
</table>
</form>
<INPUT TYPE="SUBMIT" VALUE="Change">
</TD>
</TR>
</TABLE>
</FORM>
<!--#/with-->
<!--#if expr="meta_type != 'User Folder'"-->
<P>
<FORM ACTION="manage_defined_roles" METHOD="POST">
<TABLE CELLPADDING="2">
...
...
@@ -102,6 +128,8 @@ indicate where roles are assigned permissions.
<!--#/if userdefined_roles-->
</TABLE>
</FORM>
<!--#/if-->
</BODY>
</HTML>
lib/python/AccessControl/addUser.dtml
View file @
16809f02
...
...
@@ -21,6 +21,7 @@ and roles for the new user and click "Add".
<INPUT TYPE="TEXT" NAME="name" SIZE="20">
</TD>
</TR>
<!--#if remote_user_mode__-->
<INPUT TYPE="HIDDEN" NAME="password" value="password">
<INPUT TYPE="HIDDEN" NAME="confirm" value="password">
...
...
@@ -30,7 +31,7 @@ and roles for the new user and click "Add".
<STRONG>Password</STRONG>
</TD>
<TD VALIGN="TOP">
<INPUT TYPE="PASSWORD" NAME="password" SIZE="
2
0">
<INPUT TYPE="PASSWORD" NAME="password" SIZE="
4
0">
</TD>
</TR>
<TR>
...
...
@@ -38,10 +39,20 @@ and roles for the new user and click "Add".
<STRONG>(Confirm)</STRONG>
</TD>
<TD VALIGN="TOP">
<INPUT TYPE="PASSWORD" NAME="confirm" SIZE="
2
0">
<INPUT TYPE="PASSWORD" NAME="confirm" SIZE="
4
0">
</TD>
</TR>
<!--#/if-->
<TR>
<TD VALIGN="TOP">
<STRONG>Domains</STRONG>
</TD>
<TD VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="domains:tokens" VALUE="" SIZE="40">
</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<STRONG>Roles</STRONG>
...
...
lib/python/AccessControl/editUser.dtml
View file @
16809f02
...
...
@@ -15,6 +15,7 @@
<!--#var expr="user.name"-->
</TD>
</TR>
<!--#if remote_user_mode__-->
<INPUT TYPE="HIDDEN" NAME="password" value="<!--#var password-->">
<INPUT TYPE="HIDDEN" NAME="confirm" value="<!--#var password-->">
...
...
@@ -24,7 +25,7 @@
<STRONG>Password</STRONG>
</TD>
<TD VALIGN="TOP">
<INPUT TYPE="PASSWORD" NAME="password" VALUE="<!--#var password-->" SIZE="
2
0">
<INPUT TYPE="PASSWORD" NAME="password" VALUE="<!--#var password-->" SIZE="
4
0">
</TD>
</TR>
<TR>
...
...
@@ -32,10 +33,20 @@
<STRONG>(Confirm)</STRONG>
</TD>
<TD VALIGN="TOP">
<INPUT TYPE="PASSWORD" NAME="confirm" VALUE="<!--#var password-->" SIZE="
2
0">
<INPUT TYPE="PASSWORD" NAME="confirm" VALUE="<!--#var password-->" SIZE="
4
0">
</TD>
</TR>
<!--#/if-->
<TR>
<TD VALIGN="TOP">
<STRONG>Domains</STRONG>
</TD>
<TD VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="domains:tokens" VALUE="<!--#if expr="user.domains"--><!--#in expr="user.domains"--><!--#var sequence-item--> <!--#/in--><!--#/if-->" SIZE="40">
</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<STRONG>Roles</STRONG>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment