There is a default object in any user_folder called manage_users It handles managing users in the user folders. If you have manager privileges as a user, submitting the following form in the user folder will add a user to the folder. You could process these in DTML to remove the security. If using dtml, Be careful this is a security hole if allow the users to be set as manager!!! <!--#var standard_html_header--> <FORM ACTION="acl_users/manage_users" METHOD="POST"> name<INPUT TYPE="TEXT" NAME="name" SIZE="20"><BR><BR> password<INPUT TYPE="PASSWORD" NAME="password" SIZE="40"><BR><BR> password2<INPUT TYPE="PASSWORD" NAME="confirm" SIZE="40"><BR><BR> domains<INPUT TYPE="TEXT" NAME="domains:tokens" VALUE="" SIZE="40"><BR><BR> Roles<SELECT NAME="roles:list" SIZE="5" MULTIPLE><OPTION VALUE="User">User</SELECT><BR><BR> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add"> If you had the users info as variables you could set them = to the name values of the fields above in dtml: <newuserfolder>.acl_users.manage_users.name = namevalue ect... ect... ect... The syntax above is incorrect but I think you get the point. Just convert the form to dtml. Hope that helps. ----Original Message----- From: Shaw, Howard [mailto:ShawH@sths.org] Sent: Wednesday, February 24, 1999 4:13 PM To: 'Zope@zope.org' Subject: [Zope] Adding users in External method Ok, guys, you stumped me. Why are all the functions for adding Users to UserFolders mangled? Do I really have to create a REQUEST object to add users using an Extension class? I've got the code creating a directory, a UserFolder in it, but how do I add the user? If I need to create the REQUEST and pass it to manage_users and let it toss it around internally, then could someone please show me how to compose a REQUEST from within an External Method? Thanks again, Howard Shaw _______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
participants (1)
-
Theodore Patrick