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 |
|---|---|---|---|
|
|
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 |
|
|
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" |
|
|
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 |
|
|
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 |
|
|
Specifies the domain name that owns the URL. This option is required for all commands, except on |
To create the Protected_Dir protected URL on somewhere.com: >protdir.exe --create Protected_Dir -domain somewhere.com |
|
|
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 |
|
|
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" |
|
|
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 |
|
|
Adds the user with the specified name. |
To add user johndoe: >protdir.exe --update Protected_Dir -add_user johndoe |
|
|
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 |
|
|
Removes the user with the specified name. |
To remove a user of the protected URL: >protdir.exe --update Protected_Dir -remove_user johndoe |
|
|
Sets the login name for the user. Can be used in combination with the |
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 |
|
|
Sets the name of the protected URL. Can be used in combination with the |
To set a new name for the protected URL: >protdir.exe --update Protected_Dir -dir_name Protected_Dir_New |