Rede Moodle

De MoodleDocs

Moodle1.8


Tabela de conteúdo

Visão Geral

A Rede Moodle é uma nova ferramenta encontrada a partir da versão 1.8 do Moodle. As novas funções dão ao administrador do Moodle a possibilidade de estabelecer uma ligação a outros servidores Moodle, e partilhar recursos dos seus utilizadores com eles.

A versão inicial da Rede Moodle vem com um novo plugin de autenticação, que integra a entrada nos sistemas da rede. O utilizador com um nome de utilizador alex pode entrar no Moodle no qual está registado, e clicar no apontador que o transporta da sua página para outro servidor Moodle na rede. Normalmente, no servidor Moodle remoto possuirá apenas privilégios de visitante; porém por trás de tudo, terá sido feita uma autenticação completa no Moodle remoto.

Segurança

A Rede Moodle precisa que o seu servidor tenha as extensões Curl e OpenSSL instaladas. Quando instalar ou actualizar para Moodle 1.8, o seu sistema gerará um novo certificado OpenSSL a ser usado nas comunicações seguras com outros servidores Moodle, e as chaves criptográficas será actualizadas automaticamente, aproximadamente cada mês.

As comunicações terão lugar sobre uma ligação XML-RPC, e os documentos XML-RPC serão préviamente embrulhados num envelope XMLDSIG (assinatura digital XML), seguido de um envelope XMLENC (criptografia XML). Toda a encripção terá lugar dentro do PHP, sem precisar de https (Apache SSL).

Referências:

Pode ser activado um modo especial que permite que uma máquina com um endereço IP faça pedidos na camada XML-RPC, sem usar nem criptografia nem envelopes de assinatura. Esse modo é disponibilizado para permitir ao Moodle comunicar com otros sistemas de software nos quais a criptografia e integração de assinaturas sejam difíceis. Não se espera que seja nunca disponibilizada ligação entre sítios Moodle sem criptografia.

Rede Peer to Peer

Esta é a organização básica do sistema. Pode ser bastante útil para ter um Moodle por Faculdade ou Departamento, cada um com a sua política de utilizadores, e ainda assim permitir o roaming de utilizadores entre instalações de uma mesma rede, sujeita claro a permissões.

Instalação

As instrucções irão cobrir 2 instalações Moodle: MoodleA and MoodleB. Ambas estão instaladas correctamente e nunca foram configuradas como Moodle Network.

  1. Iniciar a comunicação entre as 2 instalações
    1. Garantir que em Admin > Server > Environment o curl é considerado como instalado
    2. Se o MoodleA e MoodleB estiverem alojados no mesmo domínio, garantir que tem um prefixo de cookie diferente. Note que ao alterar este prefixo a sua conta será desconectado! Esta alteração é feita em Admin > Server > Session Handling.
    3. Em ambas as instalações, vá a Admin > Network > Settings e active a funcionalidade de Networking (ON).
    4. No MoodleA vá a Admin > Network > Peers - coloque o URL do MoodleB no "Add New Host" e clique em Adicionar.
    5. Faça o mesmo no MoodleB.
  2. Iniciar o roaming de utilizadores
    1. Em ambas as instalações vá a Admin > Users > Authentication e active o plugin de autenticação Moodle Network. Clique em 'Settings' e active auto_add_remote_users.
    2. No MoodleA vá a Admin > Network > Peers, clique em 'MoodleB' e clique em 'Services'. Active a publicação SSO-IDP e faça a subscrição, e o mesmo para a SSO-SP.
    3. Faça o mesmo no MoodleB.
    4. Em ambos, vá a Admin > Users > Permissions > Define Roles, apenas os cargos que tenham "Roam to a remote Moodle moodle/site:mnetlogintoremote" terão a permissão para o fazer. Dê esse privilégio nos casos que pretender.
    5. Em ambos, vá à página inicial e adicione o bloco 'Network Servers'.
    6. Para testar, é recomendado que use um browser diferente (mesmo numa máquina diferente) em que não tenha sido feito login in em nenhum deles. Faça o login no MoodleA com uma conta diferente da do administrador e que tenha a permissão de fazer roaming. Deve ver o bloco Network Servers e ao clicar nele, deve ser transferido para o MoodleB com uma nova conta criada automaticamente.
  3. Activar inscrições remotas -- opcional. Permite aos administradores do MoodleB inscrever utilizadores que são nativos do MoodleB em páginas do MoodleA, e vice-versa.
    1. Em ambos, vá a Admin > Courses > Enrolment e active o plugin de inscrição Moodle Network (clique em Guardar). Clique em 'Editar' e active 'allow_allcourses' ou selecione algumas páginas ou categorias para permitir inscrições remotas.
    2. No MoodleA vá a Admin > Network > Peers, clique em 'MoodleB', e clique em 'Services'. Active Enrolment publish and subscribe.
    3. Fla o mesmo no MoodleB.
    4. Para usar, no MoodleA vá a Admin > Networking > Enrolments. Deverá ver o MoodleB listado. Clique no MoodleB e verá uma lista de páginas que o MoodleB oferece para inscrição remota. Seleccione a página que quiser, e depois inscreva os utilizadores que pretende nessa página.

Utilização

Ligando-se a um Redistribuidor Comunitário

Um Redistribuidor Comunitário is a Moodle server that is configured to accept connections from other Moodle servers, and to provide a set of services to users of these other servers. This guideline will direct you to connect to a Community hub, assess the services it has to offer, and enable those services for your users.

Instalação

  1. Get talking to the Hub
    1. Ensure that the Admin > Server > Environment page indicates you have curl and openssl installed
    2. Go to Admin > Network > Settings and turn Networking on
    3. Go to Admin > Network > Peers and enter the URL of Community Hub under "Add New Host". Click Add
    4. The host details for the Community Hub should appear with the Site Name field already populated. Click Save changes
    5. The details will be written to your database and two new tabs will appear in this window: 'Services' and 'Logs'. Click Services
    6. A list of services will appear, each with a checkbox for 'publish' and 'subscribe'. Check the checkboxes for any services you want to publish or subscribe to

Utilização

If the Community Hub has already enabled a service for you, there will be a tick alongside the appropriate checkbox, for example: if the Hub is publishing Moodle Networked Enrolment, then a tick will appear alongside the subscribe checkbox for this service. Note that in order to enable some functionality, prominently single-sign-on, you may have to publish a service, e.g. the Identity Provider service. The Community Hub will access this service on your Moodle, asking it to authenticate your users.

  1. Enable Roaming
    1. Subscribe to SSO (Service Provider) by checking the box
    2. Publish SSO (Identity Provider) by checking the box
    3. Click Save changes
    4. Go to Admin > Users > Permissions > Define Roles, and grant the capability Roam to a remote Moodle moodle/site:mnetlogintoremote to an appropriate role
    5. Go to Admin > Users > Authentication and enable the Moodle Network authentication plugin
    6. Go to your homepage, turn on editing, and add the 'Network Servers' block
    7. Using a different web-browser, log on as a non-admin user who inhabits the role you granted the roaming capability to
    8. Note that the Community Hub is listed in the Network Servers block on the homepage. Click on the link to that server
    9. Some of your user details will be transferred to the Community Hub server, and a browsing session will be started for you as if you had logged on there directly
  2. Enable Networked Enrolment
    1. Return to the web browser you've been using as the site administrator
    2. Go to Admin > Network > Peers and click on the entry for the Community Hub.
    3. Click on the Services tab
    4. Subscribe to Moodle Networked Enrolment
    5. Go to Admin > Courses > Enrolment and enable the Moodle Network enrolment plugin. Click Save changes
    6. Click on edit to view the details for networked enrolments.
    7. Go to Admin > Networking > Enrolments to see a list of Moodle servers that offer this service to you
    8. Click on a server name to view a list of courses that the server offers to your users
    9. Click on a course name, to view a list users that you can enrol in this course
    10. Enrol users
    11. Profit!

Rodando uma Comunidade hub

A Community hub is a regular Moodle site that runs in a special mode. As a Moodle Administrator, when you add another Moodle site to your list of network peers, your Moodle will contact that site to find out what it is called, and to request its public key for encrypted communication. Normally, the remote server will simply provide this information without making any record of the transaction.

A Community hub is different. As soon as you add an entry for a Community hub to your system, the Community hub will create an entry for your server in its list of hosts, and may immediately begin to offer services to the users of your site.

This section will guide you to set up a Community hub, and select services to offer to all comers.

Instalação

  1. Enable Networking
    1. Ensure that the Admin > Server > Environment page indicates you have curl and openssl installed
    2. Go to Admin > Network > Settings and turn Networking on
    3. Go to Admin > Network > Peers and tick the checkbox for Register all hosts. Click on Save Changes
    4. On the same page, the first entry in your list of hosts should be All hosts. Click this link
    5. Click on Services and enable any services you want to offer to all comers

Veja também

Ferramentas pessoais
Moodle » Documentation » Português
Outras línguas