forked from twoconk/darwin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtaccess
67 lines (59 loc) · 2.77 KB
/
qtaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 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
# AuthScheme: The authentication scheme that will be used
# usage: AuthScheme <scheme>
# where scheme is either "basic" or "digest"
AuthScheme basic
# AuthName: The authentication realm that will be
# presented to the client (for Basic Authentication only)
# usage: AuthName <realm>
# where realm 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 /Library/QuickTimeStreaming/Config/qtusers for MacOSX
# If not given, the default filename is /etc/streaming/qtusers for POSIX
# usage: AuthUserFile <user filename>
#AuthUserFile /etc/streaming/qtusers
AuthUserFile /Library/QuickTimeStreaming/Config/qtusers
# AuthGroupFile: The filename that contains the groups and the
# users that belong to each group
# If not given, the default filename is /Library/QuickTimeStreaming/Config/qtgroups for MacOSX
# If not given, the default filename is /etc/streaming/qtgroups for POSIX
# usage: AuthGroupFile <group filename>
#AuthGroupFile /etc/streaming/qtgroups
AuthGroupFile /Library/QuickTimeStreaming/Config/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 any-user => implies any user is allowed without
# requiring authentication
# require 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 /Library/QuickTimeStreaming/Config/qtbroadcastusers
AuthGroupFile /Library/QuickTimeStreaming/Config/qtbroadcastgroups
require group broadcaster
</Limit>