Hi Ridouan,
I think the earlier "recommendation" of not having IdM on same server that has other SAP components was related to the thing that IdM is not installed with sapinst and the default installation directory is the /usr/ where other SAP software is installed.
Since I don't work in basis area so no idea about the real risk.
regards, Tero