The dispersive optical-model is applied to transfer reactions. A systematic study of $(d,p)$ reactions on closed-shell nuclei using the finite-range adiabatic reaction model is performed at several beam energies and results are compared to data as well as to predictions using a standard global optical-potential. Overall, we find that the dispersive optical-model is able to describe the angular distributions as well as or better than the global parameterization. In addition, it also constrains the overlap function. Spectroscopic factors extracted using the dispersive optical-model are generally lower than those using standard parameters, exhibit a reduced dependence on beam energy, and are more in line with results obtained from $(e,ep)$ measurements.