We have our Intranet site locked down so only authenticated users can see content. We use the LDAP Integration module to authenticate our users if that matters.

We've installed IP Login and setup a couple of IP addresses for specific users' accounts. When they go to the main page from their PCs, our regular login block appears with a link to "log in automatically" above it. When they click on that link, it goes to www.mydomain.com/user/login_by_ip?ip_login_override_pages=yes and displays our 403 page without the login block. Our access log has access denied messages for the above URL and for our Intranet main page.

What we expected would happen is the user would go to the main page of our Intranet and not see any login box. They would be logged in automatically and have the permissions for the "authenticated user" role.

Is there something we're missing?

Comments

jim kirkpatrick’s picture

Status: Active » Postponed (maintainer needs more info)

Hi RGraves.... Can you confirm a few things please?

  1. How is the site locked down - is there anything apart from Drupal permissions blocking content - like .htaccess etc?
  2. What settings do you have for IP login beyond the defaults?
  3. Can you get into other pages after the 'access denied' message? (i.e. ctrl-F5 or another page)
  4. What other modules are installed that might be relevant?

I've tested your rough use-case on my machine: i.e. set anon users to not have 'access content' in permissions; opened a fresh session and IP-login happens fine with no issue. On logging out I get the expected 'access denied' as I'm a anon user, on auto-logging back in all is fine again.

rgraves’s picture

Figured it out!

The problem was the Path Access module we have installed. Disabling that allowed IP Login to work. I think the reason for having path access is no longer necessary so we will probably just end up removing the module.

Thanks for your prompt response. That helped to narrow it down and find the cause.

jim kirkpatrick’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Result!