Protection on Site Directories: protdir.exe

The protdir.exe utility serves to manage web protection for domain directories, or, in other words, site areas. The utility allows the following operations:

 

Syntax

protdir.exe <command> [<dir_name>] [

<option1><param> [<option2><param>]…[<option N><param>]

]

 

Example

The following command line creates the Protected_Dir protected directory on domain domain1.com, adds the MyGuest user for this directory, and sets the MyPass password for this user.

>protdir.exe --create Protected_Dir -domain domain1.com -add_user MyGuest -passwd MyPass

 

Commands

Command

Parameter

Description

Example

--create or -c

<dir_name>

Creates the protected URL on the specified domain.

To create the Protected_Dir protected URL on somewhere.com:

>protdir.exe --create Protected_Dir -domain somewhere.com

or

>protdir.exe -c Protected_Dir -domain somewhere.com

--update or -u

<dir_name>

Updates the protected URL. Is meant to change URL and manage its users.

To update Protected_Dir by assigning it a title to be displayed on the dialog box:

>protdir.exe --update Protected_Dir -domain somewhere.com -title "Sample directory"

or

>protdir.exe –u Protected_Dir -domain somewhere.com -title "Sample directory"

--remove or -r

<dir_name>

Deletes the protected URL.

To delete the Protected_Dir protected URL:

>protdir.exe --remove Protected_Dir -domain somewhere.com

or

>protdir.exe -r Protected_Dir -domain somewhere.com

--help or -h

 

Displays help on the use of the utility.

To see the help info on the use of this utility:

>protdir.exe -–help

or

>protdir.exe -h

Options

Option

Parameter

Description

Example

-domain

<domain_name>

Specifies the domain name that owns the URL. This option is required for all commands, except on --help.

To create the Protected_Dir protected URL on somewhere.com:

>protdir.exe --create Protected_Dir -domain somewhere.com

-subdomain

<subdomain_name>

Specifies the name of a subdomain.

To create the Protected_Dir protected URL on subdomain1.somewhere.com:

>protdir.exe --create Protected_Dir -domain somewhere.com -subdomain subdomain1

-title

<string>

Specifies the realm of the protected URL, i.e. the description that will be displayed in the authorization window.

To create a realm for the protected URL:

>protdir.exe --update Protected_Dir -domain somewhere.com -title "Sample directory"

-passwd

<password>

Specifies the user password.

To set a password for the user of a protected URL:

>protdir.exe --update Protected_Sample -domain somewhere.com -update_user johndoe -passwd Password1

-add_user

<login_name>

Adds the user with the specified name.

To add user johndoe:

>protdir.exe --update Protected_Dir -add_user johndoe

-update_user

<login_name>

Updates the user with the specified name.

To provide the user of a protected URL with a new login name:

>protdir.exe --update Protected_Dir -update_user johndoe -user_name johndoe_new

-remove_user

<login_name>

Removes the user with the specified name.

To remove a user of the protected URL:

>protdir.exe --update Protected_Dir -remove_user johndoe

-user_name

<login_name>

Sets the login name for the user. Can be used in combination with the -update_user option.

To provide the user of the protected URL with a new login name:

>protdir.exe --update Protected_Dir -update_user johndoe -user_name johndoe_new

-dir_name

<dir_name>

Sets the name of the protected URL. Can be used in combination with the -update_user option.

To set a new name for the protected URL:

>protdir.exe --update Protected_Dir -dir_name Protected_Dir_New