You are here: Helix Administrator > Security > User Databases > Authentication Text Files

Authentication Text Files

The default configuration uses the text file storage method to provide storage for all default realms. The following directories contain the text files which store data. The center letter indicates the authentication protocol. For example, b is for Basic.

Supplied Data Storage Directories

Directory Name

Access Type

adm_b_db

Helix Administrator users.

cdi_b_db

Content distribution subscribers requesting content.

con_r_db

Users requesting clips or broadcasts.

enc_b_db

RealNetworks encoders delivering live streams.

enc_w_db

Windows Media Encoder delivering live streams.

plm_b_db

External Web portals adding and deleting playlists.

 

The following table describes the contents of these directories.

Text File Storage Directory Structure

Directory

Contents

File or Directory Description

main directory

ppvbasic.txt

The text file indicates that this is the storage area for the list of authenticated names.

guids

(initially blank)

For player validation, files connect the clientID with a user name.

logs

reglog.txtaccesslog.txt

See below for a description of these files.

redirect

(initially blank)

For player validation, files contain an URL to which to send the client if redirection is necessary.

users

(initially blank)

Files in this directory list the clips and permission types.

 

The actual data storage text files do not exist when Helix Mobile Server is first installed. They are created when authentication is in use, and secure content is first requested. When Helix Mobile Server creates the file structure, it creates the ppvbasic.txt file. Helix Mobile Server looks for this file the second and subsequent times you start it. 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, Helix Mobile Server will rewrite the directories and erase their prior content.

Users Directory

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 and is different than subsequent lines in the file:

password;uuid;uuid_writeable

 

Field

Description

password

When user authentication is in use, this stores the password. Otherwise shows an asterisk (*). Passwords are encrypted. See "Password Tool".

uuid

In player validation, stores playerID. In user authentication, an asterisk (*) appears in this field.

uuid_writeable

A flag set and used by Helix Mobile Server:
0–player ID is in database
1–record created but player ID is not yet registered

 

The second and subsequent lines of each file have the following format. For further detail on allowable values in each field, see table "Permission Types":

url;url_type;permission_type;expires;debited_time

 

Field

Description

url

URL of secure directory or clip.

url_type

Whether URL is directory or clip:
0–clip
1–directory

permission_type

Permission type associated with access.

expires

If permission_type is 1, this is the expiration date/time, in format MM/DD/YYYY:HH:MM:SS. Otherwise blank.

debited_time

If permission_type is 2, this is time remaining in seconds. If permission_type is 3, this is the number of seconds of material the visitor has viewed. Otherwise, it is blank.

 

The example file, user1, has the following content, when player validation is in use:

*;00001d00-0901-11d1-8b06-00a024406d59;0
Secure/clip1.rm;0;0;*;*
Secure/directory;1;0;*;*
Secure/time.rm;0;2;*;300;*
Secure/time.rm;0;1;05/24/1970:06:12:32;300;*

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.

Guids Directory

The files in this directory are given the names of the unique client IDs from the registered clients, one per registered user. Each file contains only the name of the associated user name. For example, a file such as 00001d00-0901-11d1-8b06-00a024406d59 contains the name of the user, user1.

Logs Directory

This directory contains two files: reglog.txt and accesslog.txt.

reglog.txt

Each line of reglog.txt represents the result of an attempt to register a visitor. This file has the following format:

status;userid;uuid;IP;register_time;url_redirect

 

Field

Description

status

Result of user's attempt to connect:
0–Success
1–Failed (client ID not readable)
2–Failed (client ID already used)
3–Failed (RealAudio Player 3 or earlier)
4–No user (Must be entered previously in the database)
5–General failure

userid

Unique name of up to 50 characters.

uuid

client ID.

IP

IP address from which user is attempting to connect.

request_time

Time of connection request.

url_redirect

If connection failed, URL to which user was redirected (see redirect.txt).

 

accesslog.txt

Each line of accesslog.txt describes the result of an attempt to view a clip. This file is not created until authentication is enabled and the first user attempts to connect:

status;userid;uuid;ip;url;access_type;permission_on;start_time;end_time;
total_time;why_disconnect

 

Field

Description

status

Result of user's attempt to connect:
0–access to clip granted
1–denied

userid

Unique name of up to 50 characters.

uuid

Stores player ID.

ip

IP address from which user is attempting to connect.

url

Secured clip user is attempted to access.

access_type

Permission type associated with access. See the table "Permission Types" for values.

permission_on

Permission type associated with URL:
0–file (individual clip)
1–directory
2–none

start_time

Time/date clip started playing.

end_time

Time/date clip stopped playing.

total_time

Total time clip played.

why_disconnect

Reason for disconnection:
0–client disconnected voluntarily
1–server access expired

 

Redirect Directory

Used only in player validation, the redirect directory contains files named after URLs that are restricted from unauthorized users. Within each file is the alternate URL to which Helix Mobile Server sends the user if he or she tries to click the restricted URL. If no files are present in this directory, and the user attempts to click a URL to which he or she has not been given access, the user receives an error message.

Because certain characters that appear in URLs are illegal in file names, Helix Mobile Server requires a substitution for these illegal symbols.

Substitutions

Character

Replacement Sequence

/

+2f

\

+2b

+

+5c

 

For example, the URL Secure/TopSecret.rm would be converted to Secure+2fTopSecret.rm. The URL within each file, however, is represented normally.

 


Helix Universal Mobile Server Version 14.2 Online Help
Revision Date: Tuesday, March 15, 2011
©2011 RealNetworks, Inc., http://www.realnetworks.com