# qtaccess
# A sample access file for streaming 
# server authorization 
# ----------------------------------
# Note: 
# For each keyword, the first sentence in the comment 
# explains the keyword, and the usage: line explains
# how to use it. Anything not in angle brackets is a keyword
# and keywords are case-sensitive.
# The comment is followed by an example usage

# AuthName: The authentication realm that will be
# presented to the client (for Basic Authentication only)
# usage: AuthName <message>
# where message can be a single word or a quoted multi-word string
AuthName "streaming server realm"

# AuthUserFile: The filename that contains the list of users
# for this access file 
# If not given, the default filename is /etc/streaming/qtusers
# usage: AuthUserFile <user filename>
AuthUserFile /etc/streaming/qtusers

# AuthGroupFile: The filename that contains the groups and the 
# users that belong to each group
# If not given, the default filename is /etc/streaming/qtgroups
# usage: AuthGroupFile  <group filename>
AuthGroupFile  /etc/streaming/qtgroups

# require user: The names next to this specify which user 
# is allowed to access the media in this folder
# below are two special cases:
# require user any-user         =>      implies any user is allowed without
#                                               requiring authentication
# require user valid-user       =>      implies any user that is
#                                               authenticated is allowed access
# usage: require user <username1> <username2> ...
require user johndoe

# require group: The names of the groups that are allowed
# access to the media in this folder
# usage: require group <groupname1> <groupname2> ...
require group movie-watchers

# <Limit READ/WRITE>: This directive is to specify access control
# for READ and/or WRITE privileges. If not present, all access control
# keywords apply to READ privileges only.
# <Limit WRITE> is used for WRITE privileges, and <Limit READ WRITE> for 
# both. <Limit READ> can be omitted as the access keywords outside the
# Limit directive
# usage: <Limit [READ|WRITE] ..> ... </Limit>
<Limit WRITE>
 AuthName "streaming server broadcaster realm"
 AuthUserFile /etc/streaming/qtbroadcastusers
 AuthGroupFile /etc/streaming/qtbroadcastgroups
 require group broadcaster
</Limit>