Another title might be Apache 2 Authentication on SUSE OES using eDirectory and .htaccess
Anyways, I found out how to do this and it was very simple. I found this on Novell’s OES web services forum.
Posted by Brian Snipes:
Edir (through LDAP) authentication to a web server directory on OES/Linux
In the section, change the AllowOverride line to:
AllowOverride Limit AuthConfig
Then restart apache2.
Place a .htaccess file in the directory to require authentication for. Here is a .htaccess file example that searches from the root of the tree for the user. If the user is coming from the 192.168/16 network, no username or password is asked for in this example.
Deny from all
Allow from 192.168.
AuthName “Restricted Access”
You can specify a particular context and for it not to search subcontainers with a line like this:
I might add that it works great now! I was able to setup a password protected site at work to post our Safety Videos and other protected content to.