Log in

View Full Version : Export user accounts to .htpasswd?


dangonay
03-31-2008, 03:48 AM
I've done a search and can't seem to get a straight answer.

I want to take a list of my vB users & passwords and generate a .htpasswd file so those users can then have access to a secure part of a non-VB site. I'd like to be able to get users based on usergroup they belong to.

Dismounted
03-31-2008, 04:47 AM
In a nutshell, you can't. The way vBulletin encrypts passwords is different to how .htpasswd does it. You can, however, replicate the HTTP authentication box, while comparing passwords with the ones in the database, by using PHP's header() function.