The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#12
|
|||
|
|||
Polo
we are trying to manage the htaccess thru vB CP, so when everyone registers the login and pass are added automatically to the .htaccess (.htpasswd) using that script has nothing to do with that, although they have the new SQL version but it is very expensive, and making a hack code for vB is much better with a better features besides widexl.com support really sucks. |
#13
|
|||
|
|||
I haven't messed with .htpasswd files in ages, but it should be pretty simple to add new people to the file on the fly. But if a user changes their password that might be a pain. Unless you dump out the whole userbase fresh on every change?
There is also something like mod_auth_dbm, for dbm files instead of text files. That could make it trivial to both add and update the .htpasswd dbm file on every new user and changed password. Would something ugly like writing out a .htpasswd from scratch every time work all right? Can you see if you have mod_auth_dbm support? (I think it comes with apache and might be turned on by default.) -Jonathan |
#14
|
||||
|
||||
Using .htpasswd, could be very ineffeciant, so the best plan for it would be to use $PHP_AUTH_USER and $PHP_AUTH_PASS to get the username and password, then drop these varibles into a routine to see if they are a registered member, then if they are, and the password is correct, set a cookie to their system so they would be logged in.......
This check would have to added to everypage or would have to alter the getpermissions function in someway to check this.... |
#15
|
|||
|
|||
We actualy use this on our site to give members only access to hosted sites on our server.
From what I can gather it is pretty easy to install on the server and involves a mod to the httpd.conf file. It gets passes directly from the SQL database and users can be removed from access by removing their accounts using the admin control panel. We have been using it for a few weeks now and had no problems with it at all, users can even change pass as it does not write to a htaccess file it just accesses the database. I will get my server admin Gaf to write a doc on it and post it up in the next few days. I also know he has made it so we can give certain user groups access to certain sections of the site. Not a clue how but it works. HM |
#17
|
|||
|
|||
bump
|
#18
|
|||
|
|||
has anybody figured this hack out yet?
|
#19
|
|||
|
|||
I'm curious, what do you actually need it for?
-Jonathan |
#20
|
|||
|
|||
well i have a games and anime site, and have tons of media to download. But i only want members to be able to download, so i was wondering if i could use the members already registered in my vbb....
|
#21
|
|||
|
|||
To HTACCESS protect pages for members only...
Install mod_auth_mysql on apache. then for example in httpd.conf <DIRECTORY /home/testdir> AuthType Basic AuthUserfile /dev/null AuthName "Forum Member Access Only" AuthType Basic AuthGroupFile /dev/null AuthMySQLHost localhost AuthMySQLCryptedPasswords Off AuthMySQLUser <user> AuthMySQLPassword <pw> AuthMySQLDB <forums dbase name> AuthMySQLUserTable user AuthMySQLNameField username AuthMySQLPasswordField password <Limit GET POST> require valid-user </limit> </DIRECTORY> just change user/pw to user/pw you use to access dbase and dbase name to whatever ya dbase is called and bobs ya uncle. Or.... <DIRECTORY /home/testdir> AuthType Basic AuthUserfile /dev/null AuthName "Member Access Only" AuthType Basic AuthGroupFile /dev/null AuthMySQLHost localhost AuthMySQLCryptedPasswords Off AuthMySQLUser <user> AuthMySQLPassword <pw> AuthMySQLDB <forums dbase name> AuthMySQLUserTable user AuthMySQLNameField username AuthMySQLPasswordField password AuthMySQLGroupField usergroupid <Limit GET POST> require group 6 7 </limit> </DIRECTORY> The above example restricts to forum members who are 'admins & mods' a list of our group ids are.. # GROUP ID's # 1 Unregistered / Not Logged In # 2 Registered # 3 Users Awaiting Email Confirmation # 4 (COPPA) Users Awaiting Moderation # 5 JNR Admin # 6 Administrator # 7 Moderators # 8 Banned # 9 Moderated # 10 Gold Member # 11 Platinum Member You can see we have a few of ours added at the end, lol Good luck |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|