Access user source LDAP instance for search

Hi all,
I want to make LDAP queries using the LDAP Helper object. I wanted to use the, already configured, UserSource instance from the Gateway context.
I was trying with something like:

from com.inductiveautomation.ignition.gateway import SRContext
context = SRContext.get()
profile = context.getUserSourceManager().getProfile("profilename")

the profile is an object of the type

com.inductiveautomation.ignition.gateway.authentication.UserSourceWrapper

from there I was hoping to find a LDAPHelper or something that could point to the LDAP client. But I can’t find anything information regarding that.

Ignition version:7.9.18

Appreciate any help. Thanks