db: add stub validators for Perforce
Created by: unknwon
This PR adds the "switch case" for the Perforce code host connections (just like any others). Currently the validators for Perforce is always empty, and will be initialized when add Perforce authz.
Subset of #17881 and extracted here for easier review, and part of #16705.