This forum is read-only and is provided for reference. The new CensorNet forums will be operational shortly.
forum.censornet.com :: View topic - How to turn off user authentication (Censornet 3.2)
forum.censornet.com Forum Index forum.censornet.com
CensorNet is an Internet Management Appliance
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to turn off user authentication (Censornet 3.2)

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    forum.censornet.com Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
stonefish



Joined: 07 Apr 2003
Posts: 2448
Location: Bristol, UK

PostPosted: Thu May 20, 2004 7:24 pm    Post subject: How to turn off user authentication (Censornet 3.2) Reply with quote

The following instructions are based on Tim's original posting and modified for the current release.

Login to the box as "root"...
cd /usr/src
bunzip2 DansGuardian-2.6.1-custom.tar.bz2
tar xvf DansGuardian-2.6.1-custom.tar
cd DansGuardian-2.6.1

emacs GetAccessLevel.c
Find the function get_access_level
below the line: struct tm* the_time;
add: return 2;
Save the file, exit the editor

emacs ConnectionHandler.cpp
search for "access_level = 0"
change it to "access_level = 2"
Save and exit

emacs OptionContainer.cpp
search for "inuserexceptions" function definition
comment out "/* */" the entire if {} statement at the beginning of the definition, e.g....
bool OptionContainer::inuserexceptions(std::string user) {
/* if (user.length() < 1) {
return true; // hack to force DG to allow connection for yet unauthorized users (blank usernames will be caught and denied acess by squid)
} */
return exception_user_list.inList((char*)user.c_str());
}

Save and exit the editor.

make all
cp -f ./dansguardian /usr/local/sbin/
/etc/init.d/dansguardian restart

emacs /usr/local/squid/etc/squid.conf.tmpl
Search for "http_access deny all"
As per the instructions in the comment just above this line, comment out "http_access allow authenticated_users all" and uncomment "http_access allow all"
Save and exit the editor
Run update_squid_conf

That's it!

Regards
Neil
_________________
Neil Briscoe
Adelix Limited
neil.briscoe@adelix.com

Adelix Limited - WiFi, VoIP, CensorNet, Linux solutions and consultancy.
www.adelix.com www.censornet.com
Back to top
View user's profile Send private message
Hybrid
Guest





PostPosted: Mon Jun 21, 2004 12:57 pm    Post subject: Re: How to turn off user authentication (Censornet 3.2) Reply with quote

make all


Is the error we get when trying to execute that command. Could someone tell me what has gone wrong and how to retify it?

The box still seems to work fine but filtering doesnt exist?!

Someone please help.

Cheers
Back to top
Hybrid
Guest





PostPosted: Mon Jun 21, 2004 3:37 pm    Post subject: Reply with quote

That problem has now been fixed.

Cheers.
Back to top
GuernseyPilot
Guest





PostPosted: Fri May 13, 2005 4:29 pm    Post subject: Reply with quote

Is the procedure the same for ver 3.3?

Thanks....Jason.
Back to top
Gex
Guest





PostPosted: Thu Mar 30, 2006 9:51 am    Post subject: Reply with quote

Neil
thanks for your tips
worked fine for me
Censornet v3.3r6
and many thanks for CensorNet.
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    forum.censornet.com Forum Index -> General Questions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group