I'm trying to use drupal for building an intra/extranet.
What we would like to do is to allow read access to some items for any host inside our local network without authentication, while the same informations should be available from outside with identification.
Several networks could be identified as local.
And as a really nice feature several access-levels depending on ip... we are in a university, and we could allow some information to other institute in the university and not all of the internet.

Maybe as a specific access module, or maybe by assigning a specific role : localaccess

Comments

sugiggs’s picture

Up...

i want to know the answer also

joachim’s picture

subscribing.
I'd like the exact same thing -- authenticated access outside the building, free access from a particular IP.

goudal’s picture

Well I have finally a written a kind of module doing that.
Maybe I can send the code so you can test.

goudal’s picture

Well... I have written a module (maybe not so well designed)... I can send the code.

shopgirl_11’s picture

Version: 5.x-dev » 6.6

Hi,

I need this kind of module as well... If anyone can help, i'd really appreciate it!

thanks,
Bianca

joachim’s picture

The ipAuthenticator (http://drupal.org/project/ipAuthenticator) module does this. I've run it on a site with a few initial hiccups (possibly due to caching) but now it works fine.

Should we close this issue as the feature is available in a contrib module?

shopgirl_11’s picture

Hi there,

I was trying to use this module but when i tried to key in an IP address, this is what i get:

user warning: Out of range value adjusted for column 'ip1' at row 1 query: INSERT INTO ip_authenticator (ip1, ip2, roles) VALUES ('-1062729495','','1') in C:\inetpub\Drupal\sites\all\modules\ipAuthenticator\ipAuthenticator\ip_authenticator.admin.inc on line 117

Not sure what caused this but if you have an idea, please help.

Thank you for your immediate response Joachim, appreciate it.

joachim’s picture

File a bug in that module's issue queue... :)

dpearcefl’s picture

Status: Active » Closed (won't fix)

Closing this issue because a solution in the form of a contrib module was provided.