i am testing an application. requirement for users is that they must be in uni's central system and also in moodle's users table to use moodle.
how can i configure that once users go to mymoodleapp.com they get redirected to ldap server. After authenticating the user they should be checked in local users table. if they are in the local table they are allowed access otherwise redirected back to ldap page with message that they are not authorised to use moodle app.