You are here

README.txt in IP Login 7.2

Same filename and directory in other branches
  1. 5 README.txt
  2. 6.2 README.txt
  3. 7.3 README.txt
  4. 4.x README.txt
IP Login
========
  Log in automatically via their IP (v4) address ranges or wildcards instead of
  having to enter a username and password - plus many other features.


Authors & main contributors
===========================
  Originally By David Thomas - davidwhthomas@gmail.com
  Now maintained by Jim Kirkpatrick - jim@i-jk.co.uk
  And with help from JohnV and others - Thanks!


Features
========
  * IP address matching works on:
    * Normal single IPs, comma separated: 123.4.5.6 or 123.4.5.6, 234.5.6.7
    * IP ranges: 123.4.5.6-10 or 123.4-111.5.6
    * Wildcards: 123.4.5.* or 123.*.*.*
    * Any combination: 127.0.0.1, 123.4.5-66.*, 234.4-5.6-77.*
    * Coming soon: IPv6 and Subnet matching via CIDR notation.
  * Integration with User Login page & block, with customisable text and labels
  * 'Log in by IP' block with simple auto-login link for those who don't want
    to use the modified User Login block.
  * Users with permission can log out and and back into another account.
  * Can be set to auto-login (or not) only on certain pages, or when custom PHP
    returns TRUE.
  * Optional destination address can be set when logged in by IP.
  * Lists IP-enabled users on the admin page at 'Site configuration' -> 'IP
    Login'.
  * Will work with external caches like Varnish when IP Login is set to
    auto-login only on specific paths.


How it works
============
  When a user visits any Drupal page (or admin-chosen page), IP Login will:
  
  1. Check if the user is not logged in and that IP login hasn't run yet for
    this session.
  2. If so, it compare the IP address (using Drupal's ip_address() function) to
    IP ranges stored in its own private table in the database.
  3. If a match is found, IP Login logs the user in programmatically as the
    account matching the IP address.
  4. If a matching IP is not found, the user can log in via normal Drupal
    accounts if they choose to.
  5. If the user has permission to log out, they can and will be given the
    option to login back in normally as another user. Users without this
    permission are auto-logged back in IP Login. This way you can force an IP
    address to stay associated and logged into an account.


Installation
============

  From scratch
  ------------
  1. Enable the module from Drupal admin -> modules
  2. Edit user accounts you want to add IP Login to.
  3. Optional: Go to the IP Login settings page to tweak and administer.
  4. Optional: Add the simple 'Log in by IP' link block to a region.

  Upgrading from 6.x-1.x branch
  -----------------------------
  NOTE: The 6.x-1.x branch is now deprecated.
  
  1. REMOVE the old IP Login folder in sites/all/module or
    sites/[yoursite]/modules
  2. Upload/add the 2.x branch
  3. Run update.php

  When you upgrade to 7.x-2.x the IP field you added to users via core the
  Profile module will be auto-imported into the new ip_login_users table.


How to test
===========
  You can test it by entering your IP address in the IP login field when
  editing your user profile, then:

  1. If the site is running on your computer you can probably use the localhost
    loopback IP address of 127.0.0.1 for testing, otherwise you will need to
    find your external IP address. IP Login shows your IP address according to
    Drupal on its admin page, but you could also use at http://whatismyip.com.
  2. You can tell it's working when you click the logout button and are either
    logged back in by IP Login or, if you have permission or are user 1, have
    the 'Log in automatically' option in the login form.
  3. IP Login displays a welcome message: "Welcome %name. You have been
    automatically logged into %sitename".
  4. You can also open the site in your browser when set to 'Private Browsing'
    mode (also called InPrivate, Incognito etc.) and see the welcome message
    indicating IP Login has logged you in.


Notes & possible incompatibilities
==================================
* This module may be suitable for users with dynamic IP addresses, like those
  assigned by DHCP or from an ISP's IP blocks etc. provided that:
    a) your're ok that anyone using these IP ranges is allowed to log in with a
    given account; and
    b) the range of possible IPs for the user is known.
  If not then IP Login will not be able to work effectively in your case.

* IP Login used to be incompatible with the following modules. It had changed
  slightly since these issues were reported so it might well work now. You
  should note that any module that wipes and/or recreates the session will
  possibly have compatibility issues with IP Login:
  * Legal
  * Secure Pages Hijack Prevention

File

README.txt
View source
  1. IP Login
  2. ========
  3. Log in automatically via their IP (v4) address ranges or wildcards instead of
  4. having to enter a username and password - plus many other features.
  5. Authors & main contributors
  6. ===========================
  7. Originally By David Thomas - davidwhthomas@gmail.com
  8. Now maintained by Jim Kirkpatrick - jim@i-jk.co.uk
  9. And with help from JohnV and others - Thanks!
  10. Features
  11. ========
  12. * IP address matching works on:
  13. * Normal single IPs, comma separated: 123.4.5.6 or 123.4.5.6, 234.5.6.7
  14. * IP ranges: 123.4.5.6-10 or 123.4-111.5.6
  15. * Wildcards: 123.4.5.* or 123.*.*.*
  16. * Any combination: 127.0.0.1, 123.4.5-66.*, 234.4-5.6-77.*
  17. * Coming soon: IPv6 and Subnet matching via CIDR notation.
  18. * Integration with User Login page & block, with customisable text and labels
  19. * 'Log in by IP' block with simple auto-login link for those who don't want
  20. to use the modified User Login block.
  21. * Users with permission can log out and and back into another account.
  22. * Can be set to auto-login (or not) only on certain pages, or when custom PHP
  23. returns TRUE.
  24. * Optional destination address can be set when logged in by IP.
  25. * Lists IP-enabled users on the admin page at 'Site configuration' -> 'IP
  26. Login'.
  27. * Will work with external caches like Varnish when IP Login is set to
  28. auto-login only on specific paths.
  29. How it works
  30. ============
  31. When a user visits any Drupal page (or admin-chosen page), IP Login will:
  32. 1. Check if the user is not logged in and that IP login hasn't run yet for
  33. this session.
  34. 2. If so, it compare the IP address (using Drupal's ip_address() function) to
  35. IP ranges stored in its own private table in the database.
  36. 3. If a match is found, IP Login logs the user in programmatically as the
  37. account matching the IP address.
  38. 4. If a matching IP is not found, the user can log in via normal Drupal
  39. accounts if they choose to.
  40. 5. If the user has permission to log out, they can and will be given the
  41. option to login back in normally as another user. Users without this
  42. permission are auto-logged back in IP Login. This way you can force an IP
  43. address to stay associated and logged into an account.
  44. Installation
  45. ============
  46. From scratch
  47. ------------
  48. 1. Enable the module from Drupal admin -> modules
  49. 2. Edit user accounts you want to add IP Login to.
  50. 3. Optional: Go to the IP Login settings page to tweak and administer.
  51. 4. Optional: Add the simple 'Log in by IP' link block to a region.
  52. Upgrading from 6.x-1.x branch
  53. -----------------------------
  54. NOTE: The 6.x-1.x branch is now deprecated.
  55. 1. REMOVE the old IP Login folder in sites/all/module or
  56. sites/[yoursite]/modules
  57. 2. Upload/add the 2.x branch
  58. 3. Run update.php
  59. When you upgrade to 7.x-2.x the IP field you added to users via core the
  60. Profile module will be auto-imported into the new ip_login_users table.
  61. How to test
  62. ===========
  63. You can test it by entering your IP address in the IP login field when
  64. editing your user profile, then:
  65. 1. If the site is running on your computer you can probably use the localhost
  66. loopback IP address of 127.0.0.1 for testing, otherwise you will need to
  67. find your external IP address. IP Login shows your IP address according to
  68. Drupal on its admin page, but you could also use at http://whatismyip.com.
  69. 2. You can tell it's working when you click the logout button and are either
  70. logged back in by IP Login or, if you have permission or are user 1, have
  71. the 'Log in automatically' option in the login form.
  72. 3. IP Login displays a welcome message: "Welcome %name. You have been
  73. automatically logged into %sitename".
  74. 4. You can also open the site in your browser when set to 'Private Browsing'
  75. mode (also called InPrivate, Incognito etc.) and see the welcome message
  76. indicating IP Login has logged you in.
  77. Notes & possible incompatibilities
  78. ==================================
  79. * This module may be suitable for users with dynamic IP addresses, like those
  80. assigned by DHCP or from an ISP's IP blocks etc. provided that:
  81. a) your're ok that anyone using these IP ranges is allowed to log in with a
  82. given account; and
  83. b) the range of possible IPs for the user is known.
  84. If not then IP Login will not be able to work effectively in your case.
  85. * IP Login used to be incompatible with the following modules. It had changed
  86. slightly since these issues were reported so it might well work now. You
  87. should note that any module that wipes and/or recreates the session will
  88. possibly have compatibility issues with IP Login:
  89. * Legal
  90. * Secure Pages Hijack Prevention