Git Product home page Git Product logo

moodle-auth_ip's People

Contributors

danitome24 avatar jpahullo avatar robertmarsal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

moodle-auth_ip's Issues

Support for IPv6

From an email:


We would like to use the Authentication plugin restricted by IP. We use Moodle 4.1.

I have the following question:
Is the plugin Authentication by IP working well with IPv6 addresses and domains?

If so, what is the acceptable format?

For example :

2b00:1110:217:d962:0:33:e35e:1f00 - this format seems to be working
2b00:1110:217:d962:0:33:e35e::/96 - not working
2b00:1110:217:d962:0:33:e35e:0000 - not working
2b00:1110:217:d962:0000:0033:e35e:0000/96 - not working

Thank you,
Judit Gyulai

Add an option to only prevent auth if ip fails whitelist

ie the use case if that we don't want to actually authenticate via this plugin, but via some other existing plugin like ldap or saml which don't have an internal password. So we'd configure this plugin to be earlier in the plugin priority list, and then have a new config checkbox something like 'Don't authenticate, just prevent login unless in ip whitelist'

  • add settings for 'also check IP before logging in', along with a configurable fail message
  • If this setting is true then the existing ip logic would be implemented in the pre_loginpage_hook and loginpage_hook, if they fail they get a nice configurable error message.
  • have tokens in the error message to clearly help the user see why it failed and what their own ip address is
  • MAYBE? If set the user_login() would always return false too. test how this works with the saml2 auth and see how the two pre_auth hooks clash or not
  • have a way to logout anyone currently logged in who's ip address doesn't match

Bulk password update

Hi, we're having a problem with our moodle site (v3.4.2 Build: 20180319) and using the Auth by IP plugin.

When we bulk upload users with authentication set to IP and their password specified in the bulk upload file the user is unable to login. When authentication is changed to manual, the password set in the file and the bulk upload repeated the users are able to login correctly. If we then try to bulk change the authentication method back to IP the user is now unable to login again.

If a user is created manually, a password assigned and authentication set to IP then they are able to login as expected, the issue only occurs to users created or updated via the bulk upload process.

Any assistance greatly appreciated

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.