Sorry for replying to such an old post, but it's the only thing I found when searching for this. In my case, I found that Portal supports RFC4516 URLs. Including the sample from the link below that worked for me in case the link goes away.
ldap://sh.svr.willeke.com:389/ou=people,dc=willeke,dc=com/??sub?(b1isbrolemembership=*)
https://ldapwiki.com/wiki/LDAP%20URL