In fact, there is 3 user sources :
- the 'root' user is in the local libresource install (machine 1)
- some other users are present in the cas install (machine 2) in a postgres database.
- the rest of users are in the LDAP (machine 3) but the login mechanism is handled via the CAS.
I'll post the solution found.