RealProxy authentication provides a way for you to control the sites visited by RealPlayer. With this feature, you can configure RealProxy to require a valid user name and password before allowing a RealPlayer to access a particular URL.
You can restrict which users can access content originated from specific locations. You can use this feature to ensure that only certain users can play streaming media that originates outside your network.
You create a list of the sites that all users can visit. If a user requests content from a site not on this list, she is asked for a user name and password. If you have previously created a username and password for that person, she receives the media. If you haven't created a password, or if the user types it incorrectly, she is denied access.
RealProxy identifies requests for secure content by the host name in the URL.
Authentication is a feature also used by some RealServers. As a result, some users may be asked more than once for a user name and passwordonce by RealProxy, and once by the transmitter RealServer. In each case, the information the user needs to type will be different.
Setting up the authentication feature has these steps.
To visit any other sites, users must enter their name and password (see the next step).
|
|
Additional Information |
|---|
| See "Step 1: Identify Permitted Sites". |
These users are permitted to visit sites not listed in the previous step.
|
|
Additional Information |
|---|
| See "Step 2: Setting Up User Names and Passwords". |
In this step you choose the sites which all users are allowed to visit without having to supply a user name and password.
Yes.
ConnectRealm.
Connect_RN5.
| Use this form... | ...to indicate these sites: |
|---|---|
| *.org | All sites ending with .org |
| example.com | The site named www.example.com, including www.sports.example.com. |
| *.example.com | |
|
|
Note |
|---|
Use only one asterisk. For example, *.*.com is not
allowed.
|
Yes.
Normally, when Allow Duplicate IDs is set to No, a user can use only one computer to play streaming media. If a user tries to log in from a second computer, he or she will receive an error message. The user must log out at the first location before being permitted to log in at the second location.
Add the user names and passwords for those users who are allowed to access content. These users will be able to receive streaming media from sites outside the rules you created in "Step 1: Identify Permitted Sites".
Use the following instructions to add to the list of authorized users.
If you are using Windows NT to list the users, use tools supplied by Windows NT instead.
ConnectRealm.
Authentication has these optional features:
The databases stores the list of users' credentials. RealProxy includes these database interfaces:
It's best to use the text file method only for simple tracking or for troubleshooting the system before linking a full-fledged database to RealProxy. For small-scale data, the text file method is also faster than a full-fledged database.
Use the instructions below to choose the name and type of database that will store users' names and passwords.
A generic database name appears in the Edit Database Name box.
Flat file, MSQL, or ODBC.
con_r_db directory under the main RealProxy directory. See "Authentication Data Storage".
A realm contains information about the type of authentication protocol and the database where the authenticated users' names will be stored. If you will be using Windows NT to authenticate users, the realm lists the type of NT authentication and the NT administrator-defined group name.
RealProxy has three methods of authenticating the identity of visitors. Each realm can use only one authentication method.
If the clients that will be accessing content on your RealProxy are RealPlayer version 5.0 and earlier, be sure to use the RealSystem 5.0 style.
This method is only available to systems using Windows NT, and requires that RealProxy itself be installed on an NT Server. For authenticating content, it also requires Microsoft Internet Explorer and RealNetworks RealPlayer.
Use the instructions below to create a realm.
A generic realm name appears in the Edit Realm Description box.
If you choose Basic or RealSystem 5.0, you will also need to select a database in which the names and passwords of authenticated users will be stored. Refer to "Setting Up a Database".
If you choose Windows NT Lan Manager, you do not need to select a databaseinstead, RealProxy will use the NT list of names. Use the additional steps shown here:
When you use the RealSystem 5.0 authentication protocol, RealProxy stores all passwords in an encrypted format. Passwords can be entered and changed through RealSystem Administrator. If you want to change the passwords manually, without using RealSystem Administrator, you can use the supplied password command line utility. It is located in the RealProxy Bin directory.
You can also use these instructions as a basis for writing your own CGI scripts and Web pages to accomplish the same purpose automatically.
mkpnpass username realm
username is the user name exactly as it is entered or will be entered in the authentication database or text file.
realm is the value of the Realm variable specified in the relevant list.
For RealSystem Administrator users, use the value of the Realm variable in the RealAdministrator_Files list within the FSMount list in the configuration file. (You must open the configuration file itself to see this value.)
The resulting encrypted password is displayed on the screen.
RealProxy encrypts passwords with the MD5 hashing algorithm. It uses the form MD5("username:realm:new_password"). On BSD systems and some other UNIX systems, you can generate these passwords with the following command:
echo -n "username:realm:new_password" | md5
User directory (see "Users Directory").
This section describes the methods for storing user name and password data. The information can be stored in either a series of text files or in a database. Templates for common databases are created during installation, that correspond to the database methods listed in "Setting Up a New Database".
The default configuration uses the text file storage method to provide storage for all the realms.
The following directories contain the text files which store data. The center letter indicates the authentication protocol: r is for RN5, b is for Basic.
| Directory Name | Data Storage for the following type of information |
|---|---|
| adm_b_db | RealSystem Administrator User Authentication |
| con_r_db | Connection Authentication |
The contents of the directories are given in the table below.:
When RealProxy creates the file structure, it creates the ppvbasic.txt file. The second and subsequent times you start the RealProxy, the program looks for this file. If the file does not exist, it recreates the directory structure.
|
|
Warning |
|---|
| Do not delete the ppvbasic.txt file! If you delete the ppvbasic.txt file, RealProxy will rewrite the directories and will erase their prior content. |
The files in this directory are named username, where username is the user name. This directory contains one file per registered user.
The first line of each file has the following format:
password;uuid;uuid_writeable
password |
When user authentication is in use, this stores the password. Otherwise shows an asterisk (*). Note: Passwords are encrypted. To change them manually, see "Changing RealSystem 5.0 Authentication Passwords". |
uuid |
In player validation, stores playerID. In user authentication, an asterisk (*) appears in this field. |
uuid_writeable |
A flag set and used by RealProxy: 0 playerID is in database 1 record created, but playerID is not yet registered |
|
|
Note |
|---|
If you manually edit the files, be sure that any blank (or
unused) fields use an asterisk (*) as a placeholder. Do
not use a space for a placeholder.
|
This directory contains accesslog.txt, which is not created until authentication is enabled and the first user connects to RealProxy.
Each line of accesslog.txt describes the result of an attempt to view a clip. Syntax of this file:
status;userid;uuid;ip;url;access_type;permission_on;start_time;end_time;total_time;
why_disconnect
This section describes the structure of the database templates included with RealProxy.
To set up the database, see "Setting Up Other Types of Data Storage".
The database templates include these tables:
Gives the list of user names and passwords.
| Field | Description |
|---|---|
userid |
User name of up to 50 characters. Ties to permissions table. |
password |
In user authentication, this stores the password. Otherwise blank. Note: Passwords are encrypted. To change them manually, see "Changing RealSystem 5.0 Authentication Passwords". |
uuid |
In player validation, stores clientID. In user authentication, an asterisk (*) appears in this field. |
uuid_writeable |
A flag set and used by RealProxy: 0 clientID is in the database1 the record has been created but the clientID is not yet registered with RealProxy. |
Shows which restricted sites have been accessed.
Support for two types of databases is included: ODBC and MSQL.
You must now tell RealProxy where to find your database.
./msql2d &
./msqladmin create databasename
databasename will need to match the database cited in the Databases list.
.msql -h localhost databasename < ppvdemo.db