Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Blocked site secret.

Blocked site secret: Difference between revisions

From MoodleDocs
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
Note: a secret is sometimes called siteidentifier.
Note: a secret is sometimes called siteidentifier.


If during your site registration you see the message "your site secret is blocked", it means that the hub administrator blocked any registration from a site having your site secret. There are multiple reasons for the hub administrator to block a secret:
Every site has a unique secret. If during the registration you see the message "your site secret is blocked", it means that the hub administrator blocked your secret. There are multiple reasons for the hub administrator to block a secret:
* you were using a buggy third party custom script installing Moodle for you. Some scripts install many Moodle sites with the same secret. In this case these sites would be able to update each other registration and they would be able to spam under name of the other site using the same secret. A hub administrator will detect the problem easily and will most likely blocked the secret.
* you were using a buggy third party custom script installing Moodle for you. Some scripts install many Moodle sites with the same secret. In this case these sites would be able to update each other registration and they would be able to spam under name of the other site using the same secret. A hub administrator will detect the problem easily and will most likely block the secret.
* buggy version of the Mac Moodle package. There were were an issue with the official Mac Moodle package that create the same siteidenfier (http://tracker.moodle.org/browse/MDL-26619). Mooch blocked this secret.
* you were using a buggy version of the Mac Moodle package. There was an issue with the official Mac Moodle package that created the same secret for every site (http://tracker.moodle.org/browse/MDL-26619). Mooch blocked this secret.
* someone stole your secret, the hub administrator detected it (weird behaviour on the hub or you alerted him), and he blocked the secret.
* someone stole your secret, the hub administrator detected it (weird behaviour on the hub or you alerted him), and he blocked the secret.


=Resolving the issue=
=Resolving the issue=


# you can follow the link indicated on the page where the warning is displayed. Your secret will be regenerated and you will be able to register.
# you can follow the link indicated on the page where the warning is displayed. Your secret will be regenerated and you will be able to register again.
# you can not update your site to the required version, the only solution is to edit your database, then start a new registration
# if the above link didn't work and that you can not update your site to the indicated version on the warning page, then follow the same step as in [https://docs.moodle.org/en/Blocked_site_secret#Your_secret_has_been_blocked_after_you_registered_successfully the following chapter.]
#* Trying to register on Mooch:
 
mdl_config table: delete the row named siteidentifier.
=Your secret has been blocked after you registered successfully=
mdl_registered_hubs: delete the row referencing Mooch
'''Specific Mooch registration 1st step:''' If you were trying to register on Mooch you must first delete your current secret. Go in your database, in the 'mdl_config' table, look for 'siteidentifier' and delete the row.
# Trying to register on another hub:
 
mdl_registered_hubs: delete the row referencing this hub
'''Common step:''' Go to your site registration admin page and try to unregister from the Mooch (or a specific hub blocking your site). The unregistration process should fail ('Access control error'). Then a 'Force unregistration' option should be displayed. Force the unregistration. You should be able to register correctly now.

Latest revision as of 06:10, 28 February 2011

Note: a secret is sometimes called siteidentifier.

Every site has a unique secret. If during the registration you see the message "your site secret is blocked", it means that the hub administrator blocked your secret. There are multiple reasons for the hub administrator to block a secret:

  • you were using a buggy third party custom script installing Moodle for you. Some scripts install many Moodle sites with the same secret. In this case these sites would be able to update each other registration and they would be able to spam under name of the other site using the same secret. A hub administrator will detect the problem easily and will most likely block the secret.
  • you were using a buggy version of the Mac Moodle package. There was an issue with the official Mac Moodle package that created the same secret for every site (http://tracker.moodle.org/browse/MDL-26619). Mooch blocked this secret.
  • someone stole your secret, the hub administrator detected it (weird behaviour on the hub or you alerted him), and he blocked the secret.

Resolving the issue

  1. you can follow the link indicated on the page where the warning is displayed. Your secret will be regenerated and you will be able to register again.
  2. if the above link didn't work and that you can not update your site to the indicated version on the warning page, then follow the same step as in the following chapter.

Your secret has been blocked after you registered successfully

Specific Mooch registration 1st step: If you were trying to register on Mooch you must first delete your current secret. Go in your database, in the 'mdl_config' table, look for 'siteidentifier' and delete the row.

Common step: Go to your site registration admin page and try to unregister from the Mooch (or a specific hub blocking your site). The unregistration process should fail ('Access control error'). Then a 'Force unregistration' option should be displayed. Force the unregistration. You should be able to register correctly now.