When to use

Use this code when you want a file to be viewed only by members within a BU academic or administrative department. Visitors will be prompted to give their BU login name and Kerberos password when they try to view files restricted in this way.

CODE EXAMPLE:

AuthType weblogin
<Limit GET POST>
require deptid nnnnn
</Limit>

NOTES:

  1. Copy and paste this code as outlined in Protect Your Subdirectory. You must modify the code. Replace “nnnnn” with the department ID number.
  2. To find a department ID, search the BU Electronic Directory. Search for the name of a person in that department. The department ID will be listed in the search results.
  3. You can limit access to several departments. Simply add additional “require deptid nnnnn” lines below the first one.
  4. You can also restrict access to all department ids that start with the same few numbers by using the asterisk (*) character. This is especially useful if there are multiple department IDs amongst members of your department, but all of those department ID begin with the same two or three digits. Simply insert the * after the first few digits that are the same.

EXAMPLES:

To restrict access to all students, faculty, and staff in the Chemistry and Physics departments, you would use this exact code:

AuthType weblogin
<Limit GET POST>
require deptid 20205
require deptid 20219
</Limit>

To restrict access to all staff in Human Resources, you would use this exact code:

AuthType weblogin
<Limit GET POST>
require deptid 17012
</Limit>

To restrict access to all staff of the BU Libraries, which has multiple department ids, which all start with 45, you would use the following code:

AuthType weblogin
<Limit GET POST>
require deptid 45*
</Limit>