vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   HTTP Authentication by User / pass / ip ranges (https://vborg.vbsupport.ru/showthread.php?t=63972)

Sir_Yaro 06-30-2004 06:32 PM

Is it possible to apply this hack for some (specyfied by me) users ?
(only mods & admin for example)

InnerSelf 07-05-2004 03:52 PM

how can i make this hack possible but then without the ipcheck?

and if not, where can i put the valid ips in who can enter? do i have to put for every member the ip in? cant figure it really out.

InnerSelf 07-08-2004 06:39 PM

can someone explain if there is no other way to avoid the ip check how to handle this ip check? how do i control this? you have to put all the ip's in there of all members? i just cant understand this.

Davez 07-08-2004 08:57 PM

[QUOTE=InnerSelf]how can i make this hack possible but then without the ipcheck?QUOTE]

Yeah, I am looking for a working version without ip check!
Can someone help us please ?
Many thanks

InnerSelf 07-14-2004 03:55 PM

Quote:

Originally Posted by miz
yes
if u do remove it then its can work with out the ips
i can write this for u if u wish..

yes please :)

TripLcixx 07-28-2004 06:01 PM

Here's the version without IPmasks:

Open global.php and look for this line:
PHP Code:

require_once('./includes/init.php'); 

Below that line, add the following:
PHP Code:

function authenticate() {
    
header("WWW-Authenticate: Basic realm=Please login with your user/pass");
    
header("HTTP/1.0 401 Unauthorized");
    echo 
"Authentication failed...";
    exit;
}

if (!isset(
$_SERVER['PHP_AUTH_USER'])) { 
    
authenticate();
} else { 
    if (
$userauth=$DB_site->query_first("SELECT password,salt FROM user WHERE username='$_SERVER[PHP_AUTH_USER]'")) {
        if (!(
md5(md5($_SERVER['PHP_AUTH_PW']) . $userauth['salt']) == $userauth['password'])) { 
            
authenticate();
        }
    } else {
        
authenticate();
    }



This will put a HTaccess popup box on all your regular forum pages. As for the admincp/modcp, it might be easier to just change the location of those to something else (can be edited in the /includes/config.php).

Make sure you don't have any extra .htaccess files with an additional htaccess/htpasswd, else it's gonna get messy ;)

Natch 07-29-2004 12:54 AM

Can you confirm that the above post is all you need to add for this to work ? none of the extra code from the first post of this thread ?

TripLcixx 07-31-2004 10:09 AM

Yes I can confirm ;)

The extra code in the first post was all needed for the IP field. (which is no default field in VBB and hence u have to alter the DB) Drop that requirement, and the whole snippet gets quite short.

Natch 08-02-2004 12:26 AM

Excellent - many thinks: I can see an excellent use for this.

bloodcult 08-02-2004 01:34 PM

nice hack, it's possible that the user logged in when they autenticate with this method?

what we have now is:
username:password when open the side (http auth) then login to forum again

it's possible:
username:password when open the side (http auth) then autologin into forum

u can use the autologin on forum, but it's not good if more then 1 users share the same workstation.

so, is it possible with autologin with http auth?


All times are GMT. The time now is 07:59 AM.

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.00955 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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