Call me stupid but I appear to have locked myself out of my site :)

I just set it up and used this module on a previous project so installed. I set it up to force authentication ALWAYS and to use HTTP Basic. I logged out (without changing permissions) and now when I try to login, it tells me I have an invalid username and password.

Am I doing something stupid or do I need to re-install!?!

Sorry if I'm missing something! Thanks,

Adam

Comments

darren oh’s picture

Status: Active » Postponed (maintainer needs more info)

This should only happen in this version if the user name or password is not recognized. If you are running PHP as a CGI, it's possible that you may have typed them correctly but our workaround has failed. If you did type them correctly but do not have permission to access secured pages, the error should be, "You have not been authorized to log in to secured pages."

adshill’s picture

I typed them correctly for sure... I use the same admin username and password on around 12 drupal sites!

I'm not sure what you mean by using PHP as a CGI... I am on basic shared hosting (drupal friendly with SiteGround) but this is literally a clean install of Drupal 6.8 made about 10 minutes before installing the module and its the only module over core that I installed, or even activated (ie. all core modules are as install.)

Any ideas what I can do to solve this?

Thanks for quick response and understanding, and glad to hear it may not be just me being stupid!

Adam

adshill’s picture

Just for info - the message I get is:

The name or password entered for area “My Site” on www.mysite.org:80 was incorrect. Please try again.

Your password will be sent in the clear.

I've obviously substituted my URL and the name of the site with "My Site" / "mysite"

Thanks again.

darren oh’s picture

Could be a browser issue. What browser version are you using? You can use Wireshark to examine the traffic between your browser and the server.

adshill’s picture

I think we could put this down as a bug. Using Safari 3, cancelling out of the password process just results in a blank page. In Firefox, I get the ability to reset my password.

I've reset the password and tried again and it still doesn't allow access. Not sure what's going on here but I have to uninstall the module as its not allowing me access. Happy to help try and debug this but need some more directions on what it could be that is not allowing access given that I'm using the correct username and password for user 1.

As this is a completely clean install I also expect its something anyone can look at. Unfortunately I'm on a tight timescale and need to get on with the development of the site at this moment.

Thanks,

Adam

adshill’s picture

HTML login menu works fine so I'm going with this but I've now tried the other method on IE, Safari and Firefox and with correct login it won't allow me access. They just keep going back to the same login request.

darren oh’s picture

If you'll create a test account, I can try to diagnose the problem. You can enable both HTTP Basic and HTML form authentication so there is a fallback if HTTP authentication doesn't work.

fuquam’s picture

I'm having a similar issue. Exact issue if you just go by the original post title.

I installed the module, went through the settings, then logged out. When I tried to log back in, yes I got the log in screen, it went nowhere. Now wheneever I try to even go to the URL it just sits there and never loads the page. I let it run for over an hour just to see if it would time out but it never did. I tried the PHP/CGI patch on the htaccess file but that didn't fix anything. Then I manually dumped the module directory so I could access my site again. Once I was able to get back on my site I reinstalled the module but anytime I try to navigate anywhere the site just sits there. The progress bar never moves. Do I need to delete something in the database to completely uninstall it?

I'm using Firefox 3 as my browser, Drupal 6.9, this particular site is in a subdomain, I chose HTTP Basic for the force authentication. Not sure if any of that matters. It hasn't for anything else.

fuquam’s picture

I got it to work. I think I had something conflicting in my htaccess file. I reinstalled the module, deleted some things in the htaccess file and now it works like a charm. The guest user and password ID still bring up "access denied" but otherwise it works great. Disregard my last post.

darren oh’s picture

fuquam: Do you have a copy of your old htaccess file so we can find the source of the problem?

darren oh’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)