niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
mod_auth_mysql
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Michael Luff
*nix forums beginner


Joined: 19 Jul 2006
Posts: 4

PostPosted: Wed Jul 19, 2006 7:31 am    Post subject: mod_auth_mysql Reply with quote

Hi All,

I've got mod_auth_mysql working nicely but I would like
the users on my internal network not to have to enter a username and
password, just people accessing from outside.



I've tried various solutions using Order deny,allow; allow from and so
forth but with no luck, I end up with everyone being prompted or no-one.



Here's my unmodified <Directory> command from my httpd.conf that
requires everyone to supply a password, can anyone suggest how I can
modify it to allow access from 10.0.0?



<Directory /var/www/localhost/htdocs>

AuthName "authentication required"

AuthType Basic



AuthMySQLHost localhost

AuthMySQLEnable on

AuthMySQLUser xxxxxx

AuthMySQLPassword xxxxxxx

AuthMySQLDB auth

AuthMySQLUserTable users

AuthMySQLNameField user_name

AuthMySQLPasswordField user_passwd

AuthMySQLGroupTable groups

AuthMySQLGroupField user_group

# This next line controls which group(s) can access the resource

require group user admin

</Directory>



Regards,



Michael Luff MSc B.Eng (Hons) MIET
Facilities & Systems Manager



T: +44 (0)20 8614 7604
F: +44 (0)20 8614 7601
M: +44 (0)7976 404956
E: Michael.luff@mailsource.co.uk




MailSource UK Limited

- Europe's leading specialist in integrated document delivery solutions
- Holders of the RoSPA Health & Safety Gold Medal 2006/2007

Northumberland House
15 Petersham Road
Richmond-upon-Thames
Surrey TW10 6TP


www.mailsource.co.uk
Back to top
elaine
*nix forums beginner


Joined: 19 Jul 2006
Posts: 1

PostPosted: Wed Jul 19, 2006 12:49 pm    Post subject: Re: mod_auth_mysql Reply with quote

Michael,

Try to use the "allow" and "satisfy" directives.
This is an example, that we use to protect our intranet access :
(Note that the IP's and server name were modified, and we use the deny
directive
to refuse connections from reception kiosk.)

<Limit GET PUT POST>

# Allow access only to authenticated users from MySQL
# or users that are in the intranet
# (except IP xx.xx.xx.xx : reception kiosk)

require valid-user
Order allow,deny
Deny from xxx.xxx.xx.x

# Allow access from our internal network without
# username and password

Allow from example.com

Satisfy any
</Limit>


You can read more details about Satisfy directive :

http://httpd.apache.org/docs/2.2/mod/core.html#satisfy

Regards,
Elaine

Michael Luff wrote:

Quote:
Hi All,

I've got mod_auth_mysql working nicely but I would
like the users on my internal network not to have to enter a username
and password, just people accessing from outside.



I've tried various solutions using Order deny,allow; allow from and so
forth but with no luck, I end up with everyone being prompted or no-one.



Here's my unmodified <Directory> command from my httpd.conf that
requires everyone to supply a password, can anyone suggest how I can
modify it to allow access from 10.0.0?



Directory /var/www/localhost/htdocs

AuthName "authentication required"

AuthType Basic



AuthMySQLHost localhost

AuthMySQLEnable on

AuthMySQLUser xxxxxx

AuthMySQLPassword xxxxxxx

AuthMySQLDB auth

AuthMySQLUserTable users

AuthMySQLNameField user_name

AuthMySQLPasswordField user_passwd

AuthMySQLGroupTable groups

AuthMySQLGroupField user_group

# This next line controls which group(s) can access the resource

require group user admin

/Directory



Regards,



Michael Luff MSc B.Eng (Hons) MIET
Facilities & Systems Manager



T: +44 (0)20 8614 7604
F: +44 (0)20 8614 7601
M: +44 (0)7976 404956
E: Michael.luff@mailsource.co.uk



MailSource UK Limited



- Europe's leading specialist in integrated document delivery solutions

- Holders of the RoSPA Health & Safety Gold Medal 2006/2007



Northumberland House

15 Petersham Road

Richmond-upon-Thames

Surrey TW10 6TP





www.mailsource.co.uk <http://www.mailsource.co.uk/


Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 10:45 pm | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Using mod_auth_mysql w/ PHP Jose.Dr.G@gmail.com PHP 2 Tue Mar 28, 2006 6:36 pm
No new posts Mod_Auth_Mysql v2.20 Don O'Neil Apache 2 Fri Feb 24, 2006 3:11 am
No new posts mod_auth_mysql (apache2) and utf8 charset? mueller-w Debian 0 Thu Feb 23, 2006 10:31 pm
No new posts htaccess with mod_auth_mysql Daniel Silva Apache 6 Sat Jan 28, 2006 4:35 am
No new posts mod_auth_mysql Robbie Garrett Apache 5 Tue Dec 20, 2005 1:09 am

Car Loans | Loan | Debt Consolidation | Home Loan | www.collegeanduniversitysearch.net
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2301s ][ Queries: 16 (0.1517s) ][ GZIP on - Debug on ]