RemoteRuntimeEngineFactory + LDAP

Version 1

    I have jBPM 6.4.0 configured with LDAP ( based on this tout jBPM 6.4.0 + LDAP ) and everything OK but as using restTemplateFactory and RemoteRuntimeEngineFactory  in my web app (Spring security with LDAP) and  i do not know how can i authorized with username and password (LDAP). Any advice or configurations? Thanks.