Hide
Pre-requisites:
You need to have at least one LDAP and one CAS server available. You need to have at least a valid user account (enabled, with a known password, etc.) in the LDAP directory, and the CAS server configured to use that LDAP directory to validate CAS users.
You also need to identify an IP address that doesn't respond to LDAP traffic from your Moodle server. E.g., that IP should be unreachable and don't return any kind of connection reset packets (otherwise the LDAP library code will timeout the connection as soon as we get the connection reset packets, which will distort some of the tests). I will call this address the "Unreachable IP Address" in the testing instructions.
LDAP authentication
- Log in with an admin account (make sure that admin account doesn't use LDAP auth!!!)
- Make sure you have the LDAP authentication plugin enabled.
- Configure the LDAP authentication settings suitable for the valid LDAP server. Save the changes.
- Log out and try to login with the LDAP user account.
- Login should proceed successfully in a reasonable amount of time (~1-3 seconds, depending on network latency, LDAP server load, etc.).
- Log out.
- Execute the LDAP authentication user sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (depending on how many users you are syncing).
- Log in with the previous admin account.
- Configure the LDAP settings with the "Unreachable IP address" for the LDAP host. Set the connection timeout setting to zero (the default value). Save the changes.
- Log out and try to login with the LDAP user account.
- Login should fail with a connection error message after a rather long time (depending in the LDAP library your version of PHP uses and the operating system of your Moodle server, it can take up to 3-4 minutes).
- Execute the LDAP authentication user sync task. It should fail with a connection error message after a rather long time.
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 25 seconds to appear.
- Configure the LDAP settings with the "Unreachable IP address" for the LDAP host, but set the connection timeout setting to 10 seconds. Save the changes.
- Log out and try to login with the LDAP user account.
- Login should fail with a connection error message after ~10 seconds.
- Execute the LDAP authentication user sync task. It should fail with a connection error message after ~10 seconds.
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 10 seconds to appear this time.
- Configure the LDAP settings with the valid LDAP server IP address for the LDAP host. Keep the connection timeout setting to 10 seconds. Save the changes.
- Log out and try to login with the LDAP user account.
- Login should proceed successfully in a reasonable amount of time (~1-3 seconds, again depending on network latency, LDAP server load, etc.).
- Log out.
- Execute the LDAP authentication user sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (again depending on how many users you are syncing).
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 1-3 seconds to appear this time.
LDAP enrolment
For this test we assume that the LDAP authentication plugin is enabled and configured with a valid, reachable, operating LDAP server, with suitable settings configured correctly.
- Log in with an admin account.
- Make sure you have the LDAP enrolment plugin enabled.
- Configure the LDAP enrolment settings suitable for the valid LDAP server. Save the changes.
- Log out and try to login with the LDAP user account.
- Login should proceed successfully in a reasonable amount of time (~1-3 seconds, depending on network latency, LDAP server load, number of courses to enrol the user into, etc.).
- Log out.
- Execute the LDAP enrolment sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (depending on how many courses and enrolments you are syncing).
- Log in with the previous admin account.
- Configure the LDAP enrolment settings with the "Unreachable IP address" for the LDAP host. Set the connection timeout setting to zero (the default value). Save the changes.
- Log out and try to login with the LDAP user account.
- Login should proceed ok, but it will take a rather long time (depending in the LDAP library your version of PHP uses and the operating system of your Moodle server, it can take up to 3-4 minutes).
- Log out.
- Execute the LDAP enrolmente sync task. It should fail with a connection error message after a rather long time.
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 25 seconds to appear.
- Configure the LDAP settings with the "Unreachable IP address" for the LDAP host, but set the connection timeout setting to 10 seconds. Save the changes.
- Log out and try to login with the LDAP user account.
- Login should proceed ok, but it will take ~1-3 + 10 seconds.
- Log out.
- Execute the LDAP enrolment sync task. It should fail with a connection error message after ~10 seconds.
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 10 seconds to appear this time.
- Configure the LDAP settings with the valid LDAP server IP address for the LDAP host. Keep the connection timeout setting to 10 seconds. Save the changes.
- Log out and try to login with the LDAP user account.
- Login should proceed successfully in a reasonable amount of time (~1-3 seconds, again depending on network latency, LDAP server load, etc.).
- Log out.
- Execute the LDAP enrolment sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (again depending on how many users you are syncing).
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 1-3 seconds to appear this time.
CAS auth
- Make sure the CAS server is already setup and running.
- Enable the CAS authentication plugin.
- Go to CAS settings, and configure CAS settings and LDAP server settings with values for the suitable LDAP server.
- Log out and try to login with the CAS user account.
- Login should proceed successfully in a reasonable amount of time (~1-3 seconds, depending on network latency, CAS and LDAP server load, etc.).
- Log out.
- Execute the CAS authentication user sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (depending on how many users you are syncing).
- Log in with the previous admin account.
- Configure the CAS settings with the "Unreachable IP address" for the LDAP host. Set the connection timeout setting to zero (the default value). Save the changes.
- Log out and try to login with the CAS user account.
- Login should fail with a connection error message after a rather long time (depending in the LDAP library your version of PHP uses and the operating system of your Moodle server, it can take up to 3-4 minutes).
- Execute the CAS authentication user sync task. It should fail with a connection error message after a rather long time.
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 25 seconds to appear.
- Configure the CAS settings with the "Unreachable IP address" for the LDAP host, but set the connection timeout setting to 10 seconds. Save the changes.
- Log out and try to login with the CAS user account.
- Login should fail with a connection error message after ~10 seconds.
- Execute the CAS authentication user sync task. It should fail with a connection error message after ~10 seconds.
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 10 seconds to appear this time.
- Configure the CAS settings with the valid LDAP server IP address for the LDAP host. Keep the connection timeout setting to 10 seconds. Save the changes.
- Log out and try to login with the CAS user account.
- Login should proceed successfully in a reasonable amount of time (~1-3 seconds, again depending on network latency, CAS and LDAP server load, etc.).
- Log out.
- Execute the CAS authentication user sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (again depending on how many users you are syncing).
- Log in with the previous admin account.
- Go to the LDAP settings configuration page. It should take around 1-3 seconds to appear this time.
Show
Pre-requisites:
You need to have at least one LDAP and one CAS server available. You need to have at least a valid user account (enabled, with a known password, etc.) in the LDAP directory, and the CAS server configured to use that LDAP directory to validate CAS users.
You also need to identify an IP address that doesn't respond to LDAP traffic from your Moodle server. E.g., that IP should be unreachable and don't return any kind of connection reset packets (otherwise the LDAP library code will timeout the connection as soon as we get the connection reset packets, which will distort some of the tests). I will call this address the "Unreachable IP Address" in the testing instructions.
LDAP authentication
Log in with an admin account (make sure that admin account doesn't use LDAP auth!!!)
Make sure you have the LDAP authentication plugin enabled.
Configure the LDAP authentication settings suitable for the valid LDAP server. Save the changes.
Log out and try to login with the LDAP user account.
Login should proceed successfully in a reasonable amount of time (~1-3 seconds, depending on network latency, LDAP server load, etc.).
Log out.
Execute the LDAP authentication user sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (depending on how many users you are syncing).
Log in with the previous admin account.
Configure the LDAP settings with the "Unreachable IP address" for the LDAP host. Set the connection timeout setting to zero (the default value). Save the changes.
Log out and try to login with the LDAP user account.
Login should fail with a connection error message after a rather long time (depending in the LDAP library your version of PHP uses and the operating system of your Moodle server, it can take up to 3-4 minutes).
Execute the LDAP authentication user sync task. It should fail with a connection error message after a rather long time.
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 25 seconds to appear.
Configure the LDAP settings with the "Unreachable IP address" for the LDAP host, but set the connection timeout setting to 10 seconds. Save the changes.
Log out and try to login with the LDAP user account.
Login should fail with a connection error message after ~10 seconds.
Execute the LDAP authentication user sync task. It should fail with a connection error message after ~10 seconds.
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 10 seconds to appear this time.
Configure the LDAP settings with the valid LDAP server IP address for the LDAP host. Keep the connection timeout setting to 10 seconds. Save the changes.
Log out and try to login with the LDAP user account.
Login should proceed successfully in a reasonable amount of time (~1-3 seconds, again depending on network latency, LDAP server load, etc.).
Log out.
Execute the LDAP authentication user sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (again depending on how many users you are syncing).
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 1-3 seconds to appear this time.
LDAP enrolment
For this test we assume that the LDAP authentication plugin is enabled and configured with a valid, reachable, operating LDAP server, with suitable settings configured correctly.
Log in with an admin account.
Make sure you have the LDAP enrolment plugin enabled.
Configure the LDAP enrolment settings suitable for the valid LDAP server. Save the changes.
Log out and try to login with the LDAP user account.
Login should proceed successfully in a reasonable amount of time (~1-3 seconds, depending on network latency, LDAP server load, number of courses to enrol the user into, etc.).
Log out.
Execute the LDAP enrolment sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (depending on how many courses and enrolments you are syncing).
Log in with the previous admin account.
Configure the LDAP enrolment settings with the "Unreachable IP address" for the LDAP host. Set the connection timeout setting to zero (the default value). Save the changes.
Log out and try to login with the LDAP user account.
Login should proceed ok, but it will take a rather long time (depending in the LDAP library your version of PHP uses and the operating system of your Moodle server, it can take up to 3-4 minutes).
Log out.
Execute the LDAP enrolmente sync task. It should fail with a connection error message after a rather long time.
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 25 seconds to appear.
Configure the LDAP settings with the "Unreachable IP address" for the LDAP host, but set the connection timeout setting to 10 seconds. Save the changes.
Log out and try to login with the LDAP user account.
Login should proceed ok, but it will take ~1-3 + 10 seconds.
Log out.
Execute the LDAP enrolment sync task. It should fail with a connection error message after ~10 seconds.
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 10 seconds to appear this time.
Configure the LDAP settings with the valid LDAP server IP address for the LDAP host. Keep the connection timeout setting to 10 seconds. Save the changes.
Log out and try to login with the LDAP user account.
Login should proceed successfully in a reasonable amount of time (~1-3 seconds, again depending on network latency, LDAP server load, etc.).
Log out.
Execute the LDAP enrolment sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (again depending on how many users you are syncing).
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 1-3 seconds to appear this time.
CAS auth
Make sure the CAS server is already setup and running.
Enable the CAS authentication plugin.
Go to CAS settings, and configure CAS settings and LDAP server settings with values for the suitable LDAP server.
Log out and try to login with the CAS user account.
Login should proceed successfully in a reasonable amount of time (~1-3 seconds, depending on network latency, CAS and LDAP server load, etc.).
Log out.
Execute the CAS authentication user sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (depending on how many users you are syncing).
Log in with the previous admin account.
Configure the CAS settings with the "Unreachable IP address" for the LDAP host. Set the connection timeout setting to zero (the default value). Save the changes.
Log out and try to login with the CAS user account.
Login should fail with a connection error message after a rather long time (depending in the LDAP library your version of PHP uses and the operating system of your Moodle server, it can take up to 3-4 minutes).
Execute the CAS authentication user sync task. It should fail with a connection error message after a rather long time.
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 25 seconds to appear.
Configure the CAS settings with the "Unreachable IP address" for the LDAP host, but set the connection timeout setting to 10 seconds. Save the changes.
Log out and try to login with the CAS user account.
Login should fail with a connection error message after ~10 seconds.
Execute the CAS authentication user sync task. It should fail with a connection error message after ~10 seconds.
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 10 seconds to appear this time.
Configure the CAS settings with the valid LDAP server IP address for the LDAP host. Keep the connection timeout setting to 10 seconds. Save the changes.
Log out and try to login with the CAS user account.
Login should proceed successfully in a reasonable amount of time (~1-3 seconds, again depending on network latency, CAS and LDAP server load, etc.).
Log out.
Execute the CAS authentication user sync task. There shouldn't be any errors and the sync should proceed in a reasonable amount of time (again depending on how many users you are syncing).
Log in with the previous admin account.
Go to the LDAP settings configuration page. It should take around 1-3 seconds to appear this time.