vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   HTTP Basic Authentication against vB-Accounts (https://vborg.vbsupport.ru/showthread.php?t=61507)

Andreas 02-12-2004 10:00 PM

HTTP Basic Authentication against vB-Accounts
 
Seeing all those "user integration" requests over and over again I made a small "hack" (not really as no tables, templates or files are modified ;)) that might be useful if you want to give access to non-forum content based on forum accounts:

HTTP Basic Authentication against vB user table
------------------------------------------------

This "hack" allows you to use HTTP Basic authentication
(password protected directories) based upon vB accounts.

Update Version 0.2
------------------
I've added a configuration option to the .htaccess so
you can specify which usergroup (only one for the moment)
you want to grant access.
If you don't need this feature just leave the line commented out.

Requirements
------------
- vBulletin 3 (at least the user table) ;)
- Apache/mod_perl compiled with support for PerlAuthenHandler
- Basic Authentication feature enabled to be used in .htaccess

Installation
------------
1) Edit vBAuth.pm, fill in the configuration settings (database, etc.)
2) Put vBAuth.pm in your Perl Apache-Moduls directoy
3) (Optional) Edit .htaccess to meet your requirements
4) Put .htaccess in the directory you want to protect

genmud 02-13-2004 12:47 PM

Great hack, I am gonna make a members area, and then Install it & press teh install button ;)

tamarian 02-13-2004 03:10 PM

Clicks install :)

Great idea, I'll find some use for it. Possibly access to ad-free content outside the forum for paid subscription group.

gmarik 02-13-2004 03:37 PM

Any screenshots of the use of this .htaccess ?

Andreas 02-13-2004 06:27 PM

@tamarian
You'll have to modify the query to check usergroup/membergroup too.
I'll see if it is possible to make that configurable via the .htaccess

@gamarik
Hmm ... there are no visual effects, so which screenshout do you want to have?
A directory listing showing the .htaccess?
An authorization required dialog (I guess everybody knows that already, at least from vB.com member area)?

Andreas 02-13-2004 10:08 PM

Update Version 0.2
------------------
I've added a configuration option to the .htaccess so you can specify which usergroup (only one for the moment) you want to grant access.
If you don't need this feature just leave the line commented out.

Nam 02-13-2004 11:39 PM

This is great hack, I'm gonna try it out.

I'm confused about the directory, what exactly the name of the folder should I put the file vBAuth.pm to? CGI folder?

Xenon 02-13-2004 11:44 PM

Jup, schaut ganz guad aus :)

Andreas 02-14-2004 12:20 AM

@Nam
You must put that in your Perl Apache-Modules directory.
The exact location depends on your system, on my crappy webserver it is /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/Apache

Nam 02-14-2004 02:38 AM

So this one require root access? Lucky I have it, but mine is a little different, no Apache

it is /usr/lib/perl5/vendor_perl/5.8.0/i386-thread-multi/ then I see No Apache but auto, Bundle, Crypt, Filter, filter-util.pl, HTML, XML, now which one should I put in? or just put in i386 folder and that's it?

Using whereis apache it shows the /usr/local/apache

I've tried both but I got internal error, hmn...


All times are GMT. The time now is 01:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01201 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete