SREd-URV / moodle-auth_ip

Manual authentication plugin that prevents access to your Moodle from different IPs than those allowed.
GNU General Public License v3.0
1 stars 6 forks source link

How to assign particular user to particular IP Address #9

Open AmrataRamchandani opened 7 years ago

AmrataRamchandani commented 7 years ago

Hi,

Instead of checking if any user is login in through allowed IPs, Is there a way we can map a specific user to particular ip ?

jpahullo commented 7 years ago

Hi! Well, this is not the expected behaviour and initial design of this auth plugin.

The idea of this auth plugin is to allow to auth into Moodle to any user with this authentication type to be restricted from the given set of IPs. Lastly, it was contributed with ranges of IPs. In addition, this behavior allows a lower level of maintenance and administration.

If you want to, you can make a PR with such functionality, letting administrators to pair users with IP addresses. It could be nice to have such functionality. However, we have no time to do that by now.

Thansk for the feeback!