Step 5: Configure security | Admin
Secure your P4 Server to prevent unauthorized access. If your server is not secured, you could expose your organization to serious risks.
To learn more about securing your server, review Secure the server in P4 Server Administration Documentation.
On this page:
Set the server ID
You must set a server ID for the P4 Server. This creates a unique ID for the server configuration data to be stored in the P4 Server. The server ID can be anything you want, but it must be unique.
-
From a command line, run:
p4 serverid serverID -
Close P4 Admin (File > Exit).
-
Restart P4 Admin.
Set the server security level
Set the server security level to enforce server-wide password usage requirements, password strength enforcement, and supported methods of user/server authentication.
-
In P4 Admin, click the Configurables tab.
-
Double-click the
securityconfigurable to open it. -
In the security dialog box, set the New value field to
4.This security level enforces strong password rules and access controls.
Set the value to4or higher because this level protects standalone, multi-server, and replicated environments. To learn more about server security levels, see Server security levels in P4 Server Administration Documentation. -
Click Set.
The security level is set.
Change the super user password
Change the password for the super user in P4V at any time after setting up server security.
Passwords must be at least eight characters and must contain uppercase and lowercase letters, and one or more special characters or numbers.
-
In P4V, choose Connection > Change Password.
-
In the Change Password dialog box, enter the old and new passwords.
-
Confirm ther new password.
-
Click OK.
The new password is saved and required the next time you log in to P4V.
Strengthen security by changing configurable values
Change the following configurable values to enhance P4 Server security.
For details about each configurable, see Configurables reference in P4 CLI Reference.
-
In P4 Admin, click the Configurables tab.
-
For each configurable in the following list, double-click the configurable to open it. In the configurable dialog box, set the New value field with the value in the following list and click Set.
Configurable name Set the New value to:
Description dm.user.noautocreate2Prevents automatic user creation. Only a P4 administrator can create users.
It is best practice to assign an initial password to a new user when you create them. that user an initial password. Make it a strong password.dm.user.setinitialpasswd0Ensures that only users with
superpermissions who already have a password set can set the initial password for other users.dm.user.resetpassword1Forces new users to reset their password on initial login. dm.info.hide1Hides server version information from unauthorized users. dm.user.hideinvalid1Hides that an authentication failure is because of an incorrect username. run.users.authorize1Hides user details from unauthenticated users.
Additional security information
Keeping your P4 Server secure is essential. To learn more about security, see Secure the server in the P4 Server Administration Documentation.
What's next
By setting up a typemap, you can ensure that P4 Server handles files with specific extensions or files in specific folders in a specific way.