ez projects / bpce_acces
|UNIX name||Owner||Status||Version||Compatible with|
i use it on my local environment for developpement or on intranet to fix my user within my fixed IP.
This extension consist of an sso handler :
You read a very good article about sso_handler on share.ez.no by J. Vieilledent.
The solution here is http://projects.ez.no/content/edit/22191/2/eng-GB
For the first step, there is a little trick to know :
can i catch the IP of a user on my ezpublish instance?
If my server directly connect to web: in this case, you can have the User IP by using $_SERVER['REMOTE_ADDR'].
If the server is connectged via a proxy or something else you can try to use $_SERVER['HTTP_X_FORWARDED_FOR'].
For the second step, you will need to match the IP you found with an array of Range IP . I use this library :http://www.pgregg.com/projects/php/ip_in_range/
For the third step : just need to connect iwth the user wich match the range that the ip belongs.
If you have question about it, feel free to ask in the forum.