LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to authenticate external users but bypass prompt on local LAN users? (http://www.linuxquestions.org/questions/linux-security-4/how-to-authenticate-external-users-but-bypass-prompt-on-local-lan-users-342335/)

taiwf 07-12-2005 12:50 AM

how to authenticate external users but bypass prompt on local LAN users?
 
HI,
I would like to have a password prompt to users connect remotely but no prompt for local LAN user.
The password Directory i set prompts every user. Is there a way to just prompt login for remote/external user?





<Directory "/var/">
AuthType Basic
AuthName WebDir
AuthUserFile /home/webusrs
Require valid-user
Satisfy All
</Directory>




Thanks in advance.

Matir 07-12-2005 05:58 PM

I don't think you can use the standard directives to accomplish this. You might need to use a script of some sort.

taiwf 07-12-2005 06:46 PM

Hmm , i yet to play around with script. Can anyohe shine so light on me on what to do with script to accomplish this?

Matir 07-12-2005 10:02 PM

You'd probably be best suited to use a PHP script for authentication, but it's somewhat non-trivial to do this.

taiwf 07-13-2005 07:18 AM

i look around and found it on the manual page lol.. it was actually rather simple

<Directory /usr/local/apache/htdocs/sekrit>
AuthType Basic
AuthName intranet
AuthUserFile /www/passwd/users
AuthGroupFile /www/passwd/groups
Require group customers
Order allow,deny
Allow from internal.com
Satisfy any
</Directory>


http://httpd.apache.org/docs/howto/auth.html

Matir 07-13-2005 10:01 AM

Ah, now that is interesting. LQ Bookmark, here I come. :)


All times are GMT -5. The time now is 11:23 PM.