The Nambu-Goto action for an open string with parameter domain $[0,\tau_1]\times[0,\sigma_1]$ is given by
\begin{equation} S_{NG} = \int_{0}^{\tau_1} d\tau \int_{0}^{\sigma_1} \ d\sigma \ \mathcal{L}(\dot{X}, X') = \int_{0}^{\tau_1} d\tau \int_{0}^{\sigma_1} d\sigma \sqrt{(\dot{X} \cdot X')^2 - (\dot{X})^2(X')^2} \end{equation}
such that under a variation $X^\mu \rightarrow X^\mu + \delta X^\mu$ we have
\begin{equation} \delta S_{NG} = \int_{0}^{\sigma_1} d\sigma \left[\delta X^\mu \mathcal{P}^\tau _\mu \right]_{0}^{\tau_1} + \int_{0}^{\tau_1} d\tau \left[ \delta X^\mu \mathcal{P}^\sigma _{\mu}\right]_{0}^{\sigma_1} + \int_{0}^{\tau_1} d\tau \int_{0}^{\sigma_1} d\sigma \ \delta X^\mu \partial_a \mathcal{P}^{a}_{\mu} \end{equation}
where $ \mathcal{P}^a _{\mu} := \frac{\partial \mathcal{L}}{\partial (\partial_a{X^\mu)}}, \ a= \tau, \sigma \ \text{and} \ \mu = 0,1,...,d.$
The first boundary term can vanish if I impose B.C $\delta X^\mu (0,\sigma) = \delta X^\mu (\tau_1, \sigma) = 0 $ for all $\mu$.
The second boundary term can vanish completely if I impose Neumann B.C : $P^{\sigma}_{\mu}(\tau, 0) = P^{\sigma}_{\mu}(\tau, \sigma_1) = 0$, and then if I use the action principle I can state that the EOM for this action are $\partial_a \mathcal{P}^a_{\mu}= 0 $.
However, if I try to impose Dirichlet BC: $\delta X^i (\tau, 0) = \delta X^i ( \tau ,\sigma_1) = 0 $ for $i = 1,2,..., d$ (because $\delta X^0 (\tau,0) = 0$ would imply that time would stop in string endpoints, which have no physical sense) I can no longer guarantee that the second boundary term vanishes. So Dirichlet BCs break the Poincaré invariance of the action. Even if the second Boundary term is not zero, is correct to state that the equations of motion for the string are $\partial_a \mathcal{P}^a_{\mu} =0$?