Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

.htaccess, Open Directory, and Leopard Server OS X Server
I was looking to set up .htaccess on Leopard server, and as I was testing the .htpasswd file I set up for the user (myself), I tried the wrong password and it let me in! It turns out I had used my regular password that's set up through Open Directory. So I deleted the .htpasswd file, and I removed all references to it in the .htaccess file to further test. This is the resulting .htaccess file:
AuthName "Server Access"
AuthType Digest
require valid-user
Just by using the above .htaccess file, I am able to login with any user that has an Open Directory account. Nice treat, for me anyway. I'm guessing others will have to add restrictions for users they don't want to have access.

[robg adds: I have no way of testing this one...]
    •    
  • Currently 1.80 / 5
  You rated: 1 / 5 (10 votes cast)
 
[16,311 views]  

.htaccess, Open Directory, and Leopard Server | 1 comments | Create New Account
Click here to return to the '.htaccess, Open Directory, and Leopard Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
.htaccess, Open Directory, and Leopard Server
Authored by: ptone on Jul 03, '08 01:38:59PM

At least in Tiger, there was an entire UI for this in Server Admin to control Realms.

I have to imagine that there is still something in 10.5

If you want to write your apache directives you can - but this is basic OS X server web functionality that has been there for some time...

-P



[ Reply to This | # ]