Forum OpenACS Q&A: Requiring Administrative Approval

Collapse
Posted by John Luong on
Greetings,

I started using OpenACS as a development platform a few months ago in a "learn by doing" type of situation.  I'm currently in a situation where the needs have shifted and I need more of an Intranet situation.  I would like to disable new user registration (ie. require that an administrator creates a user/password combination) though for the life of me, after picking through every single administrative interface, I can't find the switch.  Is that something that has to be changed in the backend somewhere?

Secondly, if you're thinking that I should RTFF (read the friendly forums), I have been trying to search them for the last hour or so, which I think constitutes a pretty solid effort.  Is there any way to search only the forums and only return THREADS instead of singular messages?

Thanks.

John

Collapse
Posted by Dave Bauer on
John,

We are working in indexing entire threads instead of individual messages. Thanks for the suggestion. Sorry I don't have an answer to your main question.

Collapse
Posted by Ben Koot on
John,

I am not a hacker, and have been playing around like you for the past 15 months.

Unless I am misunderstanding your question, here's how I do what you want:

1. click "User" in quick links.
2. click Add user
3. fill in the blanks.
4. create a user password
If you don't provide a password, a random password will be generated.)

Info on intranet developmnt can be found here. https://openacs.org/forums/forum-view?forum_id=14014
Hope this helps

It is possible to find work arounds for many situations, eliminating the need to dive into the code. If you have questions, just ask.

Ben

Collapse
Posted by Robert Gaszewski on

To disable new user registration you should edit file yourservice/packages/acs-subsite/www/register/user-new.tcl

For example, you can simply delete the file and recreate it with content:

ad_return_exception_page 403 "Access Denied" "Access Denied"
ad_script_abort

Collapse
Posted by russ m on
I don't believe there's a "disable all registrations" switch, but if you go into the site map (http://xyzzy.com/admin/site-map/) then set parameters for the root site, then to the user-login section, you can set the RegistrationRequiresApprovalP parameter to 1 to require that all new registrations be approved before they become active. You probably also want to make sure NotifyAdminOfNewRegistrationsP is set, and NewRegistrationEmailAddress is your email address.

http://xyzzy.com/acs-admin/users/ has a "Find all users needing approval" option where you can see all pending registrations and approve/reject them.

cheers

Collapse
Posted by John Luong on
Thanks for all the responses.  The latter two really answered the question I was really getting at.

Thanks again.