To Limit the current directory and below to only CSE accounts.
Create a .htaccess file in the directory to be protected and enter the following information:
AuthType Basic
AuthBasicProvider ldap
AuthName "Roaming Access"
AuthLDAPURL ldap://ds.cse.msu.edu:389/ou=People,dc=cse,dc=msu,dc=edu?uid?sub
AuthzLDAPAuthoritative on
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
AuthzLDAPAuthoritative off
Require valid-user
To require a specific user change the line
Require Valid-user
to
require user {CSEuserid}
Create independant id:password file for access a directory.
Create a .htaccess file:
AuthType basic
AuthName "Only by invitation"
AuthUserFile /user/YOURCSEID/web/DIR/.htpasswd
Require valid-user
Create the .htpassword file:
NOTE: only use -c the first time to create the file.
htpasswd -c /user/YOURCSEID/web/DIR/.htpasswdID
Design Day
April 26, 2013