I was wondering if there is any way to stop people from creating sites. I have a personal site using OpenScholar and on the login page, a big button shows "Get your we site". I wish to disable this feature as I do not want anyone to create a site under my domain.
Thanks in advance.
Comments
Comment #1
sfsiegel commentedMore generally, is there a way to require authentication, so that only members of my department (who have a username and password) can create sites, and not anyone in the world? Right now, anyone in the world can push the button and add a site.
Comment #2
ferdi commentedYou can disable scholarregister module. Then create sites yourself by adding "web site" type of nodes as usual i.e. node/add/vsite
Or, write a simple module that alter the submit handler of the site registration form. Have a look at iqss_pinserver_register module for an example. That's what we use on our own installations.
Comment #3
rolando.isidoro commentedHi, I'm working on a Portuguese University and we are really considering deploying OpenScholar to handle all teachers' websites but we are still hesitant, specially regarding this topic: how to limit site creation to teachers only?
We use LDAP here, are there any plans to include an out-of-the box LDAP integration in OpenScholar in a future release? Alternatively would it be easy to use the current LDAP integrations modules available for Drupal to achieve this goal?
Thanks in advance,
Rolando Isidoro
Comment #4
stattler commentedThanks. This helps.
Comment #5
rolando.isidoro commentedHi,
I've been experimenting with Drupal Permissions in order to limit the access to the OpenScholar site creation form, but I can't seem to be able get it right.
Starting where the #2 comment left, I've decided to keep the scholarregister module enabled and remove the permission for anonymous user to "create vsite content" instead.
The result was not quite what I expected, which was to disallow anonymous users from creating websites via the form.
I've looked into the scholarregister.module code and the $create_site_access value doesn't seem to be used correctly in the scholarregister_form_process function. Shouldn't the user be redirected if it doesn't have the $create_site_access privilege?
Thanks in advance,
Rolando
Comment #6
jreifler commentedHi! I am like the first poster who is using OpenScholar for a personal website and I want to disable the "create your web site" function. I followed the advice above and disabled the scholarregister module, but now get the following error message:
Any guidance people could give on what to do next would be greatly appreciated. Thanks!
Comment #7
gsaha commentedThe harvard university openscholar site has done this well.
http://scholar.harvard.edu/
When you click on "create your website" it takes the user to the ldap authenticationpage. So only authorized users can create a site.
This is exactly what we need to do .
Would love to find out how they did this.
Comment #8
ferdi commented@jreifler There is probably a caching issue there. Try to clear the cache.
@gsaha The module that does this for Harvard is included in the distribution (pinserver_register)
It's hard to come up with a solution that works for everyone. We are working on LDAP and CAS integration right now.
thanks!
Comment #9
jreifler commentedCache clearing worked! Thank for performing this wonderful service to the academic community.
Comment #10
lemasney commented@ferdi is pinserver_register documented?