How to enable and configure OpenLdap authentication through API

Hi,

I’m trying to install and configure rancher through ansible and i don’t find a way to automate Openldap authentication for Rancher. Does there is a way to do that though API ?
Thanks,

Dan