Bug #5772 add ejb authentication for remote use
Merge branch 'bug-5772' into core-5.14.x