Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > how does Apache authenticate in OS X?

how does Apache authenticate in OS X?
Thread Tools
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Apr 25, 2005, 09:59 PM
 
By default .htaccess protected directories do not seek out htpasswd generated files to authenticate against. Rather, if you set your htaccess file to:

Code:
require valid-user
any valid account on that system (generated through the Accounts pref pane) will have access to this directory.

How does OS X do this? How would I go about setting this up on other Unix platforms? I'd like to manage access to htaccess protected directories at the system level (i.e. a password change at the system level affecting access to htaccess protected directories).

Does this make sense?
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Apr 26, 2005, 05:04 AM
 
My guess is that it goes through /etc/passwd, which is a mirror of the NetInfo user database.

That said, you really shouldn't do this, unless you're using Digest authentication. Basic authentication sends passwords over the network in what amounts to cleartext (it uses Base64, which is about as strong as ROT13). Use Digest authentication if you have to use anything.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:27 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2